Re: attempting ip forwarding... i think!!

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

 





On 10/15/07, sam <bedouglas@xxxxxxxxxxxxx> wrote:
Hi...

I have a laptop that's connected to the rest of the network via the wireless
port. It works. I also have the eth0 port that I use to connect to another
box that's not connected to the network.

so

  internal box     >>>>laptop >>>>>  rest of network (internal/internet)
        eth0       (eth0)   (ath0)

   Internal Box eth0:192.168.2.99

   laptop
         eth0: 192.168.2.33
         ath0: 192.168.1.33

Each of the connections work.

I've set up separate subnets on the laptop, as this appears to be the only
way of being able to be able to have both eth0/ath0 active, and
communicating at the same time.

Using the laptop, I can currently access both the box, and the network at
the same time.

However, using the box, I can only access the laptop. Pinging to the rest of
the network, results in "host unreachable", which is expected.

So, I'm trying to figure out what has to be set on:
either the Internal eth0 nic,
or the laptop eth0 nic,
or both the Internal box/laptop
to allow the Internal box to be able to access the rest of the network.

I've been looking high/low to try to figure this out. I need to accomplish
this, as I'd like to update the internal computer with Fedora update rpms
via yum, which requires internet access.

Information that I've come across on the 'net refers to
IPTables/Route/IPMasq/etc....

I've tried to setup iptables on the laptop, to do ip forwarding based on
articles i've seen. I've implemented:

    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    /etc/init.d/iptables save

when i then use the Internal Box, to try to access a box on my network, or
the internet, i'm still restricted to only being able to access the laptop.

any thoughts/comments/pointers would be helpful, and appreciated.

thanks

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


read carefully what i wrote you in IRC. _ath0_ istead of _eth0_ since it your gate to internet.

and do

route add default gw 192.168.2.33

in internal box

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

  Powered by Linux