Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,682 Members 42,995 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Commands work, script doesn't

Tip us?
 
TacticalQuit
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2013
Default [Q] Commands work, script doesn't

Im trying to run this script

Code:
Select Code
iptables -A bw_FORWARD -i !lo+
iptables -A natctrl_FORWARD -j RETURN -i rmnet+ -o wlan0 -m state --state RELATED,ESTABLISHED
iptables -A natctrl_FORWARD -j DROP -i wlan0 -o rmnet+ -m state --state INVALID
iptables -A natctrl_FORWARD -j RETURN -i wlan0 -o rmnet+
iptables -A natctrl_FORWARD -j DROP
iptables -A natctrl_nat_POSTROUTING -t nat -o rmnet+ -j MASQUERADE
they run fine individually, line by line, but when run in a script i get:

(H)ttp://gyazo.com/59fba9507d2379d696d0a78dbced2722

What am I doing wrong?
 
TacticalQuit
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2013
Bump
 
TacticalQuit
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: Jul 2013
Bump

Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes