iptables linux下的防火墙

时间:2015-08-16 19:51:09   收藏:0   阅读:248
iptables:

查看防火墙信息:
sudo iptables -L -v
设置防火墙(客户端 --> 服务器):
sudo iptables -A INPUT -s ipaddress(客户端的ip) -p tcp --dport 61616 -j ACCEPT
设置防火墙(服务器-->客户端)
sudo iptables -A OUTPUT -d ipaddress(客户端的ip) -p tcp --sport 61616 -j ACCEPT

版权声明:本文为博主原创文章,未经博主允许不得转载。

原文:http://blog.csdn.net/liu136313/article/details/47704635

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!