* IPsec through NAT Mode
@ 2004-11-22 10:41 Nilesh
2004-11-22 15:07 ` Jason Opperisano
0 siblings, 1 reply; 3+ messages in thread
From: Nilesh @ 2004-11-22 10:41 UTC (permalink / raw)
To: iptables
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* IPsec through NAT Mode
@ 2004-11-22 10:48 Nilesh
0 siblings, 0 replies; 3+ messages in thread
From: Nilesh @ 2004-11-22 10:48 UTC (permalink / raw)
To: netfilter
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!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: IPsec through NAT Mode
2004-11-22 10:41 IPsec through NAT Mode Nilesh
@ 2004-11-22 15:07 ` Jason Opperisano
0 siblings, 0 replies; 3+ messages in thread
From: Jason Opperisano @ 2004-11-22 15:07 UTC (permalink / raw)
To: iptables
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-11-22 15:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-22 10:41 IPsec through NAT Mode Nilesh
2004-11-22 15:07 ` Jason Opperisano
-- strict thread matches above, loose matches on Subject: below --
2004-11-22 10:48 Nilesh
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.