1. 程式人生 > >linux和ubuntu防火墻相關命令

linux和ubuntu防火墻相關命令

enable chkconfig 關閉 tables sta pri 有效 stop pre

1.永久有效

開啟: chkconfig iptables on 
關閉: chkconfig iptables off

2.即刻生效

開啟: service iptables start 
關閉: service iptables stop 


1、關閉ubuntu的防火墻

  ufw disable

2、開啟防火墻

 ufw enable

linux和ubuntu防火墻相關命令