plugeth/p2p/discv5
Felix Lange a98d1d67d6 p2p/discover, p2p/discv5: prevent relay of invalid IPs and low ports
The discovery DHT contains a number of hosts with LAN and loopback IPs.
These get relayed because some implementations do not perform any checks
on the IP.

go-ethereum already prevented relay in most cases because it verifies
that the host actually exists before adding it to the local table. But
this verification causes other issues. We have received several reports
where people's VPSs got shut down by hosting providers because sending
packets to random LAN hosts is indistinguishable from a slow port scan.

The new check prevents sending random packets to LAN by discarding LAN
IPs sent by Internet hosts (and loopback IPs from LAN and Internet
hosts). The new check also blacklists almost all currently registered
special-purpose networks assigned by IANA to avoid inciting random
responses from services in the LAN.

As another precaution against abuse of the DHT, ports below 1024 are now
considered invalid.
2016-11-22 22:21:18 +01:00
..
crypto.go all: update license information 2016-11-09 02:51:34 +01:00
database_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
database.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
net_test.go p2p/discover, p2p/discv5: prevent relay of invalid IPs and low ports 2016-11-22 22:21:18 +01:00
net.go p2p/discover, p2p/discv5: prevent relay of invalid IPs and low ports 2016-11-22 22:21:18 +01:00
node_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
node.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
nodeevent_string.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
ntp.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
sim_run_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
sim_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
sim_testmain_test.go p2p/discv5: added new topic discovery package 2016-11-09 02:12:53 +01:00
table_test.go all: update license information 2016-11-09 02:51:34 +01:00
table.go p2p/discv5: fixed bootnode connect issues 2016-11-14 13:22:19 +01:00
ticket.go p2p/discv5: fixed bootnode connect issues 2016-11-14 13:22:19 +01:00
topic_test.go all: update license information 2016-11-09 02:51:34 +01:00
topic.go all: update license information 2016-11-09 02:51:34 +01:00
udp_test.go p2p/discover, p2p/discv5: use netutil.IsTemporaryError 2016-11-22 22:21:15 +01:00
udp.go p2p/discover, p2p/discv5: prevent relay of invalid IPs and low ports 2016-11-22 22:21:18 +01:00