Enviado em 29/05/2013 - 11:25h
Galera, nao estou entendendo esse "bad argument" no meu script, sendo que para algumas regras
#bash -x firewall restart
+ /sbin/iptables -t nat -A POSTROUTING -o -j MASQUERADE
Bad argument `MASQUERADE'
Try `iptables -h' or 'iptables --help' for more information.
+ /sbin/iptables -t filter -A FORWARD -i eth0 -o -j ACCEPT
Bad argument `ACCEPT'
Try `iptables -h' or 'iptables --help' for more information.
+ /sbin/iptables -A INPUT -s 127.0.0.1 -ACCEPT
iptables v1.4.8: Cannot use -A with -A
+ /sbin/iptables -A INPUT -i -p tcp -m multiport --dports 138,631 -j ACCEPT
Bad argument `tcp'
Try `iptables -h' or 'iptables --help' for more information.
+ /sbin/iptables -A INPUT -i -p udp -m multiport --dports 138,631 -j ACCEPT
Bad argument `udp'
Try `iptables -h' or 'iptables --help' for more information.
+ /sbin/iptables -A INPUT -i eth0 -p tcp -m multiport --dports 445,139 -j ACCEPT
+ /sbin/iptables -A INPUT -i eth0 -p udp -m multiport --dports 137,138 -j ACCEPT
+ /sbin/iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 300 --hitcount 10 -j DROP
+ /sbin/iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW -m recent --set
+ /sbin/iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
+ /sbin/iptables -A INPUT -p tcp --dport 10000 -j ACCEPT
+ /sbin/iptables -t nat -A PREROUTING -d -p tcp --dport 8933 -j DNAT --to-destination 192.168.9.250:3389
Bad argument `tcp'
Try `iptables -h' or 'iptables --help' for more information.
+ /sbin/iptables -t nat -A PREROUTING -s 200.206.207.10 -d -p tcp --dport 2250 -j DNAT --to-destination 192.168.9.119:22
Bad argument `tcp'
Try `iptables -h' or 'iptables --help' for more information.
+ /sbin/iptables -t nat -A PREROUTING -s 200.206.207.10 -d -p tcp --dport 8080 -j DNAT --to-destination 192.168.9.119:80
Bad argument `tcp'