linux清屏命令:clear 1、开启80端口命令:/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT2、保存配置 命令:/etc/rc.d/init.d/iptables save 3、重启服务命令 :/etc/rc.d/init.d/ipta ...
分类:
系统相关 时间:
2016-07-02 13:14:18
阅读次数:
351
举例: 开放10000端口的解决步骤如下: 1、修改/etc/sysconfig/iptables文件,增加如下一行: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT 重启 iptab ...
分类:
系统相关 时间:
2016-06-07 14:27:54
阅读次数:
234
iptables -t nat -A PREROUTING -s 192.168.1.108 -i wlan0 -p tcp --dport 554 -j DNAT --to-destination 10.7.36.221:554iptables -t nat -A POSTROUTING -p t ...
分类:
其他好文 时间:
2016-06-06 21:53:01
阅读次数:
143
vi etc/iptable/sysconfig/iptables linux 开放固定端口 -A INPUT -m state --state NEW -m tcp -p tcp --dport 1113 -j ACCEPT-A INPUT -m state --state NEW -m tcp ...
分类:
系统相关 时间:
2016-06-04 23:33:06
阅读次数:
221
准备篇: 1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --s ...
分类:
数据库 时间:
2016-06-04 22:12:14
阅读次数:
217
centos 7 防火墙和端口配置 开启端口,修改防火墙配置文件 vi /etc/sysconfig/iptables 加入端口配置 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT se ...
分类:
其他好文 时间:
2016-06-02 11:14:57
阅读次数:
112
举例: 开放10000端口的解决步骤如下: 1、修改/etc/sysconfig/iptables文件,增加如下一行: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT 重启 iptab... ...
分类:
系统相关 时间:
2016-05-29 23:15:37
阅读次数:
198
/sbin/iptables -I INPUT -p tcp --dport 6379 -j ACCEPT /etc/rc.d/init.d/iptables save /etc/rc.d/init.d/iptables status /etc/rc.d/init.d/iptables restar ...
分类:
其他好文 时间:
2016-05-24 19:11:27
阅读次数:
118
自己的示例: -A INPUT -s 192.168.28.68 -p tcp --dport 1000 -j ACCEPT 对内网中的172.168.xx.xx 开放1000这个端口 无论如何,iptables是一个需要特别谨慎设置的东西,万一服务器不在你身边,而你贸然设置导致无法SSH,那就等着 ...
分类:
系统相关 时间:
2016-05-17 19:22:12
阅读次数:
244
使用iptables进行端口重定向,方法如下: 在机器A上操作: #iptables -t nat -A PREROUTING -d 192.168.203.173 -p tcp -m tcp --dport 80 -j DNAT --to-destination 192.168.203.235#i ...
分类:
其他好文 时间:
2016-04-25 11:33:31
阅读次数:
142