public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Openswan, iptables (fiaif) and 2.6.16 kernel
@ 2006-04-14 12:32 Laurent CARON
  2006-04-15 15:58 ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Laurent CARON @ 2006-04-14 12:32 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm running an openswan gateway for quite a long time now.

I have used 2.4.X and 2.6.X kernels without any problem until i decided 
to upgrade to 2.6.16 kernel.

Summary of problem:

Under 2.6.15 everything is fine

Under 2.6.16 my tunnels establish well, but i can't even ping a single 
computer located on the other end of the tunnel when the firewall is up.
Disabling the firewall solves the problem (but is not an option for me).

$ cat ip_conntrack | grep 192.168.10
icmp     1 8 src=192.168.0.192 dst=192.168.10.1 type=8 code=0 id=793 
packets=4 bytes=116 [UNREPLIED] src=192.168.10.1 dst=XXX.XXX.XXX.XXX 
type=0 code=0 id=793 packets=0 bytes=0 mark=0 use=1

192.168.0.0/24 is my lan subnet (natted so that lan computers can access 
the internet through the public ip address)
192.168.0.192 is a workstation on my lan
192.168.10.0/24 is the other subnet
XXX.XXX.XXX.XXX is my public ip address


If i disable the nat of 192.168.0.0/24, i can ping the other end.

Re-enabling the nat however disables the ability to ping the other end.

Seems iptables is trying to nat packets the wrong way :$, or that I 
missed a major change in 2.6.16.

Do anyone have any clue about this weiredness?

Thanks

Laurent
_______________________________________________
Users@openswan.org
http://lists.openswan.org/mailman/listinfo/users
Building and Integrating Virtual Private Networks with Openswan: 
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Openswan, iptables (fiaif) and 2.6.16 kernel
  2006-04-14 12:32 Openswan, iptables (fiaif) and 2.6.16 kernel Laurent CARON
@ 2006-04-15 15:58 ` Patrick McHardy
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2006-04-15 15:58 UTC (permalink / raw)
  To: Laurent CARON; +Cc: linux-kernel

Laurent CARON wrote:
> Hi,
> 
> I'm running an openswan gateway for quite a long time now.
> 
> I have used 2.4.X and 2.6.X kernels without any problem until i decided
> to upgrade to 2.6.16 kernel.
> 
> Summary of problem:
> 
> Under 2.6.15 everything is fine
> 
> Under 2.6.16 my tunnels establish well, but i can't even ping a single
> computer located on the other end of the tunnel when the firewall is up.
> Disabling the firewall solves the problem (but is not an option for me).
> 
> $ cat ip_conntrack | grep 192.168.10
> icmp     1 8 src=192.168.0.192 dst=192.168.10.1 type=8 code=0 id=793
> packets=4 bytes=116 [UNREPLIED] src=192.168.10.1 dst=XXX.XXX.XXX.XXX
> type=0 code=0 id=793 packets=0 bytes=0 mark=0 use=1
> 
> 192.168.0.0/24 is my lan subnet (natted so that lan computers can access
> the internet through the public ip address)
> 192.168.0.192 is a workstation on my lan
> 192.168.10.0/24 is the other subnet
> XXX.XXX.XXX.XXX is my public ip address
> 
> 
> If i disable the nat of 192.168.0.0/24, i can ping the other end.
> 
> Re-enabling the nat however disables the ability to ping the other end.
> 
> Seems iptables is trying to nat packets the wrong way :$, or that I
> missed a major change in 2.6.16.

2.6.16 does a second policy lookup after SNAT, you probably SNAT
the packets to an address that doesn't match the policy anymore.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Openswan, iptables (fiaif) and 2.6.16 kernel
@ 2006-04-15 16:55 Andrey Borzenkov
  0 siblings, 0 replies; 3+ messages in thread
From: Andrey Borzenkov @ 2006-04-15 16:55 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 2.6.16 does a second policy lookup after SNAT, you probably SNAT
> the packets to an address that doesn't match the policy anymore.

Could you please give pointers where is it documented? All documents I have 
suggest that SNAT is done as the last step, so any rule should use real and 
not SNAT'ed address.

Thank you

Andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEQSWUR6LMutpd94wRAtJ0AJ45p5p54hDdyyjBPWejRtlr+DoNdQCgy1/3
H2MtVmha+rE6vRxzkdSrrI8=
=RHjq
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-15 16:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-14 12:32 Openswan, iptables (fiaif) and 2.6.16 kernel Laurent CARON
2006-04-15 15:58 ` Patrick McHardy
  -- strict thread matches above, loose matches on Subject: below --
2006-04-15 16:55 Andrey Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox