On 7/30/05, Basem Narmok <[EMAIL PROTECTED]> wrote: > Salam, > > iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE > replace 192.168.0.0 with your network > > On 7/30/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have a linux box (b1) connected to an ethernet adsl modem (rth0) and also > > connected to a windows (b2) box through a wireless connection (ra0). > > > > although b1 is the default gateway and dns for b2, b2 can't access the > > internet. > > > > notes: > > b2 can ping b1. (and vice verse) > > ip forwording is enabled on b1. > > the adsl connection is the default gateway on b1. > > > > Any help getting b2 to connect the net through b1? > > > > _______________________________________________ > > General mailing list > > [email protected] > > http://mail.jolug.org/mailman/listinfo/general_jolug.org > > > > _______________________________________________ > General mailing list > [email protected] > http://mail.jolug.org/mailman/listinfo/general_jolug.org >
The MASQURADE target doesn't care about the source ip, it cares about interfaces, I stand to be corrected though. I think this is what you need. #iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE or add the option `-i ra0` if you are paranoid or the above command doesn't work as is. hope this helps. -- --------------------------- Netiquette -> http://www.dtcc.edu/cs/rfc1855.html http://tumbak.at.preempted.net http://redwing.hutman.net/%7Emreed/warriorshtm/netiquettenazi.htm --------------------------- _______________________________________________ General mailing list [email protected] http://mail.jolug.org/mailman/listinfo/general_jolug.org
