Re: ip masquerading

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

 



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.
> 
> laptop
>   eth0   192.168.2.33
>   ath0   192.168.1.33
> 
> internal
>    eth0  192.168.2.13
> 
> 
> 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..
> 
I think this is more a case of using the wrong tool for the job. IP
masquerading is not really want you want to do. I think you might
find bridging will work better in this case. It will let you keep
everything in one netgroup. If you don't want to do bridging, you
can still set ip IP tables to froward traffic for the 192.168.2.0
network, but you will have to tell all the other computers on your
network that need to access the 192.168.2.33 machine that the
gateway to access it is 192.168.1.33.

Mikkel
-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux