Created
March 28, 2015 15:28
-
-
Save seriwb/bc3fa4818131ef87b17e to your computer and use it in GitHub Desktop.
8080 port open description in iptables.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.直接編集する場合 | |
# vim /etc/sysconfig/iptables | |
・以下を追記 | |
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp --dport8080 -j ACCEPT | |
2.コマンドから追加する場合 | |
# iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp --dport8080 -j ACCEPT | |
・設定を保存 | |
# service iptables save | |
or | |
# /etc/init.d/iptables save | |
■最後に再起動を忘れずに | |
# service iptables restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment