Skip to content

Instantly share code, notes, and snippets.

@ayuLiao
Last active December 6, 2018 08:46
Show Gist options
  • Select an option

  • Save ayuLiao/9c154c9cb4c7d666775082d7a6229b98 to your computer and use it in GitHub Desktop.

Select an option

Save ayuLiao/9c154c9cb4c7d666775082d7a6229b98 to your computer and use it in GitHub Desktop.
centos6的防火墙,iptables的关闭与启动以及状态查看
# iptables操作,两种操作
# 立即生效
开启: service iptables start
关闭: service iptables stop
# 重启生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
# 查看iptables状态
service iptables status
iptables: Firewall is not running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment