Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Gescript
V2EX  ›  Linux

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

  •  
  •   Gescript · Dec 21, 2015 · 9649 views
    This topic created in 3802 days ago, the information mentioned may be changed or developed.

    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 replies    2015-12-21 14:10:04 +08:00
    squid157
        1
    squid157  
       Dec 21, 2015
    看看 mangle 表有没有做 masquerade
    tinkerer
        2
    tinkerer  
       Dec 21, 2015
    iptables -t nat -A POSTROUTING -s {ocserv 的 subnet} -o {eth0 之类的外网 interface} -j MASQUERADE ; \
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3173 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 12:09 · PVG 20:09 · LAX 05:09 · JFK 08:09
    ♥ Do have faith in what you're doing.