限制主機對外連線 - Linux

Table of Contents


想請問前輩們, 限制外面連入主機的ip可設定
/etc/hosts.allow
/etc/hosts.deny

如果相反的, 要去限制主機對外連線該如何設定??
(僅開放主機能對特定IP傳輸資料, 其餘關閉)


--

All Comments

Jacob avatarJacob2017-09-12
這兩個檔案是TCP wrapper用的 非TCP就無效吧
Kyle avatarKyle2017-09-15
說是"連線"應該可指各種連線? 用iptables/firewall
Carol avatarCarol2017-09-19
ipset設一下允許+封鎖清單 然後在iptable加規則
iptables(上面少打一個s
Thomas avatarThomas2017-09-23
iptable全封,需要的再開就好
Erin avatarErin2017-09-28
iptables,iptables,iptables
看看鳥哥吧