angelnu / pod-gateway

Container image used to set a pod gateway
Apache License 2.0
56 stars 29 forks source link

IPv6 works, but IPv4 fails #24

Closed WolframRavenwolf closed 1 year ago

WolframRavenwolf commented 1 year ago

Details

What steps did you take and what happened:

My setup had been functioning for many months, but a few days ago, the pods that relied on pod-gateway lost internet connectivity. Deleting and recreating pod-gateway and its dependent pods fixed the issue, but now it has recurred and recreating no longer resolves it.

IPv6 appears to be functioning correctly in the openvpn container (tested using curl/ping), but IPv4 requests are timing out. However, name resolution is still functioning properly and returns both IPv4 and IPv6 addresses correctly.

I encountered the issue while running pod-gateway v1.8.0. I upgraded to v1.8.1 today, but unfortunately, the issue remains unresolved.

What did you expect to happen:

IPv4 should be functioning properly, as it did before.

Anything else you would like to add:

Simple way to test it:

kubectl exec deployment/pod-gateway -c openvpn -- ping -4 -I tun0 www.google.de ❌ fails

kubectl exec deployment/pod-gateway -c openvpn -- ping -6 -I tun0 www.google.de ✔️ works

It is evident that the VPN connection is established, and IPv6 functionality is intact.

Additional Information:

I am using Perfect Privacy as my VPN provider, and there have been no changes to the OpenVPN configuration in months.

WolframRavenwolf commented 1 year ago

I've tried again now to fix this by deleting pod-gateway and the dependent pods - and this time it worked again. I have no explanation since I did the same two weeks ago when it repeatedly failed to fix this problem, but since it's fixed now, I'll close this ticket.