1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps-admin.git synced 2025-02-12 10:31:52 +00:00

Back to static IP for VPN

This commit is contained in:
Ycarus 2019-02-09 14:30:56 +00:00
parent f956c991a5
commit 7add708f0c

View file

@ -153,11 +153,11 @@ def config():
if 'PORT=' in line:
glorytun_port = line.replace(line[:5], '').rstrip()
glorytun_tcp_host_ip = '10.255.255.1'
#glorytun_tcp_client_ip = '10.255.255.2'
glorytun_tcp_client_ip = 'dhcp'
glorytun_tcp_client_ip = '10.255.255.2'
#glorytun_tcp_client_ip = 'dhcp'
glorytun_udp_host_ip = '10.255.254.1'
#glorytun_udp_client_ip = '10.255.254.2'
glorytun_udp_client_ip = 'dhcp'
glorytun_udp_client_ip = '10.255.254.2'
#glorytun_udp_client_ip = 'dhcp'
available_vpn = ["glorytun-tcp", "glorytun-udp"]
if os.path.isfile('/etc/openvpn/server/static.key'):
@ -174,8 +174,8 @@ def config():
if 'port ' in line:
openvpn_port = line.replace(line[:5], '').rstrip()
openvpn_host_ip = '10.255.253.1'
#openvpn_client_ip = '10.255.253.2'
openvpn_client_ip = 'dhcp'
openvpn_client_ip = '10.255.253.2'
#openvpn_client_ip = 'dhcp'
if os.path.isfile('/etc/mlvpn/mlvpn0.conf'):
mlvpn_config = configparser.ConfigParser()