iptables


iptables

아래는 centos 7 설치후 적용되어 있는 초기 iptables default 정책입니다. 일반적으로 리눅스를 설치 하면 iptables (firewall) 정책이 기본으로 설정되어 있습니다. 특정 서비스를 할경우 default 정책에 추가를 하여 사용하던가, iptables 서비스를 내리고 사용합니다. <기본정책 파일> /etc/sysconfig/iptables 기본정책 파일 확인 <기본적으로 많이 사용하는 L 커맨드> Commands: --list -L [chain [rulenum]] List the rules in a chain or all chains [root@toolmaster sbin]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:domain ACCEPT tcp -- anywhere anywhere tcp d...


#centos7 #firewall #iptables #linux

원문링크 : iptables