Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "James Miller" <jimm@simutronics.com>
To: netfilter@lists.netfilter.org
Subject: IPSec rules
Date: Fri, 28 Mar 2003 09:52:13 -0600	[thread overview]
Message-ID: <NDBBKABJBJCIJNAELLKEMEALIKAA.jimm@simutronics.com> (raw)

Hello everyone =)

I have reviewed a few posts about how to setup rules to allow IPSec.  I sure
would appreciate a peer review of my rules for IPSec traffic before putting
them into general use.  Of course, this is not my whole rule set, just the
IPSec aspects.  I'm not doing NAT on the inside (we're lucky enough to have
a few class 'C's to use around here).  And for simplicity I'm trusting
roadwarriors and not limiting the source of IPSec traffic.
eth1 = untrusted side
eth0 = trusted side

INPUT:
$IPTABLES -A INPUT -i eth1 -p 50 -j ACCEPT
$IPTABLES -A INPUT -i eth1 -p 51 -j ACCEPT
$IPTABLES -A INPUT -i eth1 -p UDP --dport 500 -j ACCEPT

FORWARD:
$IPTABLES -A FORWARD -i eth0 -o ipsec+ -j ACCEPT
$IPTABLES -A FORWARD -i ipsec+ -o eth0 -j ACCEPT

OUTPUT:
$IPTABLES -A OUTPUT -p 50 -j ACCEPT
$IPTABLES -A OUTPUT -p 51 -j ACCEPT
$IPTABLES -A INPUT -p udp -m udp --dport 500 -j ACCEPT



Thanks everyone,
--jim




             reply	other threads:[~2003-03-28 15:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 15:52 James Miller [this message]
2001-03-28 16:57 ` IPSec rules Rowan Reid
2003-03-28 16:45 ` Cedric Blancher

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=NDBBKABJBJCIJNAELLKEMEALIKAA.jimm@simutronics.com \
    --to=jimm@simutronics.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