View previous topic :: View next topic |
Author |
Message |
HeadHolio Guru
Joined: 10 Aug 2002 Posts: 445
|
Posted: Mon Mar 03, 2003 7:23 am Post subject: Problem with 2.4.20 kernel? |
|
|
Ok, currently I have my Gentoo box set up as a gateway for a Windows 98 box. Everything works, can ping both machines from each other, internet sharing works through dhcp and I have filesharing set up as well. However, this only works on the 2.4.19 gentoo sources kernel. I am trying to upgrade the system to the 2.4.20 kernel and everything goes ok, but I end up with iptables errors at boot and nat forwarding (internet sharing) no longer works, even though I never changed any iptables rules. If I got back to the older kernel, then the errors go away. Here is my /etc/conf.d/net contents:
Code: |
iface_eth1="192.168.0.1 netmask 255.255.0.0"
iface_eth0="dhcp"
# Net Sharing
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -i lo -j ACCEPT
/sbin/iptables -A INPUT -j LOG --log-level 4 --log-prefix "ATTACK"
/sbin/iptables -A INPUT -j DROP
|
Did the iptables rules setup change for the newer kernel? Do I need to re-emerge iptables or something? Oh I should also mention that I used the exact same kernel config file when compiling the newer kernel as well, so all the needed modules etc. should be loaded properly.
To answer a few questions beforehand, no I didn't try any other kernels yet (vanilla, red-hat, etc), and I really have no reason to upgrade to the newer kernel other than to keep the system up to date. |
|
Back to top |
|
|
Sven Vermeulen Retired Dev
Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Mon Mar 03, 2003 8:18 am Post subject: |
|
|
Perhaps posting the errors could be interesting.
When you compiled the 2.4.20, did you forget to run "make modules" and "make modules_install"? Is your /etc/modules.conf (actually /etc/modules.d) current? |
|
Back to top |
|
|
simon Apprentice
Joined: 26 Apr 2002 Posts: 225 Location: Vienna
|
Posted: Mon Mar 03, 2003 10:34 am Post subject: Re: Problem with 2.4.20 kernel? |
|
|
HeadHolio wrote: | [...]
Do I need to re-emerge iptables or something
[...] |
If you emerge the new kernel, there is a small note, that you should re-emerge iptables if you get errors like "illegal argument" (?). So, try re-emerging iptables.
Simon |
|
Back to top |
|
|
HeadHolio Guru
Joined: 10 Aug 2002 Posts: 445
|
Posted: Mon Mar 03, 2003 5:32 pm Post subject: sorry |
|
|
I was going to post the errors but I forgot what they were exactly. I believe that the were "illegal argument", that sounds very farmiliar. I'll try re-emerging iptables and post results. |
|
Back to top |
|
|
|
|
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
|
|