X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/1a42af95515f1f6920f0ba2b45576278bbc2c8cf..cbbd5e39a0460d98f3d0806e7d7e538e4c9c590d:/radius.m4 diff --git a/radius.m4 b/radius.m4 index 978a877..4bf4cea 100644 --- a/radius.m4 +++ b/radius.m4 @@ -69,6 +69,16 @@ 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 + ## Forbid anything complicated to the NAT address. run iptables -A INPUT -d 62.49.204.158 ! -p icmp -j REJECT