syncthing/lib/connections
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
..
config.go lib/connections, vendor: Change KCP mux to SMUX 2017-03-09 14:03:09 +01:00
connections_test.go lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219) 2017-04-01 09:52:31 +00:00
debug.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
kcp_dial.go lib/connections, vendor: Change KCP mux to SMUX 2017-03-09 14:03:09 +01:00
kcp_listen.go lib/connections, vendor: Change KCP mux to SMUX 2017-03-09 14:03:09 +01:00
kcp_misc.go lib/connections, vendor: Change KCP mux to SMUX 2017-03-09 14:03:09 +01:00
limiter.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
relay_dial.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00
relay_listen.go all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
service.go lib/connections, lib/model, gui: Specify allowed networks per device (fixes #219) 2017-04-01 09:52:31 +00:00
structs.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00
tcp_dial.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00
tcp_listen.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00
util.go lib/connections: Add KCP support (fixes #804) 2017-03-07 12:44:16 +00:00