wuruxu
V2EX  ›  问与答

指点下怎么配置 iptables

  •  
  •   wuruxu · Dec 26, 2015 · 555 views
    This topic created in 3812 days ago, the information mentioned may be changed or developed.

    我有个树莓派 2 ,买了 USB adapter (RT5370, wlan0, 192.168.228.1 ) 后台运行了一个 hostapd & udhcpd 来做 softAP 的
    我现在设置了一条 rules 来转发 wlan0 的流量
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

    在同样的树莓派上,我配置好一个 strongswan 5.3.5 IPSec client 用来翻墙的,这个配置是没有问题的,我这里只要 ipsec up svpn 就建立了 VPN ,可以正常使用

    现在问题来了,我这里只要建立 VPN ,就发现 softAP 就失效了,所有无线的数据就被 block 了
    我的本来想法,想把 softAP 的流量 forward 到 VPN 通道

    1 replies    2015-12-27 17:22:12 +08:00
    rim99
        1
    rim99  
       Dec 27, 2015 via iPhone
    http://www.cnblogs.com/rim99/p/5009934.html
    这是我之前查资料总结出来的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3246 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 13:07 · PVG 21:07 · LAX 06:07 · JFK 09:07
    ♥ Do have faith in what you're doing.