Skip to content

Instantly share code, notes, and snippets.

@seriwb
Created March 28, 2015 15:28
Show Gist options
  • Save seriwb/bc3fa4818131ef87b17e to your computer and use it in GitHub Desktop.
Save seriwb/bc3fa4818131ef87b17e to your computer and use it in GitHub Desktop.
8080 port open description in iptables.
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