Quantcast
Channel: Tomato Firmware
Viewing all articles
Browse latest Browse all 5181

Why does this rule error out after complete boot up?

$
0
0
I have this iptables command in my firewall script.
Code:
/usr/sbin/iptables -t nat -I WANPREROUTING -p udp -i $wanf -d `nvram get wan_ipaddr` -m multiport --dports 20:22 -j DNAT --to-destination :1194
It gets added fine there, however if I enter the command at the cli I get this error.
Code:
root@RT-AC68U:/tmp/home/root# /usr/sbin/iptables -t nat -I WANPREROUTING -p udp
-i $wanf -d `nvram get wan_ipaddr` -m multiport --dports 20:22 -j DNAT --to-destination :1194
Bad argument...
Why does this rule error out after complete boot up?

Viewing all articles
Browse latest Browse all 5181

Trending Articles