trescomban1 Posted October 11, 2012 Share Posted October 11, 2012 Hi, I wan to share internet from the wan(eth1) to the eht0 port and the wlan0 port at same time. Now i have the ip 192.168.1.2 in eth1 (wan whit internet conection to a router ) and range ip 172.16.1.x on the eth0 and wlan0. What is the Route comand to use on this case? Actually im using network managenetwork module to configure the ics. Thank you so much. Quote Link to comment Share on other sites More sharing options...
Wookiee Posted October 11, 2012 Share Posted October 11, 2012 (edited) I did it this way: [install iptables] echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE [edit: woops did not understand what you were asking... the above should still work but if you want to use the moduals then I got no clue, havent installed any yet... incidently if you are using the wlan0 on your pineapple how are you using both eth0 and eth1? I was under the impression that engaging the wlan0 took the rescorces that eth0 needed... or something,and forwarding between eth1 and wlan0 should be engaged by default.] Edited October 12, 2012 by Wookiee Quote Link to comment Share on other sites More sharing options...
loozr Posted October 11, 2012 Share Posted October 11, 2012 If you have the network module I guess this is as simple as forwarding from eth1 to br0. As far as commandline goes I have no clue, but I bet you can do it! ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.