X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/fdaf00a6cbd1568ce6e4de2b424547060ba0ae60..d119795e592c937a94fa012f65590f032af373f3:/vampire.m4 diff --git a/vampire.m4 b/vampire.m4 index 7584566..55c7961 100644 --- a/vampire.m4 +++ b/vampire.m4 @@ -108,5 +108,15 @@ 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 +## Set up NAT protocol helpers. In particular, SIP needs some special +## twiddling. +run modprobe nf_conntrack_sip \ + ports=5060 \ + sip_direct_signalling=0 \ + sip_direct_media=0 +for p in ftp sip h323; do + run modprobe nf_nat_$p +done + m4_divert(-1) ###----- That's all, folks --------------------------------------------------