Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NAT/MASQ just plain won't work.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dixtow
n00b
n00b


Joined: 10 May 2005
Posts: 28

PostPosted: Mon Mar 10, 2008 6:31 am    Post subject: NAT/MASQ just plain won't work. Reply with quote

Posting this from links, SSHed into my would-be router...

I'm at my wit's end here. I'm using the same old scripts and documentation that I've always used to set up a router box (gentoo home router howto). Not like I've never done this before. I'm not even sure where to start in asking for help. I've set up router boxes at least 30 times.

NAT/MASQ just doesn't work, even though I'm doing nothing wrong. I've gone nuts recompiling every known router related option in the kernel.

dnsmasq is working great tho. ping requests display the translated ip, but no traffic... I've tried even the most basic rule sets, nothing works.

I know it's not a hardware issue, as I am using a client machine to ssh into the LAN side of the router, and then using links to post this very message. All communication is working, dnsmasq is working, but the damn thing just plain refuses to NAT/MASQUERADE. I think it hates me...

Someone post a .config from a 2.6.23-gentoo-r9 kernel? Maybe I'm missing something that menuconfig is not showing me?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Mar 10, 2008 7:03 pm    Post subject: Reply with quote

Did you remember this part ?
/etc/sysctl.conf wrote:
net.ipv4.ip_forward = 1
Back to top
View user's profile Send private message
dixtow
n00b
n00b


Joined: 10 May 2005
Posts: 28

PostPosted: Tue Mar 11, 2008 6:32 am    Post subject: Reply with quote

Yup, I simply can't find anything wrong at all. I'm starting to think there's a bug in the kernel. Is anyone successfully using 2.6.23-gentoo-r9 to NAT/Masquerade?

I'm "this close" to just giving up on computers altogether. It's just plain impossible.
Back to top
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Tue Mar 11, 2008 9:03 am    Post subject: Reply with quote

can you please post:
Code:

sudo iptables -L -n
cat /proc/sys/net/ipv4/ip_forward

_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Mar 11, 2008 2:48 pm    Post subject: Reply with quote

My router is running fine with 2.6.24.2 (vanilla), but I was using a 2.6.23.x kernel previously, without any problem.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Wed Mar 12, 2008 3:09 am    Post subject: Reply with quote

Never use iptables -L -n to diagnose a problem. It omits too much important information. Use iptables-save -c. This will produce a human readable dump of the exact state of your firewall.
Back to top
View user's profile Send private message
theholymac
n00b
n00b


Joined: 28 Jun 2006
Posts: 56
Location: Probably at the solar car shop in St. Paul

PostPosted: Sat Aug 28, 2010 10:42 pm    Post subject: Reply with quote

cyrillic, did you ever solve your problem? I'm having the same maddening issue.

I have a Gentoo router that was working *perfectly*. I shut it down to install a serial card, and when I booted it back up, MASQ was broken. DNS queries work fine, the computers on the LAN "see" the internet, but no packets get through. I've triple checked every single config file I can think of, looked through recent installs/upgrades (the only network-related emerge since the previous reboot was dhcpcd-5.2.7), and looked through every "gentoo home router guide" google can find for me. I've even gone back and removed the serial card I installed, on the of chance that it magically breaks something.

Everything is as it should be, but it still fails to work.

I am at my wits end.

EDIT: This is going to sound really stupid, but... Apparently it was the dhcpcd upgrade's fault? After beating my head against this issue for upwards of 24 hours, I went and downgraded dhcpcd (I was going to one-by-one downgrade/install/uninstall my way to the configuration it was in at the last "working" boot) and, well, it works again. I notice that 5.2.7 is also no longer in the stable tree? I have no idea how the dhcp client could have broken my network, but apparently it did...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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