Networking Forums

Networking Forums > Computer Networking > Linux Networking > IP Masquerading and Forwarding isn't working!!!! Help!!!!!!

Reply
Thread Tools Display Modes

IP Masquerading and Forwarding isn't working!!!! Help!!!!!!

 
 
Eric M. Smith
Guest
Posts: n/a

 
      01-02-2004, 11:14 PM
I am having a problem with iptables and forwarding/Masquerading. Any
and all assistance is greatly appreciated.

Here is my network layout:

ISP
|
+----------- | ---------------------+
|[Internet Connection (ICS enabled)]|
| |
| Win2k Pro | <== NetServer
| |
| [ethernet (192.168.0.101)] |
+------------ | --------------------+
|
[ router ]--- Other machines
|
+------------ | -------------+
| [eth0 (192.168.0.99)] |
| |
| Mandrake Linux 9.2 | <== Notebook
| |
| [usb0 (192.168.1.200)] |
+----------- | --------------+
|
|
+----------- | --------------+
| [usbf (192.168.1.202) ] |
| | <== Handheld
| Familiar Linux v0.7.2 |
+----------------------------+


I have successfully established a networking connection between
Handheld and Notebook using USB networking. This is confirmed by my
ability to ping Notebook:eth0 (192.168.0.99) from Handheld and receive
a valid response. I can also ping Handheld:usbf (192.168.1.202) from
Notebook and receive a response.

I am able to surf the net (through NetServer) and connect to other
machines from Notebook (using eth0); however, I cannot get routing
established properly between Handheld:usbf and NetServer:ethernet.
Everything I send out from Handheld stops at Notebook and is not
forwarded (through Notebook:eth0) to the rest of the world.

What I am looking for are the correct iptables commands to allow this
to happen (effectively use Notebook as a proxy server for Handheld).

I know this involves IP-Masquerading and Forwarding, but everything I
have found so far (mostly at www.handhelds.org) isn't working
properly.

TIA

Eric
 
Reply With Quote
 
 
 
 
KH
Guest
Posts: n/a

 
      01-03-2004, 09:02 PM
Eric M. Smith wrote:
> I am having a problem with iptables and forwarding/Masquerading. Any
> and all assistance is greatly appreciated.
>

<snip>
>
> I am able to surf the net (through NetServer) and connect to other
> machines from Notebook (using eth0); however, I cannot get routing
> established properly between Handheld:usbf and NetServer:ethernet.
> Everything I send out from Handheld stops at Notebook and is not
> forwarded (through Notebook:eth0) to the rest of the world.
>
> What I am looking for are the correct iptables commands to allow this
> to happen (effectively use Notebook as a proxy server for Handheld).
>
> I know this involves IP-Masquerading and Forwarding, but everything I
> have found so far (mostly at www.handhelds.org) isn't working
> properly.
>
> TIA
>
> Eric



There is a single iptables command to enable masquerading. Check out
the howtos from tldp.org for examples. Also, if you weren't aware,
there is an option in /proc/sys/net/ipv4/ip_forward that disables or
enables forwarding. Check this out and look at the sysctl configuration
to enable this option.

 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bigfoot forwarding working now Max Demian Broadband 1 08-11-2009 01:10 PM
Port Forwarding Not Working JC Windows Networking 1 11-06-2007 01:16 PM
Port forwarding not working Peter CCH Windows Networking 8 11-25-2005 03:19 PM
iptables masquerading/snat stop working upon moving to kernel 2.6 S P Arif Sahari Wibowo Linux Networking 6 08-24-2005 03:13 AM
forwarding and masquerading over a wireless link Brian Seppanen Linux Networking 0 02-01-2004 03:26 AM



1 2 3 4 5 6 7 8 9 10 11