[Iptables] 防火牆設定指南 – iptables for CentOS & Ubuntu
指令 | 設定檔 | 規則 | 指令速查 Introduction iptables – Wikipedia 本篇以 CentOS & Ubuntu 兩種 Linux 發行版為主 其中 CentOS 個人認為較方便設定。 指令與參數 快速阻擋一組IP(1.2.3.4/32)的所有連線: $ sudo iptables -A INPUT -s 1.2.3.4/32 -j DROP 常用參數: –append -A :新增至Chain (預設`INPUT`, `FORWARD`, `OUTPUT`) –source […]