From: cemozturk <cem.ozturk@gazi.edu.tr>
To: netfilter@vger.kernel.org
Subject: iptables same nat
Date: Tue, 19 Feb 2008 17:23:19 +0200 [thread overview]
Message-ID: <47BAF467.5000706@gazi.edu.tr> (raw)
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
reply other threads:[~2008-02-19 15:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47BAF467.5000706@gazi.edu.tr \
--to=cem.ozturk@gazi.edu.tr \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox