X-Git-Url: https://git.distorted.org.uk/~mdw/firewall/blobdiff_plain/99878575f2a2e3edb0362a5720552bec85b1aba3..4f8c198960217f631e0fcb20e8615fc93c3d1da2:/mango.m4 diff --git a/mango.m4 b/mango.m4 index 7c506f9..8f5874b 100644 --- a/mango.m4 +++ b/mango.m4 @@ -48,5 +48,13 @@ run iptables -t nat -X run iptables -t nat -A POSTROUTING -j SNAT --to-source 10.165.27.3 \ -s 172.29.198.0/23 -d 10.165.27.0/24 -o eth0 +clearchain nat:portfwd +run iptables -t nat -A portfwd -j DNAT \ + -p tcp --dport 3128 --to-destination 172.29.199.228 +for c in OUTPUT PREROUTING; do + run iptables -t nat -A $c -j portfwd \ + -s 10.165.27.0/24 -d 10.165.27.3 +done + m4_divert(-1) ###----- That's all, folks --------------------------------------------------