iptables
-
iptables 사용법프로그래밍/Linux 2015. 8. 5. 03:09
iptables의 현재 룰셋 확인 shell> iptables -n -L Chain INPUT (policy ACCEPT) target prot opt source destination fail2ban-SSH tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8888 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain fail2ban-SSH (1 references) target prot opt source destinatio..
-
리눅스 - bash: iptables: command not found프로그래밍/Linux 2015. 3. 23. 22:08
리눅스에서 iptables 내용을 확인하려고 했는데 아래와 같이 에러 메세지가 나왔다. # iptables -Lbash: iptables: command not found iptables의 위치가 PATH에 등록되어 있지 않아 위치를 찾지 못하고 있다. iptables는 /sbin/ 아래 위치하고 있다. 이 위치를 $PATH에 추가해둔다. sbin]$ ll ip*-rwxr-xr-x 1 root root 169992 2월 23 2012 ip-rwxr-xr-x 1 root root 59472 2월 23 2012 ip6tables-rwxr-xr-x 1 root root 62968 2월 23 2012 ip6tables-restore-rwxr-xr-x 1 root root 62824 2월 23 2012 ip6ta..