All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Opperisano <opie@817west.com>
To: iptables <netfilter@lists.netfilter.org>
Subject: Re: IPsec through NAT Mode
Date: Mon, 22 Nov 2004 10:07:22 -0500	[thread overview]
Message-ID: <20041122150722.GA30577@bender.817west.com> (raw)
In-Reply-To: <20041122104157.58409.qmail@web50505.mail.yahoo.com>

On Mon, Nov 22, 2004 at 02:41:57AM -0800, Nilesh wrote:
> 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

if you only need SNAT for VPN traffic, how about just SNAT-ing traffic
destined for the VPN server?

  $IPTABLES -t nat -A POSTROUTING -o $EXTIF -d $VPN_SRV \
    -j SNAT --to $EXTIP

-j

--
"Do you want to change your name to Homer Junior? The kids can call
 you Hoju!"
        --The Simpsons


  reply	other threads:[~2004-11-22 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-22 10:41 IPsec through NAT Mode Nilesh
2004-11-22 15:07 ` Jason Opperisano [this message]
  -- 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=20041122150722.GA30577@bender.817west.com \
    --to=opie@817west.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.