使用Oracle Cloud free 免费云搭建了v2ray / shadowsockR, 在 子网 -> 安全列表 -> 入网规则 里也打开了对应的端口,但远程连接 telnet ip + 端口 还是连接不上。
原来oracle cloud与 aws等云不同,需要关闭防火墙或iptable。
解决方法:
centos操作如下:
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#关闭iptables
service iptables stop
#去掉iptables开机启动
chkconfig iptables off
oracle Linux操作如下:
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
ubuntu操作如下:
#Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
reboot
#强制删除
rm -rf /etc/iptables && reboot
apt-get purge netfilter-persistent
reboot
#强制删除
rm -rf /etc/iptables && reboot