[问题] 限制主机对外连线

楼主: smart1901 (史马特)   2017-09-08 16:36:28
想请问前辈们, 限制外面连入主机的ip可设定
/etc/hosts.allow
/etc/hosts.deny
如果相反的, 要去限制主机对外连线该如何设定??
(仅开放主机能对特定IP传输资料, 其余关闭)
作者: silentazure (北极熊)   2017-09-08 16:48:00
这两个档案是TCP wrapper用的 非TCP就无效吧说是"连线"应该可指各种连线? 用iptables/firewall
作者: Bellkna (柔弱气质伪少女)   2017-09-08 17:02:00
ipset设一下允许+封锁清单 然后在iptable加规则iptables(上面少打一个s
作者: OrzOGC (洞八达人.拖哨天王)   2017-09-09 05:30:00
iptable全封,需要的再开就好
作者: jimfan (jimfan)   2017-09-13 18:42:00
iptables,iptables,iptables看看鸟哥吧

Links booklink

Contact Us: admin [ a t ] ucptt.com