angt / glorytun

Multipath UDP tunnel
BSD 2-Clause "Simplified" License
683 stars 105 forks source link

MTU problem #73

Closed echolimazulu closed 4 years ago

echolimazulu commented 4 years ago

Hello Adrien,

I have problems with the MTU values ​​that Glorytun sets automatically when the path is raised. My network interfaces are using MTU 1500, but Glorytun, when entering the "path up" command, changes the MTU of the client tun0 interface and the server interface to MTU 1357. The glorytun show command displays the MTU value of 1357, the glorytun path command displays the MTU 1379. Manually change the MTU on the interface, after the "glorytun path" nothing is updated in the displayed glorytun metrics, the value changes only in ifconfig. I know that the values ​​should be 1450 and 1472, but in my basic setup, without any significant changes in the OS, these values ​​do not correspond to those expected when Glorytun is running in normal mode. Please, tell me what could be the problem and can I fix it on my own or is it a bug?

Specification: OS: Debian Buster Glorytun: binary release 0.3.4 Network Interfaces MTUs: 1500 Rate: auto or any fixed rate Cipher: any

user@router:~$ glorytun show server tun0: pid: 3045 bind: 192.168.254.5 port 5000 mtu: 1357 cipher: chacha20poly1305 user@router:~$ glorytun path path UP status: OK bind: 192.168.254.5 port 5000 public: 192.168.254.5 port 5000 peer: 192.168.254.6 port 5000 mtu: 1379 bytes rtt: 1107.740 ms rttvar: 2031.065 ms rate: auto losslim: 100 beat: 100 ms tx: rate: 0 bytes/sec loss: 0 percent total: 48 packets rx: rate: 0 bytes/sec loss: 0 percent total: 96 packets

echolimazulu commented 4 years ago

Sorry, duplicate