Linux Netfilter discussions
 help / color / mirror / Atom feed
* Why does ipv6 enabled interfere with ipv4 SNAT?
@ 2008-03-25  1:28 Whit Blauvelt
  2008-03-25  1:58 ` Jan Engelhardt
  0 siblings, 1 reply; 14+ messages in thread
From: Whit Blauvelt @ 2008-03-25  1:28 UTC (permalink / raw)
  To: netfilter

I've just been setting up a replacement for an old server happily running
Netfilter with SNAT for years. The new one - using Ubuntu Server 7.10 - was
refusing to SNAT or MASQ, despite running the same long-proven Netfilter
rules. After checking that everything was getting set right in
/proc/sys/net/ipv4/conf (it was), I for some reason took a look in
/proc/sys/net/ipv6/conf. (Ubuntu insists on running ipv6 by default.) There
was an anomoly: The new machine has 6 NICs, and while ipv4/conf had eth0
through eth5, ipv6/conf only had them through eth3 - just the first 4. As it
happens the Internet-facing NICs for this box are eth4 and eth5.

At first I looked for a way to populate the ipv6 proc area. But not finding
that, and really having no use for ipv6 anyway - stupid to leave stuff on on
a server when it's not being used right? - I finally went to
/etc/modprobe.d/arch/i386 and added a line, "alias net-pf-10 off", which on
rebooting blocks the ipv6 kernel module from loading. Now, with no other
change, SNAT works as well as ever.

But I'd still like to understand what the principle here is. Are there two
independent ipv6-related bugs - one that prevents its /proc space being
populated beyond 4 NICs, and a totally different one that breaks ipv4
Netfilter SNAT? Or was the first bug what broke SNAT? What is ipv4 Netfilter
doing being vulnerable to ipv6 problems anyway? I know there's Netfilter
stuff for ipv6; is it somehow required to invoke that somehow if ipv6 is
enabled in order for the ipv4 Netfilter code to work right with SNAT? 

Finally, is the Ubuntu Server project being boneheaded to even have ipv6
enabled by default, if it's still this far from being ready for prime time?
Servers should be rock-solid at basic functions like SNAT out-of-the-box,
IMHO.

Thanks for any explanations. As I say, things work fine once I figure out
what to disable. But frankly it took me half the day to track down what the
problem was. 

Regards,
Whit

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

end of thread, other threads:[~2008-04-02 10:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25  1:28 Why does ipv6 enabled interfere with ipv4 SNAT? Whit Blauvelt
2008-03-25  1:58 ` Jan Engelhardt
2008-03-25  2:44   ` Whit Blauvelt
2008-03-25  2:57     ` Jan Engelhardt
2008-03-25  3:57       ` Whit Blauvelt
2008-03-25 11:03     ` Jozsef Kadlecsik
2008-03-25 14:25       ` Whit Blauvelt
2008-03-25 15:53         ` Patrick McHardy
2008-03-27 14:10           ` Whit Blauvelt
2008-04-02 10:26             ` Patrick McHardy
2008-03-26  9:45         ` Jozsef Kadlecsik
2008-03-27 14:15           ` Whit Blauvelt
2008-03-26 11:03       ` Pascal Hambourg
2008-03-26 11:12         ` Jozsef Kadlecsik

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