All of lore.kernel.org
 help / color / mirror / Atom feed
* Where has NAT gone?
@ 2007-04-17  8:12 richard
  2007-04-17  9:02 ` Jan Engelhardt
  2007-04-17 19:58 ` Torsten Luettgert
  0 siblings, 2 replies; 6+ messages in thread
From: richard @ 2007-04-17  8:12 UTC (permalink / raw)
  To: netfilter

Hi all
This is hopefully a quick question. Today I upgraded my system from Linux
Kernel 2.6.16.20 to 2.6.20.7 because I needed an updated NIC driver. Upon
running make menuconfig, I noticed that the options for NAT seem to have
vanished from the config menu. 

At first, I used my .config file from 2.6.16.20, but under such a method
there were no netfilter options available at all. So I removed the .config
file and ran make menuconfig from scratch - this time, I got netfilter
options, but no sign of NAT. I then hunted through the source tree and
found plenty of sections that still mention CONFIG_IP_NF_NAT, which ruled
out the possibility that NAT has been merged under a different section of
the kernel compilation. Then I edited the .config file by hand, and added
CONFIG_IP_NF_NAT=yes. After building the kernel (which didn't add any nat
functionality) I checked the .config file and found that the make process
had actually removed the NF data from the file.

I have enabled:
CONFIG PACKET NF CONNTRACK
CONFIG IP NF IPTABLES
CONFIG IP NF FILTER
CONFIG_IP_NF_NAT
CONFIG IP NF MATCH STATE

IPTables works fine. I have a firewall that works. It's just that as soon
as I try to refer to the 'nat' table, it tells me this is not possible as
it's not compiled into my kernel.

I'm not sure if this is the right place to ask but the kernel mailing list
was slow at responding so I thought I'd try here.

Any help would be greatly appreciated

Regards
Richard

------------------------------------------------
This message was sent using InSPire Net Webmail.
http://www.inspire.net.nz




^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Where has NAT gone?
@ 2007-04-19  9:37 richard
  0 siblings, 0 replies; 6+ messages in thread
From: richard @ 2007-04-19  9:37 UTC (permalink / raw)
  To: Torsten Luettgert, richard, netfilter

> On Tue, 2007-04-17 at 08:12 +0000, richard@net-solutions.net.nz wrote:
> > Today I upgraded my system from Linux
> > Kernel 2.6.16.20 to 2.6.20.7 because I needed an updated NIC driver. Upon
> > running make menuconfig, I noticed that the options for NAT seem to have
> > vanished from the config menu. 
> ....
> > I'm not sure if this is the right place to ask but the kernel mailing list
> > was slow at responding so I thought I'd try here.
> 
> Exactly the right place to ask, don't worry.
> 
> What you're probably missing is conntrack, which moved to
> 
> Networking ->
> Networking options ->
> Network packet filtering framework (Netfilter) ->
> Core Netfilter Configuration
> 
> There, enable "Netfilter connection tracking support"
> (CONFIG_NF_CONNTRACK_ENABLED) and "Netfilter Xtables support"
> (CONFIG_NETFILTER_XTABLES).
> 
> Then, one menu up and into "IP: Netfilter Configuration",
> enable
> 
> IPv4 connection tracking support (CONFIG_NF_CONNTRACK_IPV4)
> IP tables support (CONFIG_IP_NF_IPTABLES)
> Full NAT (CONFIG_NF_NAT)
> 
> and optionally MASQUERADE / REDIRECT.
> 
> I understand those config options were moved because they are
> actually not IPv4 specific ("iptables") but more general,
> IPv4 / IPv6 / ARP ("xtables").
> The binary for setting the rules is still called "iptables", though.
> 
> Hth,
> Torsten
> 

Thanks Torsten, that was very helpful. Glad I found the right place first
time round!

Regards
Richard

------------------------------------------------
This message was sent using InSPire Net Webmail.
http://www.inspire.net.nz




^ permalink raw reply	[flat|nested] 6+ messages in thread
* Where has NAT gone?
@ 2007-04-17  8:07 netsol3
  0 siblings, 0 replies; 6+ messages in thread
From: netsol3 @ 2007-04-17  8:07 UTC (permalink / raw)
  To: netfilter

Hi all
This is hopefully a quick question. Today I upgraded my system from Linux
Kernel 2.6.16.20 to 2.6.20.7 because I needed an updated NIC driver. Upon
running make menuconfig, I noticed that the options for NAT seem to have
vanished from the config menu. 

At first, I used my .config file from 2.6.16.20, but under such a method
there were no netfilter options available at all. So I removed the .config
file and ran make menuconfig from scratch - this time, I got netfilter
options, but no sign of NAT. I then hunted through the source tree and
found plenty of sections that still mention CONFIG_IP_NF_NAT, which ruled
out the possibility that NAT has been merged under a different section of
the kernel compilation. Then I edited the .config file by hand, and added
CONFIG_IP_NF_NAT=yes. After building the kernel (which didn't add any nat
functionality) I checked the .config file and found that the make process
had actually removed the NF data from the file.

I have enabled:
CONFIG PACKET NF CONNTRACK
CONFIG IP NF IPTABLES
CONFIG IP NF FILTER
CONFIG_IP_NF_NAT
CONFIG IP NF MATCH STATE

IPTables works fine. I have a firewall that works. It's just that as soon
as I try to refer to the 'nat' table, it tells me this is not possible as
it's not compiled into my kernel.

I'm not sure if this is the right place to ask but the kernel mailing list
was slow at responding so I thought I'd try here.

Any help would be greatly appreciated

Regards
Richard

------------------------------------------------
This message was sent using InSPire Net Webmail.
http://www.inspire.net.nz




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

end of thread, other threads:[~2007-04-19  9:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-17  8:12 Where has NAT gone? richard
2007-04-17  9:02 ` Jan Engelhardt
2007-04-17 19:58 ` Torsten Luettgert
2007-04-17 20:21   ` Pascal Hambourg
  -- strict thread matches above, loose matches on Subject: below --
2007-04-19  9:37 richard
2007-04-17  8:07 netsol3

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.