반응형
작업순서
1.iptables 보안설정 수정
$ sudo iptables -I INPUT 5 -i <network device 이름> -p tcp --dport 80 -m state --state NEW, ESTABLISHED -j ACCEPT
$ sudo iptables -I INPUT 5 -i <network device 이름> -p tcp --dport 443 -m state --state NEW, ESTABLISHED -j ACCEPT
$ sudo iptables -I INPUT 5 -i <network device 이름> -p tcp --dport 4321 -m state --state NEW, ESTABLISHED -j ACCEP
2.iptable 보안설정 확인
$ sudo iptables --list
3.Ubuntu 20.04 Firewall 설정유지
① 패키지 설치
$ sudo apt-get install iptables-persistent (or netfilter-persistent)
② Firewall 설정 저장
$ netfilter-persistent save
③ Firewall 설정 시작
$ netfilter-persistent start
반응형
'Ubuntu' 카테고리의 다른 글
Ubuntu 18.04 정기적으로 재기동하는 방법 (0) | 2021.09.05 |
---|---|
Ubuntu 18.04 python (apscheduler) + uWSGI 설정 (0) | 2021.03.09 |
AWS Ubuntu 18.04 + Nginx + .net core 구축 (0) | 2021.03.03 |
Ubuntu 18.04 Python에서 Slack으로 메세지 전송방법 (0) | 2021.03.02 |
Oracle Cloud Object Storage(Bucket) Ubuntu 18.04 Python 관련 설정 (0) | 2021.03.01 |
댓글