chiark / gitweb /
radius.m4: Forbid traffic directly to the NAT address.
[firewall] / radius.m4
index 7f0dc2ce24b1ce17861e152934211887ba88d98f..e5438786d9d4a8ddb8be3b6f3406d08d3222d73d 100644 (file)
--- a/radius.m4
+++ b/radius.m4
@@ -69,5 +69,8 @@ run iptables -t nat -A outbound -j RETURN -d 172.29.198.0/23
 run iptables -t nat -A outbound -j SNAT --to-source 62.49.204.158
 run iptables -t nat -A POSTROUTING -j outbound
 
+## Forbid anything complicated to the NAT address.
+run iptables -A INPUT -d 62.49.204.158 ! -p icmp -j REJECT
+
 m4_divert(-1)
 ###----- That's all, folks --------------------------------------------------