12月 182014
 

公司外网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

测试192.168.10.250是否可以ping通

tomato设置待补https://www.wikai.info/2014_12_4775.html

6月 202012
 
1) 安装IPSec-tools/racoon

wget ftp://ftp.pbone.net/mirror/ftp.pramberger.at/systems/linux/contrib/rhel5/i386/ipsec-tools-0.8.0-1.el5.pp.i386.rpm
wget ftp://ftp.pbone.net/mirror/ftp.pramberger.at/systems/linux/contrib/rhel5/i386/ipsec-tools-libs-0.8.0-1.el5.pp.i386.rpm
yum localinstall --nogpgcheck ipsec-tools-libs-0.8.0-1.el5.pp.i386.rpm ipsec-tools-0.8.0-1.el5.pp.i386.rpm

Continue reading »