From: Chris Brenton <cbrenton@chrisbrenton.org>
To: patrick kuah <patrickkuah@msn.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: VPN question
Date: 14 Oct 2003 13:45:40 -0400 [thread overview]
Message-ID: <1066153540.1322.11.camel@valhalla> (raw)
In-Reply-To: <BAY4-F42tUqsLKqewA30000cc37@hotmail.com>
On Tue, 2003-10-14 at 11:25, patrick kuah wrote:
> Thanks Chris :)
Glad to! :)
>
> I'm using ipsec. Currently, my iptables is configured using stateful packet
> inspection.
You still need to open the correct ports as well create the proper DNAT
and SNAT rules.
> Do i have to add the rules for port TCP/UDP 50 and TCP 50 ???
> Thank you :)
Here's what you need to open up:
1) IKE to and from your IPSec gateway. something like:
iptables -p udp -s 0/0 --sport 500 -d 192.168.1.10 --dport 500 -j ACCEPT
iptables -p udp -s 192.168.1.10 --sport 500 -d 0/0 --dport 500 -j ACCEPT
2) Protocol 50 (ESP) to and from the gateway
iptables -p 50 -d 192.168.1.10 -j ACCEPT
iptables -p 50 -s 192.168.1.10 -j ACCEPT
Again, make sure your clients are not negotiating Authentication Header
(AH). If you try the above and you log drops to protocol 51, AH is being
negotiated.
HTH,
C
next prev parent reply other threads:[~2003-10-14 17:45 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-14 15:25 VPN question patrick kuah
2003-10-14 17:45 ` Chris Brenton [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-10-06 19:35 Sunny Shum
2004-10-06 19:58 ` Jason Opperisano
2004-09-22 13:55 Tony Gogoi
2004-09-22 21:42 ` Tony Gogoi
2004-08-17 8:51 urgrue
2004-08-17 12:55 ` Adam Lang
2004-08-20 1:42 ` Michael H. Warfield
2004-08-15 14:59 SSH allow only form selected IP' luke
2004-08-16 11:23 ` James Turnbull
2004-08-16 13:37 ` Re[2]: " Kev
2004-08-16 16:30 ` VPN question Tony Gogoi
2004-08-16 17:29 ` Adam Lang
2004-08-16 18:50 ` Tony Gogoi
2004-08-16 18:59 ` Adam Lang
2003-10-14 10:19 patrick kuah
2003-10-14 10:44 ` Chris Brenton
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=1066153540.1322.11.camel@valhalla \
--to=cbrenton@chrisbrenton.org \
--cc=netfilter@lists.netfilter.org \
--cc=patrickkuah@msn.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.