WgServerforWindows icon indicating copy to clipboard operation
WgServerforWindows copied to clipboard

Manually change MTU and restart the service

Open borjaevo opened this issue 1 year ago • 4 comments

I have manually changed the MTU in the server.conf file in an attemp to improve smb performance. I dont know how can i reload the config now. Is it possible?

borjaevo avatar May 09 '24 09:05 borjaevo

Yes, from an admin PowerShell, you can run..

wg.exe syncconf wg_server $env:appdata\WS4W\server_wg\wg_server.conf

Just be aware that until #154 is done, re-applying the server config from the app will probably override your manual changes.

micahmo avatar May 09 '24 14:05 micahmo

Yes, from an admin PowerShell, you can run..

And If I need to write this to the server configuration file (wg_server.conf), then which file should I choose, the one that is located at "Roaming\WS4W\server_data" or "Roaming\WS4W\server_wg"?

Question is a bit strange, but almost a 0,5 year ago I set up a server and everything works, and now I have a new one, but I can't fully remember how and what I did. I ended up with a bit of a mess - first I set up some things manually and then added clients using WgServerforWindows, but since everything worked, I didn't change anything.

orange11orange avatar Apr 01 '25 23:04 orange11orange

@orange11orange server_wg is the WireGuard configuration file, so you can make changes there. Just be aware, again, that any changes made in the UI will override your manual changes.

The other file is used by WS4W, so no need to change that one at all.

micahmo avatar Apr 02 '25 14:04 micahmo