本帖最后由 andyverycool 于 2020-12-22 16:54 编辑
目的,通过Softehter连入内网,使用路由DHCP获取IP,类型L2TP/IPSEC。
(需开启Open.v.p.n Server,不开启无法创建虚拟网卡)(去点)
1.Softehter配置见附件(分卷压缩,01 02去掉zip后缀,3个全部选中解压)
2.启用Softether
两种方式 2.1.直接复制配置到网页softehter config内并应用 2.2.添加启动命令 ln -s /jffs/opt/etc/.v.p.n_server.config /tmp/var/lib/.v.p.n_server.config(去点) .v.p.nserver start(去点) (/jffs/opt/etc/.v.p.n_server.config 配置文件存放路径,/tmp/var/lib/.v.p.n_server.config 原默认配置文件路径)(去点) 3.虚拟网卡桥接进内网,添加启动命令 sleep 15s brctl addif br0 tap_.v.p.n(去点) (br0内网网桥名,tap_.v.p.n虚拟网卡名(去点),用ifconfig命令查看。cat /tmp/dnsmasq.conf 查看dnsmasq配置文件,看dhcp指定接口) 4.配置防火墙,添加启动命令 iptables -I INPUT -p udp --dport 1194 -j ACCEPT iptables -I INPUT -p udp --dport 500 -j ACCEPT iptables -I INPUT -p udp --dport 4500 -j ACCEPT iptables -I INPUT -p udp --dport 1701 -j ACCEPT iptables -I INPUT -p tcp --dport 443 -j ACCEPT iptables -I INPUT -p tcp --dport 5555 -j ACCEPT iptables -I INPUT -p tcp --dport 8888 -j ACCEPT iptables -I INPUT -p tcp --dport 992 -j ACCEPT
|