-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NicSetSetting: change of MAC Address does not take effect until manual restart of VPN Client #172
Comments
Could you please verify that this problem still occur? |
@moatazelmasry2 Sorry for the slow response. Haven't been active with Softether for a few months. Today I took a look at this.
So it seems to me this issue is still live. The versions of Server and Client were:
|
@moatazelmasry2 I'm not really a C++ person but it seems to me the issue lies in or around the code here: SoftEtherVPN/src/Cedar/Client.c Line 8104 in bed99f9
When the client restarts of course it will initialize the adaptor correctly with what it finds in the config. Looking further at the initialization of the TAP device for the Virtual NIC we see this line which seems to set the MAC Address at init: SoftEtherVPN/src/Cedar/VLanUnix.c Line 527 in d7d0e6d
This is in a function called |
Didn't test that yet, but this looks like a very good analysis. Solid work!!!. Now we need someone to implement that :) |
If i good understand, problem with set MAC address still exist? |
@Hamilkar247 Yes it looks that way. There is no apparent change to the way this works, |
I have been using NicSetSetting to set the MAC address of Virtual NICs joining a Hub. I used static leases, so the MAC address effectively determines the IP Address the NIC should obtain.
I have noticed however that the change of MAC Address, though recorded in Softether data, is not reflected in the actual OS, until after a restart of the VPN Client itself. This means on first contact my NIC's are configured with incorrect IP addresses.
I also tried:
However only
vpnclient stop && vpnclient start
works for me. I am using two separate clients:Both exhibit the same behaviour. Is this a bug or a feature?
The text was updated successfully, but these errors were encountered: