iptables RAW NAT

Hello! In ISP Convex we have a simple script to generate client REALIP from grey IP.
Its very simple


iptables -A POSTROUTING -s int_ip/32 -o ext_if -j RAWSNAT --to-source ext_ip/32
iptables -A PREROUTING -d ext_ip/32 -i ext_if -j RAWDNAT --to-destination int_ip/32

Good day

Leave a Reply