[Linux]Shut Down Firewall
来源:互联网 发布:房屋租赁软件 编辑:程序博客网 时间:2024/05/22 13:39
在172.16.3.6的ubuntu上执行
sudo ufw disable
可以关闭防火墙
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop
需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。
在开启了防火墙时,做如下设置,开启相关端口,
修改/etc/sysconfig/iptables 文件,添加以下内容:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
sudo ufw disable
可以关闭防火墙
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
2) 即时生效,重启后失效
开启: service iptables start
关闭: service iptables stop
需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。
在开启了防火墙时,做如下设置,开启相关端口,
修改/etc/sysconfig/iptables 文件,添加以下内容:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
- [Linux]Shut Down Firewall
- ycmd server SHUT DOWN
- process.start (shut down pc)
- 线程的shut down方法
- SSL peer shut down incorrectly
- SSL peer shut down incorrectly
- SSL peer shut down incorrectly
- 我的疑问:在Linux中为什么用shut down 命令实现关机?
- MSN space will be shut down
- shut down, restart, sleep keyboard short cut
- shut down 的 4种情况
- Socket programming: when clients shut down
- server shut down问题追踪
- new project----SSLpeer shut down incorrectly
- 如何Disable “Shut Down Event Tracker”?
- 关于Error:SSL peer shut down incorrectly!
- Gradle Error: SSL peer shut down incorrectly
- Error:SSL peer shut down incorrectly
- SqlDataReader 示例
- [Linux]Samba server
- [Linux]A Shell to Export Source From SVN
- VC6.0如何生成汇编文件并显示编译选项
- [Linux]Note of 尚学堂
- [Linux]Shut Down Firewall
- Android应用程序中加载进度设计
- Linux平台Makefile文件的编写基础篇
- [Linux]Crond configuration in Ubuntu
- [Linux]Vi Command
- [Linux]Add User Sudo Privileges
- 在ARM中使用Ramdisk
- [Linux]鸟哥的linux私房菜-shell RE
- 关于管理中的一些总结