R04DRUNN3R Posted July 22, 2012 Share Posted July 22, 2012 Ho can make the iptable entries in to a startup script for jasager? How do I create 2 scripts, one for WAN port routing and 1 for Android USB Tethering? iptables -A FORWARD -i eth1 -o wlan0 -s 172.16.42.0 -m state --state NEW -j ACCEPT iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE iptables -A FORWARD -s 172.16.42.0/24 -o usb0 -j ACCEPT iptables -A FORWARD -d 172.16.42.0/24 -m state --state ESTABLISHED,RELATED -i usb0 -j ACCEPT iptables -t nat -A POSTROUTING -s 172.16.42.0/24 -o usb0 -j MASQUERADE Thnks Quote Link to comment Share on other sites More sharing options...
condor Posted July 22, 2012 Share Posted July 22, 2012 Pretty sure you could use the wps button module & put the respective commands into 2 diff button triggers. Quote Link to comment Share on other sites More sharing options...
Molotof Posted July 22, 2012 Share Posted July 22, 2012 (edited) As the WPS button only supports one custom script, then you would put one set of iptables that you use the most at startup, then use the second set for when needed on the custom script with the WPS button and add to it rules to nullify the first set of iptables rules. Edited July 22, 2012 by Molotof Quote Link to comment Share on other sites More sharing options...
Sebkinne Posted July 22, 2012 Share Posted July 22, 2012 Or you can add it to the startup script. See scripts tab in the pineapple UI. Best, Sebkinne Quote Link to comment Share on other sites More sharing options...
Whistle Master Posted July 22, 2012 Share Posted July 22, 2012 (edited) As the WPS button only supports one custom script, then you would put one set of iptables that you use the most at startup, then use the second set for when needed on the custom script with the WPS button and add to it rules to nullify the first set of iptables rules. I send a new version to Seb, which supports now 4 custom scripts :) Edited July 22, 2012 by Whistle Master Quote Link to comment Share on other sites More sharing options...
Molotof Posted July 22, 2012 Share Posted July 22, 2012 I send a new version to Seb, which supports now 4 custom scripts :) Thanks whistle master :) Quote Link to comment Share on other sites More sharing options...
R04DRUNN3R Posted August 11, 2012 Author Share Posted August 11, 2012 I use Networkmanager to share internet from one int to an other int. Works perfect, props to the dev of Networkmanager. 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.