syncthing/lib/model
Jakob Borg c5e0c47989 lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219)
This adds a new config AllowedNetworks per device, which when set should
contain a list of network prefixes (192.168.0.0/126 etc) that are
allowed for the given device. The connection service will not attempt
connections to addresses outside of the given networks and incoming
connections will be rejected as well.

I've added the config to the normal device editor and shown it (when
set) in the device summary on the main screen.

There's a unit test for the IsAllowedNetwork method, I've done some
manual sanity testing on top of that.

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4073
2017-04-01 09:52:31 +00:00
..
testdata lib/model: Temp names from all platforms should be recognized as such 2016-11-30 21:23:24 +00:00
.gitignore mv internal lib 2015-08-09 09:35:26 +02:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deviceactivity_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
deviceactivity.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
devicedownloadstate_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
devicedownloadstate.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
doc.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
folder.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
folderscanner.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
folderstate.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
model_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
model.go lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219) 2017-04-01 09:52:31 +00:00
progressemitter_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
progressemitter.go all: Correct various typos 2017-02-25 08:12:13 +00:00
queue_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
queue.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
requests_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
rofolder.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
rwfolder_test.go lib/scanner: Use fs.Filesystem for all operations 2017-04-01 09:04:11 +00:00
rwfolder.go lib/scanner: Use fs.Filesystem for all operations 2017-04-01 09:04:11 +00:00
sentdownloadstate.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
sharedpullerstate_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
sharedpullerstate.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
sorter_test.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
sorter.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
util.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00