解决Linux系统开启EasyConnect后无法访问外网的问题

1、检查路由表:正常route -n Kernel IP routing tableDestination Gateway Genmask Flags Metric Ref

1、检查路由表:正常

 route -n 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.19.224.1    0.0.0.0         UG    0      0        0 eth0
3.0.1.0         0.0.0.0         255.255.255.0   U     0      0        0 tun0
10.254.253.0    0.0.0.0         255.255.255.0   U     0      0        0 tun0
66.1.77.0       0.0.0.0         255.255.255.0   U     0      0        0 tun0
172.19.224.0    0.0.0.0         255.255.240.0   U     0      0        0 eth0

2、检查防火墙

iptables --line-numbers -L
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination
1    SANGFOR_VIRTUAL  all  --  anywhere             anywhere

Chain SANGFOR_VIRTUAL (1 references)
num  target     prot opt source               destination
======== 敏感信息=============
103  DROP       all  --  anywhere             anywhere

从结果中可发现SANGFOR_VIRTUAL 自定义链中只放行了指定网络权限,删除最后一条规则或清空 SANGFOR_VIRTUAL规则即可访问外网。

#清空 SANGFOR_VIRTUAL
iptables -F  SANGFOR_VIRTUAL

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754879266a5212144.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信