All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nilesh <niluforalways@yahoo.com>
To: iptables <netfilter@lists.netfilter.org>
Subject: IPsec through NAT Mode
Date: Mon, 22 Nov 2004 02:41:57 -0800 (PST)	[thread overview]
Message-ID: <20041122104157.58409.qmail@web50505.mail.yahoo.com> (raw)

Hello All, 

I am using Squid proxy and IPtables. I am having some
problems to configure firewall. 
The problem is SNAT rule If I put rule in script I am
able to connect VPN server at outside world but could
not block yahoo messengers by squid without SNAT rule
I can block messenger through squid. 
I have checked VPN connection properties there is
check box IPsec through NAT mode . If I uncheck I wont
able to connect 
SNAT Rule 
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j SNAT --to
$EXTIP

could anyone help to solve my problem 
also I have tried this rules to connect VPN 
but wont work 
# IKE negotiations
$IPTABLES -A INPUT  -p udp --sport 500 --dport 500 -j
ACCEPT
$IPTABLES -A OUTPUT -p udp --sport 500 --dport 500 -j
ACCEPT
$IPTABLES -A FORWARD -p udp --sport 500 --dport 500 -j
ACCEPT
# ESP encrypton and authentication
$IPTABLES -A INPUT  -p 50 -j ACCEPT
$IPTABLES -A OUTPUT -p 50 -j ACCEPT
$IPTABLES -A FORWARD -p 50 -j ACCEPT
# uncomment for AH authentication header
#$IPTABLES -A INPUT  -p 51 -j ACCEPT
#$IPTABLES -A OUTPUT -p 51 -j ACCEPT



Thanks in advance 
Nilesh,




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


             reply	other threads:[~2004-11-22 10:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22 10:41 Nilesh [this message]
2004-11-22 15:07 ` IPsec through NAT Mode Jason Opperisano
  -- strict thread matches above, loose matches on Subject: below --
2004-11-22 10:48 Nilesh

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=20041122104157.58409.qmail@web50505.mail.yahoo.com \
    --to=niluforalways@yahoo.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 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.