티스토리 뷰

공부

[Linux] Open port

seunggabi 승가비 2020. 2. 13. 02:15
sudo iptables -I INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -I OUTPUT -p tcp --sport 80 -j ACCEPT

sudo iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
sudo iptables -I OUTPUT -p tcp --sport 3306 -j ACCEPT

sudo iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
sudo iptables -I OUTPUT -p tcp --sport 8080 -j ACCEPT

sudo iptables -I INPUT -p tcp --dport 30000 -j ACCEPT
sudo iptables -I OUTPUT -p tcp --sport 30000 -j ACCEPT

 

[reference] https://freestrokes.tistory.com/44

'공부' 카테고리의 다른 글

[Python] Install pycurl  (0) 2020.02.13
[IntelliJ] Auto indentation `Ctrl+Alt+L`  (0) 2020.02.13
[Linux] Open port  (0) 2020.02.13
[DBCP] Connection closed  (0) 2020.02.13
[Shell] Get date before 1 hour  (0) 2020.02.09
[Shell] Sizeof byte file  (0) 2020.02.09
댓글
댓글쓰기 폼