Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Commands work, script doesn't

OP TacticalQuit

13th January 2014, 02:53 AM   |  #1  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Jul 2013
Im trying to run this script

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?
25th January 2014, 10:51 PM   |  #2  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Jul 2013
Bump
30th January 2014, 04:09 AM   |  #3  
OP Junior Member
Thanks Meter: 0
 
12 posts
Join Date:Joined: Jul 2013
Bump

Sent from my SAMSUNG-SGH-I747 using XDA Premium 4 mobile app
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes