Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables same nat
@ 2008-02-19 15:23 cemozturk
  0 siblings, 0 replies; only message in thread
From: cemozturk @ 2008-02-19 15:23 UTC (permalink / raw)
  To: netfilter


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-19 15:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-19 15:23 iptables same nat cemozturk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox