From: Mark Wooding Date: Tue, 6 Mar 2012 10:36:47 +0000 (+0000) Subject: vampire.m4: Forbid incoming traffic directly on the NAT address. X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/commitdiff_plain/3adc5b0b8fe2f9270e053f7bc46449651b78266e vampire.m4: Forbid incoming traffic directly on the NAT address. It's meant only for forwarding. --- diff --git a/vampire.m4 b/vampire.m4 index 44eef03..9d8cdce 100644 --- a/vampire.m4 +++ b/vampire.m4 @@ -97,5 +97,8 @@ for p in ftp sip h323; do run modprobe nf_nat_$p done +## 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 --------------------------------------------------