LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2005, 06:18 PM   #1
drakethegreat
Member
 
Registered: Sep 2004
Location: Seattle, WA
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61

Rep: Reputation: 15
IP Forwarding and Masquerading problems


Ok well I have somewhat popular setup with my slackware 10 machine. I have 2 ethernet cards in PCI slots. One connects me to the outgoing world (eth0) through my cable modem and the other connects to a hub (eth1) which has a WAP (linksys) connected at 192.168.0.38 with a few wireless clients with 192.168.0.98 etc... So I'm able to ping my linux system from my clients and vice versa. I'm able to ping the outside world (which I'm using to read this). I read the article listed below in attempting to route traffic from my local to the WAN and have failed thus far. I have iptables set exactly to what that article has listed and yet I still get no forwarding. Anyone know what might be the problem? Any input is better then none ;-)
 
Old 02-21-2005, 06:33 PM   #2
drakethegreat
Member
 
Registered: Sep 2004
Location: Seattle, WA
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61

Original Poster
Rep: Reputation: 15
Sorry forgot link. Ya sad but oh well.

http://www.linuxquestions.org/questi...ticle&artid=23
 
Old 02-21-2005, 10:04 PM   #3
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
To provide NAT functions:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Is that what you typed?
 
Old 02-21-2005, 10:24 PM   #4
drakethegreat
Member
 
Registered: Sep 2004
Location: Seattle, WA
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61

Original Poster
Rep: Reputation: 15
Yes I have added that rule. I packet sniffed a request from one of the clients and it attempts to ping the IP I give it but gets no response. When I packet sniff on the router (linux box) I see that it sees the request but there never is a reply packet of any sort.
 
Old 02-22-2005, 01:56 AM   #5
drakethegreat
Member
 
Registered: Sep 2004
Location: Seattle, WA
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61

Original Poster
Rep: Reputation: 15
I finally got it to work. I had the rule in iptables but for some reason it didn't work when using all the other rules supplied in that article. Slight mishap with my firewall settings I guess. I'm putting the rule in my rc.local file so that it always loads the way it should. I also had to slightly modify it to -I because for some reason the chain didn't exist and I couldn't just append it. So I would recommand trying it with -I for anyone who is having similar issues.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
port forwarding or masquerading? rdrs Linux - Networking 3 08-14-2005 04:42 PM
Problems with IP masquerading pilot1 Linux - Networking 39 07-16-2003 10:50 AM
ip forwarding/masquerading for dummies? frieza Linux - Networking 2 06-05-2003 11:49 PM
ip masquerading causes application problems in windows pollux0 Linux - General 6 12-17-2002 11:51 AM
IP Masquerading on Red Hat 7.3 Problems Joe Kerrigan Linux - Networking 4 08-04-2002 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration