Oracle Cloud vps开放所有端口并关闭ubuntu或者centos防火墙 |
您所在的位置:网站首页 › 关闭防火墙ubuntu › Oracle Cloud vps开放所有端口并关闭ubuntu或者centos防火墙 |
Oracle Cloud vps建立成功后,是无法直接从外部连接进去的,需要关闭Oralce的iaas的所有端口,并在系统中关闭防火墙才行。 开放所有端口1、 打开实例,点击VNIC的子网 2、点击安全组 3、删除安全组中的所有规则后,添加下图所示规则,放行所有协议和端口。(懂Linux的同学可以在此基础上修改一下,一般建议只将部分端口放行,尤其是22端口限制只允许指定ip登录,对于不熟悉Linux的同学就全部放开吧) 1、ubuntu 方法1: # 开放所有端口 iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F # 删除防火墙 apt-get purge netfilter-persistent && reboot 或 rm -rf /etc/iptables && reboot方法2(未经检验) #关闭防火墙 ufw status verbose2、CentOS # 删除多余附件 systemctl stop oracle-cloud-agent systemctl disable oracle-cloud-agent systemctl stop oracle-cloud-agent-updater systemctl disable oracle-cloud-agent-updater # 关闭防火墙并禁止自启动 systemctl stop firewalld.service systemctl disable firewalld.service |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |