zehome / MLVPN

Multi-link VPN (ADSL/SDSL/xDSL/Network aggregation / bonding)
http://www.mlvpn.fr/
BSD 2-Clause "Simplified" License
521 stars 129 forks source link

MLVPN can't use more than 2 ports at the same time? #162

Closed amatus- closed 2 years ago

amatus- commented 2 years ago

Hello everyone! Didn't find an answer in the documentation. Can I have more than 2 connections to the server at the same time?

[link1]
bindhost = "0.0.0.0"
bindport = 6001

[link2]
bindhost = "0.0.0.0"
bindport = 6002

[link3]
bindhost = "0.0.0.0"
bindport = 6003

With this configuration, the server only listens on ports 6001 and 6002.

In the logs I see this:

mlvpn[64523]: new password set
mlvpn[64523]: link1 tunnel added
mlvpn[64523]: link2 tunnel added
mlvpn[64523]: link3 tunnel added
mlvpn[64523]: created interface `mlvpn0'
mlvpn[64523]: link1 bind to 0.0.0.0
mlvpn[64523]: link2 bind to 0.0.0.0
mlvpn[64523]: link2 new connection -> 111.111.111.111:25895
mlvpn[64523]: link2 authenticated
mlvpn[64523]: link1 new connection -> 111.111.111.111:10636
mlvpn[64523]: link1 authenticated
amatus- commented 2 years ago

In the logs I see link3 getaddrinfo(,0.0.0) failed: Unknown error

zehome commented 2 years ago
bindhost "0.0.0.0"
bindport = 6003

Missing =

zehome commented 2 years ago

You have to be careful with "0.0.0.0", as mlvpn won't really know what ip address to use to output UDP packets, in case you have source routing enabled. You should specifiy the IP address explicitly