Bug 5936
Summary: | Openswan tunnels + netfilter problem | ||
---|---|---|---|
Product: | Networking | Reporter: | Domenico (webmaster) |
Component: | Netfilter/Iptables | Assignee: | Patrick McHardy (kaber) |
Status: | CLOSED CODE_FIX | ||
Severity: | high | CC: | bunk |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.16-rc1 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
[NETFILTER]: Fix xfrm lookup after SNAT
[XFRM]: Fix SNAT-related crash in xfrm4_output_finish |
Description
Domenico
2006-01-22 12:02:18 UTC
Here my lsmod status: Module Size Used by af_key 38804 0 deflate 5120 1 zlib_deflate 22560 1 deflate twofish 45824 0 serpent 20480 0 blowfish 9728 0 sha256 9728 0 crypto_null 3712 0 aes 27688 11 des 17792 0 xfrm4_tunnel 5384 7 ipcomp 9232 4 esp4 9984 11 ah4 7808 0 ipt_LOG 8320 3 xt_pkttype 2816 3 iptable_mangle 3968 1 xt_MARK 3712 1 xt_limit 3712 1 xt_state 3072 3 xt_tcpudp 4480 8 ipt_MASQUERADE 4736 2 iptable_nat 9860 1 ip_nat 21784 2 ipt_MASQUERADE,iptable_nat ip_conntrack 62632 4 xt_state,ipt_MASQUERADE,iptable_nat,ip_nat nfnetlink 8392 2 ip_nat,ip_conntrack iptable_filter 4096 1 ip_tables 14560 3 iptable_mangle,iptable_nat,iptable_filter x_tables 16136 9 ipt_LOG,xt_pkttype,xt_MARK,xt_limit,xt_state,xt_tcpudp,ipt_MASQUERADE,iptable_nat,ip_tables ipv6 288736 12 parport_pc 32236 1 lp 16064 0 parport 44172 2 parport_pc,lp autofs4 23944 2 dm_mod 62280 0 video 18568 0 button 8352 0 battery 11272 0 ac 6280 0 ohci_hcd 23300 0 ehci_hcd 36360 0 i2c_nforce2 8960 0 i2c_core 25728 1 i2c_nforce2 shpchp 50048 0 snd_intel8x0 37672 0 snd_ac97_codec 109884 1 snd_intel8x0 snd_ac97_bus 3584 1 snd_ac97_codec snd_seq_dummy 4868 0 snd_seq_oss 36964 0 snd_seq_midi_event 9472 1 snd_seq_oss snd_seq 61208 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event snd_seq_device 11024 3 snd_seq_dummy,snd_seq_oss,snd_seq snd_pcm_oss 58400 0 snd_mixer_oss 19968 1 snd_pcm_oss snd_pcm 103176 3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss snd_timer 28296 2 snd_seq,snd_pcm snd 67168 9 snd_intel8x0,snd_ac97_codec,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_ pcm,snd_timer soundcore 12192 1 snd snd_page_alloc 12816 2 snd_intel8x0,snd_pcm r8169 33672 0 3c59x 51124 0 mii 7168 1 3c59x floppy 74264 0 ext3 140944 7 jbd 64296 1 ext3 raid1 24192 7 sata_nv 11268 16 libata 65944 1 sata_nv sd_mod 19456 18 scsi_mod 156248 2 libata,sd_mod I think the problem is on iptables rules, now I'm checking every single rule, when I found the one who cause kernel Ooops I'll post back. I think the problem lies on MASQUERADING. supposing net to net from 10.0.1.0/255.255.255.0 (GW1) to 10.0.0.0/255.255.255.0 (GW2) both connected to eth1 of their own gateway. internet gw connected to eth0 of both gateway. iptables -t nat -A POSTROUTING -s 10.0.0.1 -o eth0 -j MASQUERADE ping -I eth1 10.0.1.1 kernel Ooops iptables -t nat -A POSTROUTING -s 10.0.0.1 -d ! 10.0.1.0/255.255.255.0 -j MASQUERADE ping -I eth1 10.0.1.1 ok Hope this can help you.... Can be NAT-T patch issue on 2.6.16-rc1 ? I've installed openswan 2.4.4 from rpm for fedora core 4 .... Ty for your reply... I'm new to this stuffs so I can't understand it clearly. Do you think is there a way to obtain two vpn up and running, making masquerading avoiding this crash ? Environment description: GW1 (openswan + firewall kernel 2.6.16-rc1 on AMD 64) 10.0.0.0/24 on eth1 public ip on eth0 (internet connection) GW2 GW1 (openswan + firewall kernel 2.6.16-rc1 on AMD 64) 10.0.1.0/24 on eth1 public ip on eth0 (internet connection) on both GW iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE I need this one because router on eth0 needs to be masqued for allowing traffic flowing (CISCO ACL).. I could not use iptables -t nat -A POSTROUTING -o eth0 -d ! REMOTE_LAN_TROUGH_VPN -j MASQUERADE because I think that without masquerading my router on eth0 will drop esp package...... TY News on this bug ? Ty ----- Original Message ----- From: <bugme-daemon@bugzilla.kernel.org> To: <webmaster@elnportal.it> Sent: Wednesday, January 25, 2006 12:26 AM Subject: [Bug 5936] Openswan tunnels + netfilter problem > http://bugzilla.kernel.org/show_bug.cgi?id=5936 > > > > > > ------- Additional Comments From webmaster@elnportal.it 2006-01-24 > 15:26 ------- > Ty for your reply... > > I'm new to this stuffs so I can't understand it clearly. > > Do you think is there a way to obtain two vpn up and running, making > masquerading avoiding this crash ? > > Environment description: > > GW1 (openswan + firewall kernel 2.6.16-rc1 on AMD 64) > > 10.0.0.0/24 on eth1 > public ip on eth0 (internet connection) > > > GW2 GW1 (openswan + firewall kernel 2.6.16-rc1 on AMD 64) > > 10.0.1.0/24 on eth1 > public ip on eth0 (internet connection) > > on both GW iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > > I need this one because router on eth0 needs to be masqued for allowing > traffic > flowing (CISCO ACL).. > > I could not use > iptables -t nat -A POSTROUTING -o eth0 -d ! REMOTE_LAN_TROUGH_VPN -j > MASQUERADE > because I think that without masquerading my router on eth0 will drop esp > package...... > > TY > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > reassigning this to kaber, he's the netfilter/ipsec guy. The problem happens when a packet which matches a policy is SNATed and doesn't match any policy afterwards. I'll probably get a fix done by tonight. news about that ? thank you. News on this bug ?? I really need it fixed, pls hlp. ----- Original Message ----- From: <bugme-daemon@bugzilla.kernel.org> To: <webmaster@elnportal.it> Sent: Thursday, February 02, 2006 8:37 PM Subject: [Bug 5936] Openswan tunnels + netfilter problem > http://bugzilla.kernel.org/show_bug.cgi?id=5936 > > > > > > ------- Additional Comments From webmaster@elnportal.it 2006-02-02 > 11:37 ------- > news about that ? > thank you. > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > Created attachment 7350 [details]
[NETFILTER]: Fix xfrm lookup after SNAT
Created attachment 7351 [details]
[XFRM]: Fix SNAT-related crash in xfrm4_output_finish
Sorry for the delay. These two patches should fix the problem. No problem, ty for your help. Bye and really good work ! ----- Original Message ----- From: <bugme-daemon@bugzilla.kernel.org> To: <webmaster@elnportal.it> Sent: Wednesday, February 15, 2006 7:28 PM Subject: [Bug 5936] Openswan tunnels + netfilter problem > http://bugzilla.kernel.org/show_bug.cgi?id=5936 > > > > > > ------- Additional Comments From kaber@trash.net 2006-02-15 10:28 ------- > Sorry for the delay. These two patches should fix the problem. > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > The patches from this bug are already included in kernel 2.6.16. |