mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Glorytun UDP support and fix 6in4
This commit is contained in:
parent
e11e60bc5d
commit
af8dc743c2
8 changed files with 22 additions and 15 deletions
|
@ -15,15 +15,20 @@ uci -q batch <<-EOF >/dev/null
|
|||
delete network.glorytun=interface
|
||||
set network.glorytun=interface
|
||||
set network.glorytun.ifname=tun0
|
||||
set network.glorytun.proto=static
|
||||
set network.glorytun.ipaddr=10.0.0.2
|
||||
set network.glorytun.netmask=255.255.255.0
|
||||
set network.glorytun.gateway=10.0.0.1
|
||||
# set network.glorytun.proto=static
|
||||
# set network.glorytun.ipaddr=10.0.0.2
|
||||
# set network.glorytun.netmask=255.255.255.0
|
||||
# set network.glorytun.gateway=10.0.0.1
|
||||
set network.glorytun.ip4table=vpn
|
||||
set network.glorytun.multipath=off
|
||||
set network.glorytun.leasetime=12h
|
||||
commit network
|
||||
EOF
|
||||
# set network.glorytun.proto=static
|
||||
# set network.glorytun.ipaddr=10.0.0.2
|
||||
# set network.glorytun.netmask=255.255.255.0
|
||||
# set network.glorytun.gateway=10.0.0.1
|
||||
|
||||
if [ "$(uci -q show firewall | grep vpn)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add firewall zone
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue