Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shorewall problem with 2.6.20 kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
divined
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 165

PostPosted: Fri Apr 20, 2007 7:03 pm    Post subject: shorewall problem with 2.6.20 kernel Reply with quote

Hello everybody

Just a while ago I upgraded to the 2.6.20-gentoo-r6 kernel version from version 2.6.19-gentoo-r5. Unfortunately, I now have a problem with shorewall. Specifically, when I try to start it I get the error :

Code:

ERROR: Rule "DNAT net loc:192.168.1.100 tcp ##" requires NAT which is disabled


Has something changed in the kernel config regarding NAT? Do I need to add some new kernel support or module?

George Papadopoulos
Back to top
View user's profile Send private message
terminal9
Apprentice
Apprentice


Joined: 12 Oct 2006
Posts: 157

PostPosted: Fri Apr 20, 2007 8:20 pm    Post subject: Reply with quote

Yes, I noticed some netfilter related changes in .20
A practical way to observe what has changed is to copy your old .config and run
Code:
make oldconfig

You'll get prompts about changes, enable as necessary. Then do make && make modules_install ... etc
Back to top
View user's profile Send private message
Ehnvis
Guru
Guru


Joined: 13 Jun 2006
Posts: 305
Location: /dev/random

PostPosted: Sat Apr 21, 2007 6:33 am    Post subject: Reply with quote

The Full Nat option that you need has been moved, and for some reason make oldconfig doesnt say anything.
Look under ipfilter configuration and add it, recompile the kernel and it should work.
_________________
HP NC 4010, Pentium-M 725 1.6GHz w/ 1Gb RAM, 60Gb Hitachi Travelstar.
Running Gentoo-2.6.21-r4 (again as 2.6.22 kernels hogs CPU), all but SD reader works fine.
Back to top
View user's profile Send private message
divined
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 165

PostPosted: Sat Apr 21, 2007 7:07 am    Post subject: Reply with quote

I`m looking under some netfilter options but can find nothing relative. Am I not looking in the correct subsection?
Back to top
View user's profile Send private message
Ehnvis
Guru
Guru


Joined: 13 Jun 2006
Posts: 305
Location: /dev/random

PostPosted: Sat Apr 21, 2007 7:29 am    Post subject: Reply with quote

Under IP netfilter configuration activate IPv4 connection tracking support and then Full NAT shows up under IP tables support. Add that and then recompile and everything should be fine.
_________________
HP NC 4010, Pentium-M 725 1.6GHz w/ 1Gb RAM, 60Gb Hitachi Travelstar.
Running Gentoo-2.6.21-r4 (again as 2.6.22 kernels hogs CPU), all but SD reader works fine.
Back to top
View user's profile Send private message
divined
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 165

PostPosted: Sat Apr 21, 2007 7:40 pm    Post subject: Reply with quote

thanks. I hadn`t activated some options in the kernel config. The really odd thing is how it used to work with the 2.6.19 version kernel.
Back to top
View user's profile Send private message
Ehnvis
Guru
Guru


Joined: 13 Jun 2006
Posts: 305
Location: /dev/random

PostPosted: Sun Apr 22, 2007 5:54 am    Post subject: Reply with quote

It's not that odd, it's just the guys that writes the netfilters that are odd. Even Linus Torvalds didn't like this change and was quite mad at the developers.
_________________
HP NC 4010, Pentium-M 725 1.6GHz w/ 1Gb RAM, 60Gb Hitachi Travelstar.
Running Gentoo-2.6.21-r4 (again as 2.6.22 kernels hogs CPU), all but SD reader works fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum