n2n vpn 设置流水账

公司外网60.1xx.xx.xx,内网172.16.xx.xx,下接路由器,局域网192.168.10.xx,IPPBX地址192.168.10.250。局域网中一台R200跑debian,地址192.168.10.2。

debian中:

svn co https://svn.ntop.org/svn/ntop/trunk/n2n cd n2n make install edge -a 10.0.10.1 -c test -k test -l 1xx.xx.xx.xx:2xxx -r iptables -t nat -A POSTROUTING -s 10.0.10.0/24 -o eth0 -j MASQUERADE iptables -A FORWARD -s 10.0.10.0/24 -j ACCEPT

修改/etc/sysctl.conf里的ipv4 forward字段值

net.ipv4.ip_forward=1

windows中:

下载http://www.vpnhosting.cz/n2nguien.exe

n2ngui1

n2ngui2

ping通10.0.10.1即可进行下一步

route add 192.168.10.0 mask 255.255.255.0 192.168.10.1

    <p>
      测试192.168.10.250是否可以ping通
    </p>

    <p>
      tomato设置待补<a title="https://www.wikai.info/2014_12_4775.html" href="https://www.wikai.info/2014_12_4775.html">https://www.wikai.info/2014_12_4775.html</a>
    </p>