Re: ip masquerading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


That is because the computers on your network do not know where the internal box is.
A quick scenario: wants to connect to
it looks inside its network settings, and sees that is not on his subnet
it checks for other routes that maybe lead to, nope, nothing
then it sends the packet to the default gateway, hoping the gateway knows what to do with the packet

I've never really checked what happens with such a packet at the gateway, but it will most likely drop it.
Either way, the packet get's lost.

The best way is to setup your DHCP to push a default route for to If you do not have a DHCP server, you will have to set a route manually
on each client on the network. Something like this:
route add -host gw

This will let the other clients know where the internal box is. Hope this works.


bruce wrote:
hi tim...

basically, a laptop connecting via ath0 to my network (and the internet).

the setup is

 internal box    ------>   laptop  (wireless) -----> network/internet
    eth0                  eth0   ath0               eth0

in order to have multiple ports, the eth0/ath0 are on different subnets.



the setup has to allow the internal box, to communicate with the laptop, as
well as the rest of the network.

the solution (at least for me)
  on the internal box
     -setup a route command to allow the laptop (eth0)
      to be the default gw

  on the laptop
     -setup iptables to pass/masquerade from eth0 to ath0

this allows me to ping systems from the internal box.

however, i still can't seem to access the internal box, from any other
system in my network... so something in the iptables/masquerade isn't
working correctly..

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Timothy Murphy
Sent: Saturday, November 24, 2007 9:20 AM
To: [email protected]
Subject: Re: ip masquerading

bruce wrote:

i have a situation where i have a system with two connections, one
wireless, one eth connetion. i can currently connect with the wireless
ath0 to my network/internet/etc...

however, when i activate the eth0 at the same time, i can't access the
network via ath0. as far as i can tell, i need to implement ip masquerade
to have eth0 map, to ath0...

my test ip addresses are:
 ath0 -
 eth0 -

any thoughts/comments/pointers...
I don't really understand your setup.
Is this a laptop connecting to a desktop which connects to the internet?
If so, I can't believe that you need ip masquerade to connect via ethernet.
I'm sure the problem is much simpler.

Maybe it's a dhcp problem?
Or maybe you are running a firewall on the desktop
that does not allow access from your first LAN (192.168.1.*)?

fedora-list mailing list
[email protected]
To unsubscribe:


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux