V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Gescript
V2EX  ›  Linux

配置 Cisco Anyconnect 能成功连接上,不能上网

  •  
  •   Gescript · 2015-12-21 13:54:50 +08:00 · 9132 次点击
    这是一个创建于 3053 天前的主题,其中的信息可能已经有所发展或是发生改变。

    root@vultr:~# iptables -t nat -L
    Chain PREROUTING (policy ACCEPT)
    target prot opt source destination

    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    Chain POSTROUTING (policy ACCEPT)
    target prot opt source destination

    ipstable 是这样的,求怎么解决

    2 条回复    2015-12-21 14:10:04 +08:00
    squid157
        1
    squid157  
       2015-12-21 14:07:13 +08:00
    看看 mangle 表有没有做 masquerade
    tinkerer
        2
    tinkerer  
       2015-12-21 14:10:04 +08:00
    iptables -t nat -A POSTROUTING -s {ocserv 的 subnet} -o {eth0 之类的外网 interface} -j MASQUERADE ; \
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2263 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:55 · PVG 12:55 · LAX 21:55 · JFK 00:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.