1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS6.6(x64)で外部からのhttpアクセスを許可する方法(iptables設定)

Posted at

現在の設定を確認

/sbin/iptables -L --line-numbers

httpとhttpsを許可

/sbin/iptables -I INPUT 1 -p tcp -m tcp --dport 80 -j ACCEPT
/sbin/iptables -I INPUT 2 -p tcp -m tcp --dport 443 -j ACCEPT

セーブ

service iptables save

内容確認

cat /etc/sysconfig/iptables

反映

/etc/init.d/iptables restart
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?