-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Connection delay after openvpn server stop and start #689
Comments
Log files or it didn't happen... |
Enabled the verbosity to level 9 , and I see the below ( I xxxx'ed the hostname and Ip address in the below log) . 2025-02-13 04:19:38 us=875832 XXXXX/XXXXX:63778 GET INST BY VIRT: 00:bd:28:9c:bb:08@0 [failed] |
A That said, I guess it's likely that you are hitting an So, if you can reproduce the issue, please try if using On non AIX systems, one could fix the TAP interface MAC using There is a "tun mode" emulation for AIX in the works, but that has been stalled because lack of time (and nobody seems to be using OpenVPN on AIX) |
@cron2 Thanks for the detailed explanation. I was not getting any logs in the server when pinging from the client side ( when there was connection issue ), hence increased the verbosity to 9. You mentioned that the "tun mode" emulation in AIX is stalled. We would like to understand more about that and how we can help here ( like how much more work is required and what technical skills are required). |
Hi. Glad to hear that it was indeed an ARP problem and there is a manual solution, at least. Since you mentioned you're from the Toolbox team - maybe you have better documentation that I have :-) - I'd like to implement On the TUN emulation layer - what I have works for IPv4, but IPv6 support is missing. Also it needs rebasing to the latest master, last time I worked on it was in early 2023... - so it mostly needs time. But since you voiced interest, I'll see if I can find a bit of time and polish it for inclusion in 2.7... (not promising anything). WRT "what skills are needed" - well, understanding IPv6 neighbour discovery, and understanding OpenVPN C code... |
Thanks again @cron2 . In AIX, chdev command can be used to set/change the hardware address. Something like " |
Thanks for the link. I have tried it, but either I'm doing something wrong, or it is plainly not supported on
this is on a 7.3 machine, and the 7.3 documentation still explains this (but only for ethernet and token ring) :-( |
alt_addr is part of the underlying adapter interface , in this case tapent1. |
Okay, so
it won't permit me to actually use them, though...
(this is with a Do you have a working and complete example of creating and changing the MAC address for a given tap interface? I can then integrate that into openvpn lladdr.c - but at this point, I do not really see how this is supposed to work... |
Sure. Let me check and come back with a working example. |
We are seeing connection delay of around 15 minutes between the server and the client when we stop the server and start it again. The server and client are both AIX machines. The openvpn used is 2.6.10 version. The client gets the IP immediately after the server starts, but the pings are working only after around 15 minutes.
Any inputs are really helpful.
server.conf
########
port 443
proto tcp
dev tap
ca /openvpn-keys/ca.crt
cert /openvpn-keys/server.crt
dh /openvpn-keys/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
cipher AES-256-CBC
status openvpn-status.log
verb 3
explicit-exit-notify 1
########
client.conf
########
client
dev tap
proto tcp
remote X.X.X.X 443
resolv-retry infinite
nobind
ca /openvpn-keys/ca.crt
cert /openvpn-keys/client1.crt
key /openvpn-keys/client1.key
remote-cert-tls server
tls-auth /openvpn-keys/ta.key 1
cipher AES-256-CBC
verb 3
The text was updated successfully, but these errors were encountered: