- 论坛徽章:
- 0
|
/ # iptables -L\r\nChain INPUT (policy ACCEPT)\r\ntarget prot opt source destination \r\nDROP tcp -- anywhere anywhere tcp dpt:http \r\n \r\nChain FORWARD (policy ACCEPT)\r\ntarget prot opt source destination \r\nACCEPT 47 -- anywhere 192.168.1.0/24 \r\nACCEPT 47 -- 192.168.1.0/24 anywhere \r\nACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpt:1723 \r\nDROP all -- !192.168.1.0/24 anywhere \r\nDROP tcp -- anywhere anywhere tcp spts:137:139 \r\nDROP udp -- anywhere anywhere udp spts:137:139 \r\nDROP tcp -- anywhere anywhere tcp spt:635 \r\nDROP udp -- anywhere anywhere udp spt:635 \r\nDROP tcp -- anywhere anywhere tcp spt:2049 \r\nDROP udp -- anywhere anywhere udp spt:2049 \r\nDROP tcp -- anywhere anywhere tcp spt:111 \r\nDROP udp -- anywhere anywhere udp spt:111 \r\nACCEPT all -- 192.168.1.0/24 anywhere state NEW,RELATED,ESTABLISHED \r\nACCEPT all -- !192.168.1.0/24 anywhere state RELATED,ESTABLISHED \r\nACCEPT all -- anywhere 192.168.1.0/24 state RELATED,ESTABLISHED \r\nACCEPT all -- 192.168.2.1 anywhere state NEW,RELATED,ESTABLISHED \r\nACCEPT all -- !192.168.2.1 anywhere state RELATED,ESTABLISHED \r\nACCEPT all -- anywhere 192.168.2.1 state RELATED,ESTABLISHED \r\n \r\nChain OUTPUT (policy ACCEPT)\r\ntarget prot opt source destination \r\n/ # |
|