iptables same nat
Hi,
I want to catch iptables logs for SAME NAT. SAME NAT takes IP from POOL. But I dont't match local IP with real IP. How do I do? Thanks..
$INET_BIM_POOL="192.168.3.1-192.168.3.64"
$IPTABLES -t nat -A POSTROUTING -o $INET_IFACE -s 10.5.0.0/16 -j bim
$IPTABLES -t nat -A bim_out -p icmp -o $INET_IFACE -j SNAT --to-source $INET_BIM_POOL $IPTABLES -t nat -A bim_out -p tcp -o $INET_IFACE -j SAME --nodst --to $INET_BIM_POOL $IPTABLES -t nat -A bim_out -p udp -o $INET_IFACE -j SAME --nodst --to $INET_BIM_POOL