From: John Friel III <john@frieltek.com>
To: "'netfilter@lists.samba.org'" <netfilter@lists.samba.org>
Cc: "'Leonardo Rodrigues Magalhães'" <leolistas@solucoesip.net>
Subject: RE: upgrade to iptabels from ipchains
Date: Wed, 28 May 2003 13:31:43 -0500 [thread overview]
Message-ID: <6B61CBDA8C62344EB172855F4D94D74C042F3C@alpha.frieltek.com> (raw)
> would became this in iptables
>
> iptables -N soporte
> iptables -A soporte -s 10.0.1.1 -j ACCEPT
> iptables -A soporte -j DROP
> iptables -A FORWARD -s 10.0.0.0/25 -j soporte
> iptables -t nat -A POSTROUTING -s 10.0.1.1 -j MASQUERADE
And it should be noted that with these rules in place, all packets that get
forwarded to the soporte chain will get DROPPED because the forward rule
only forwards IP's in the range of 10.0.0.0-10.0.0.127 and the accept range
is restricted to -only- IP 10.0.1.1.
The 4th rule should be:
iptables -A FORWARD -s 10.0.0.0/16 -j soporte
Cheers!
John Friel III
Frieltek Consulting, Inc.
next reply other threads:[~2003-05-28 18:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-28 18:31 John Friel III [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-27 23:11 upgrade to iptabels from ipchains George Vieira
2003-05-28 14:22 ` Esteban
2003-05-28 16:05 ` Leonardo Rodrigues Magalhães
2003-05-27 22:02 Esteban
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=6B61CBDA8C62344EB172855F4D94D74C042F3C@alpha.frieltek.com \
--to=john@frieltek.com \
--cc=leolistas@solucoesip.net \
--cc=netfilter@lists.samba.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