看板 Linux 關於我們 聯絡資訊
想請問前輩們, 限制外面連入主機的ip可設定 /etc/hosts.allow /etc/hosts.deny 如果相反的, 要去限制主機對外連線該如何設定?? (僅開放主機能對特定IP傳輸資料, 其餘關閉) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.17.100 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1504859790.A.D4C.html
silentazure: 這兩個檔案是TCP wrapper用的 非TCP就無效吧 09/08 16:48
silentazure: 說是"連線"應該可指各種連線? 用iptables/firewall 09/08 16:50
Bellkna: ipset設一下允許+封鎖清單 然後在iptable加規則 09/08 17:02
Bellkna: iptables(上面少打一個s 09/08 17:02
OrzOGC: iptable全封,需要的再開就好 09/09 05:30
jimfan: iptables,iptables,iptables 09/13 18:42
jimfan: 看看鳥哥吧 09/13 18:42