在shell文件执行iptables 失败,请高手指教,谢谢!
抠钉老兵 2016-12-27 10:42:25 shell文件如下:
#!/bin/bash
iptables -I INPUT -p tcp --dport 8081 -j ACCEPT
执行结果:
[root@iZ25x4n31gvZ /]# sh /home/ip.sh
'ptables v1.4.21: Invalid target name `ACCEPT
Try `iptables -h' or 'iptables --help' for more information
执行在ssl命令行执行结果:
[root@iZ25x4n31gvZ /]# iptables -I INPUT -p tcp --dport 8081 -j ACCEPT
[root@iZ25x4n31gvZ /]#