Ysurac / openmptcprouter-vps

OpenMPTCProuter VPS scripts
GNU General Public License v3.0
158 stars 69 forks source link

[BUG] OpenVPN VPS UDP wrong route IP #96

Open Kalimeiro opened 7 months ago

Kalimeiro commented 7 months ago

https://github.com/Ysurac/openmptcprouter-vps/blame/96775408d7d40e917f190cf9d60744f0bcb83fdb/openvpn-tun1.6.1.conf#L25

Kalimeiro commented 7 months ago

correct is : push "route 10.255.250.1 255.255.255.255"

Kalimeiro commented 7 months ago

you need also to uncomment ifconfig-pool-persistent.

And, i think instead using CCD, you need to create the client file "openmptcprouter" and inside this file put the directive :

if using OpenVPN TCP : ifconfig-push 10.255.252.2 255.255.255.0 else if using OpenVPN UDP : ifconfig-push 10.255.250.2 255.255.255.0

i found a bug on OpenVPN DHCP Lease and OMR ADMIN and time to time the IP of the tunnel change and port forwarding not working, the client file fix this problem.

Ysurac commented 7 months ago

For the UDP part, same cn is used if all WANs are using MPTCP over VPN. So no pool persist can be defined. For the client file I will make some tests, this mean to also make some changes in the API for multi users support.