Blocking Bogons
Is anyone else doing this?
I am using the following list of reserved addresses: https://en.wikipedia.org/.ki/Reserved_IP_addresses
Does the following look like a coherent approach?
config firewall address edit "bogon-zero" set subnet 0.0.0.0 255.0.0.0 set allow-routing enable next edit "bogon-rfc1918-slash-8" set subnet 10.0.0.0 255.0.0.0 set allow-routing enable next edit "bogon-shared-address-space" set subnet 100.64.0.0 255.192.0.0 set allow-routing enable next edit "bogon-loopback" set subnet 127.0.0.0 255.0.0.0 set allow-routing enable next edit "bogon-apipa" set subnet 169.254.0.0 255.255.0.0 set allow-routing enable next edit "bogon-rfc1918-slash-12" set subnet 172.16.0.0 255.240.0.0 set allow-routing enable next edit "bogon-test-net-1" set subnet 192.0.2.0 255.255.255.0 set allow-routing enable next edit "bogon-rfc1918-slash-16" set subnet 192.168.0.0 255.255.0.0 set allow-routing enable next edit "bogon-rfc2544" set subnet 198.18.0.0 255.254.0.0 set allow-routing enable next edit "bogon-test-net-2" set subnet 198.51.0.0 255.255.255.0 set allow-routing enable next edit "bogon-test-net-3" set subnet 203.0.113.0 255.255.255.0 set allow-routing enable next end config firewall addrgrp edit Bogons set member "bogon-zero" "bogon-rfc1918-slash-8" "bogon-shared-address-space" "bogon-loopback" "bogon-apipa" "bogon-rfc1918-slash-12" "bogon-test-net-1" "bogon-rfc1918-slash-16" "bogon-rfc2544" "bogon-test-net-2" "bogon-test-net-3" set color 10 set allow-routing enable next end config router static edit 21 set dst Bogons set distance 254 set blackhole enable next end
--sk
