1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Add MLVPN support, change glorytun network

This commit is contained in:
Ycarus (Yannick Chabanois) 2018-06-11 14:53:08 +00:00
parent ef77d27737
commit 55433c52e4
13 changed files with 231 additions and 28 deletions

View file

@ -17,4 +17,5 @@
net eth0 dhcp,tcpflags,routefilter,nosmurfs,logmartians,sourceroute=0
vpn gt-tun0 nosmurfs,routefilter,logmartians,tcpflags
vpn gt-udp-tun0 nosmurfs,routefilter,logmartians,tcpflags
vpn mlvpn0 nosmurfs,routefilter,logmartians,tcpflags

View file

@ -22,3 +22,4 @@
# net eth0 130.252.100.255 routefilter,norfc1918
#
###############################################################################
INCLUDE params.vpn

2
shorewall4/params.vpn Normal file
View file

@ -0,0 +1,2 @@
OMR_ADDR=10.0.0.1
OMR_IFACE=gt-tun0

View file

@ -55,12 +55,7 @@ ACCEPT net $FW tcp 65222
#
DHCPfwd(ACCEPT) $FW vpn
#
# Redirect all port from 1 to 64999 to the VPN UDP client from the network
# Redirect all port from 1 to 64999 to the VPN client from the network
#
#DNAT net vpn:10.0.1.2 tcp 1-64999
#DNAT net vpn:10.0.1.2 udp 1-64999
#
# Redirect all port from 1 to 64999 to the VPN TCP client from the network
#
#DNAT net vpn:10.0.0.2 tcp 1-64999
#DNAT net vpn:10.0.0.2 udp 1-64999
#DNAT net vpn:$OMR_ADDR tcp 1-64999
#DNAT net vpn:$OMR_ADDR udp 1-64999

View file

@ -20,5 +20,4 @@ MASQUERADE 10.0.0.0/8,\
172.16.0.0/12,\
192.168.0.0/16 eth0
# SNAT from VPN server for all VPN clients
SNAT(10.0.0.1) 0.0.0.0/0 gt-tun0
SNAT(10.0.1.1) 0.0.0.0/0 gt-udp-tun0
SNAT($OMR_ADDR) 0.0.0.0/0 $OMR_IFACE

View file

@ -17,4 +17,6 @@ ACCEPT gt-tun0 -
ACCEPT - gt-tun0
ACCEPT gt-udp-tun0 -
ACCEPT - gt-udp-tun0
ACCEPT mlvpn0 -
ACCEPT - mlvpn0