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:
parent
ef77d27737
commit
55433c52e4
13 changed files with 231 additions and 28 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -22,3 +22,4 @@
|
|||
# net eth0 130.252.100.255 routefilter,norfc1918
|
||||
#
|
||||
###############################################################################
|
||||
INCLUDE params.vpn
|
2
shorewall4/params.vpn
Normal file
2
shorewall4/params.vpn
Normal file
|
@ -0,0 +1,2 @@
|
|||
OMR_ADDR=10.0.0.1
|
||||
OMR_IFACE=gt-tun0
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -17,4 +17,6 @@ ACCEPT gt-tun0 -
|
|||
ACCEPT - gt-tun0
|
||||
ACCEPT gt-udp-tun0 -
|
||||
ACCEPT - gt-udp-tun0
|
||||
ACCEPT mlvpn0 -
|
||||
ACCEPT - mlvpn0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue