Skip to content

Instantly share code, notes, and snippets.

@han-yunb
Created August 22, 2019 06:25
Show Gist options
  • Save han-yunb/4f8d835add832686a18e61f6b76e1087 to your computer and use it in GitHub Desktop.
Save han-yunb/4f8d835add832686a18e61f6b76e1087 to your computer and use it in GitHub Desktop.
[linux 방화벽 설정] #linux
# service 또는 systemctl 명령어 사용
service iptables status
systemctl status iptables
# firewalld는 최신 리눅스에서 기본으로 구성되는 방화벽 소프트웨어
firewall-cmd --state
service firewalld status
# 리눅스 방화벽 규칙 확인
iptables -L [chane [rulnum]]
ufw status
# firewall-cmd 명령어로 규칙을 추가하거나 확인
# firewalld는 다양한 zone을 가지고 있고, 각 zone에 대한 규칙을 지정할 수 있다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment