andyverycool 发表于 2020-12-22 16:48

DDWRT启用Softether记录

本帖最后由 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 15sbrctl 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 ACCEPTiptables -I INPUT -p udp --dport 500 -j ACCEPTiptables -I INPUT -p udp --dport 4500 -j ACCEPTiptables -I INPUT -p udp --dport 1701 -j ACCEPTiptables -I INPUT -p tcp --dport 443 -j ACCEPTiptables -I INPUT -p tcp --dport 5555 -j ACCEPTiptables -I INPUT -p tcp --dport 8888 -j ACCEPTiptables -I INPUT -p tcp --dport 992 -j ACCEPT

页: [1]
查看完整版本: DDWRT启用Softether记录