SA Bugzilla – Bug 3968
IP_IN_RESERVED_RANGE should go
Last modified: 2005-01-10 03:11:48 UTC
IP_IN_RESERVED_RANGE, in Constants.pm, is out of date. Specifically, 71/8 and 72/8 are no longer reserved, according to http://www.iana.org/assignments/ipv4-address-space.
whois agrees with this, so I'll get up a patch in a minute.
Created attachment 2517 [details] suggested patch
+1
According to http://www.cymru.com/Documents/bogon-bn-nonagg.txt (linked to from http://www.cymru.com/Documents/bogon-list.html), the following /8s are all IANA reserved. I've checked them by hand via ws.arin.net. [0125]| # 000/8, 001/8, 002/8, 005/8 2[37]| # 023/8, 027/8 3[1679]| # 031/8, 036/8, 037/8, 039/8 4[129]| # 041/8, 042/8, 049/8 50| # 050/8 7[3-9] # 073-079/8 89| # 089/8 9[0-9]| # 090-099/8 1[01][0-9]| # 100-119/8 12[0-6]| # 120-126/8 17[3-9]| # 173-179/8 18[012345679] # 180-187/8, 189/8 19[07]| # 190/8, 197/8 223| # 223/8 -Daryl
committed.
Just spent a couple of hours trying to understand why SA 3.0.0 was giving -2.8 to some spam from a 72/8 network (not being overly familiar with the inner workings), and realized it was the trusted/untrusted algorithm in Received.pm:parse_received_headers acting up. Why is SA trusting these reserved addresses anyway ? People should not be using random reserved blocks for NAT (which I assume is the reason for the auto-trust algorithm), they should be using the RFC 1918 blocks 10/8, 172.16/12, 192.168/16. We certainly should not be trusting mail from reserved blocks; rather the reverse I would think.
reopening
working on this and testing patch Andrew, can you attach your bug ("Create a New Attachment" link on this page)?
Done. IP_IS_IN_RESERVED is no longer used in trunk. A new variable, IP_PRIVATE describes address spaces that are not publicly routeable and is used in its place. I tested this out and the results are definitively better for all code that was previously using the IP_IS_IN_RESERVED.