X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/196c5d1654cd62a1f28b31f2e1f43541cd77737a..ddbe1eaaf24dce5750c4ab1404151ccf141584c5:/fender.m4 diff --git a/fender.m4 b/fender.m4 index 77a08fe..e1aff1f 100644 --- a/fender.m4 +++ b/fender.m4 @@ -38,8 +38,8 @@ run ip46tables -A inbound-untrusted -p udp -j ACCEPT \ --source-port 123 --destination-port 123 ## Guaranteed black hole. Put this at the very front of the chain. -run iptables -I INPUT -d 212.13.198.78 -j DROP -run ip6tables -I INPUT -d 2001:ba8:0:1d9::ffff -j DROP +run iptables -I INPUT -d 217.169.12.78 -j DROP +run ip6tables -I INPUT -d 2001:8b0:c92:fff::ffff -j DROP ## Ethernet bridge-level filtering for source addresses. run ebtables -F @@ -57,28 +57,15 @@ for ch in bad-source-addr bcp38; do run ebtables -A $ch -j DROP done -run ebtables -N check-eth0 -run ebtables -A check-eth0 -j RETURN -p ip --ip-source ! 212.13.198.64/28 -run ebtables -A check-eth0 -j RETURN -p ip6 --ip6-source 2001:ba8:0:1d9::1 -run ebtables -A check-eth0 -j bad-source-addr \ - -p ip6 --ip6-source 2001:ba8:1d9::/48 -run ebtables -A check-eth0 -j bad-source-addr \ - -p ip6 --ip6-source 2001:ba8:0:1d9::/64 -run ebtables -A check-eth0 -j RETURN -p ip6 -run ebtables -A check-eth0 -j RETURN -p ip --ip-source 212.13.198.64/30 -run ebtables -A check-eth0 -j RETURN -p ip --ip-source 212.13.198.68 -run ebtables -A check-eth0 -j bad-source-addr -p ip -run ebtables -A INPUT -j check-eth0 -i bond0 -run ebtables -A FORWARD -j check-eth0 -i bond0 - run ebtables -N check-bcp38 -run ebtables -A check-bcp38 -j RETURN -p ip --ip-source 212.13.198.64/28 +run ebtables -A check-bcp38 -j RETURN -p ip --ip-source 81.187.238.128/28 +run ebtables -A check-bcp38 -j RETURN -p ip --ip-source 217.169.12.64/28 run ebtables -A check-bcp38 -j bcp38 -p ip -run ebtables -A check-bcp38 -j RETURN -p ip6 --ip6-source 2001:ba8:0:1d9::/64 +run ebtables -A check-bcp38 -j RETURN -p ip6 --ip6-source 2001:8b0:c92::/48 run ebtables -A check-bcp38 -j RETURN -p ip6 --ip6-source 2001:ba8:1d9::/48 run ebtables -A check-bcp38 -j RETURN -p ip6 --ip6-source fe80::/10 run ebtables -A check-bcp38 -j bcp38 -p ip6 -run ebtables -A FORWARD -j check-bcp38 -o bond0 +run ebtables -A FORWARD -j check-bcp38 -o br-dmz ## There's a hideous bug in Linux 3.2.51-1's ebtables: for some reason it ## misparses (at least) locally originated multicast packets, and tries to