From: "Moti Levy" <moti@flncs.com>
To: netfilter@lists.netfilter.org
Subject: Can anyone please review the following rules and comment on them ?
Date: Wed, 30 Apr 2003 12:23:03 -0400 [thread overview]
Message-ID: <0f4201c30f34$c78ae330$fd01a8c0@bvg6> (raw)
Thanks ,
Moti
iptables -t nat -A PREROUTING -d $EXTIP -p TCP -m multiport \
--dport 25,80,110,443 -j DNAT --to $SRV_IP
iptables -t nat -A POSTROUTING -o $EXTIF -s $LAN -j MASQUERADE
# --------------------------------------------------------------------------
--
iptables -A INPUT -i $EXTIF -p udp -m udp -s 0/0 --sport 67:68 -j ACCEPT
iptables -A INPUT -i $EXTIF -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i $EXTIF -p udp -m udp -s 0/0 --sport 500 -j ACCEPT
iptables -A INPUT -i $EXTIF -p 50 -s 0/0 -j ACCEPT
iptables -A INPUT -i $EXTIF -p 51 -s 0/0 -j ACCEPT
iptables -A INPUT -i $EXTIF -p tcp -d $EXTIP -m multiport \
--dport 22,25,80,110,443,8080 -j ACCEPT
iptables -A INPUT -i $EXTIF -p ICMP -s 0/0 --icmp-type 8 -j ACCEPT
iptables -A INPUT -i $EXTIF -p ICMP -s 0/0 --icmp-type 11 -j ACCEPT
iptables -A INPUT -i $EXTIF -m limit --limit 5/minute -j LOG --log-prefix
"IPT->"
iptables -A INPUT -i $EXTIF -j DROP
reply other threads:[~2003-04-30 16: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='0f4201c30f34$c78ae330$fd01a8c0@bvg6' \
--to=moti@flncs.com \
--cc=netfilter@lists.netfilter.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