cenk1cenk2 / docker-softether-vpnsrv

SoftEther VPN Server with DNSMASQ DHCP Server or bridge mode connection for VPN-to-site setup.
29 stars 15 forks source link

Why is DnsMasq DHCP server needed #8

Closed lonnietc closed 3 years ago

lonnietc commented 3 years ago

Hello,

I am wondering why DnsMasq DHCP server is needed when the SoftEther Server already provides a DHCP server?

The DnsMasq DHCP server could be useful from the aspect that I do not think that SoftEther provides this feature when running in Cluster mode from what I have read, but just wanted to get some information from you as to why it was included.

Thanks

disaac commented 3 years ago

@lonnietc The SoftEther SecureNAT support was quite flaky in containers when I tried it. I attempted leveraging its SecureNAT and DHCP services and it would eventually bring my connections to a crawl. Using dnsmasq avoided memory and CPU spiking. Additionally I saw ping responses for traffic through the vpn connection going from 10%+ packet loss to 0% once I switched to using dnsmasq.

This was my experience when using siomiz/softethervpn. Thanks for the awesome solution @cenk1cenk2 works great!

Side Note @lonnietc I provided an example in issue #11 using dnsmasq to push the routes as well which would be similar to pushing routes with the softether built in Virtual DHCP Server.

cenk1cenk2 commented 3 years ago

Thank you @disaac Mr. Daniel.

There are already alternatives without it, but to my experience, it performs much better with dnsmasq acting as the DHCP server both in responsiveness and throughput.

**The interesting thing is I got no mails from this repo and there are open issues.

Sorry for responding late.**