-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
[BUG] dosent work in ubuntu server #349
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
You have an incorrect (likely previously generated and manually modified) wg0.conf. Delete that and restart. |
only manual change in the config is the subnet mask, i change it from 32 to 24, but doesn't work with both, i think there have some issue with the certificates, i delete the configs after every try, and use the data from newly generated configs. i inspect the keys after every new start, it look like good. the other option is something related with the host system may be cannot connect to the kernel or cannot change the needed thinks on the host computer |
As shown in the log, the issue is the change from 32 to 24. Don't edit it and it will work out of the box. |
if it works i not gonna try to spend time to change, its not work with both |
fixed with installing wireguard tools on the host system |
fix steps:
|
Is there an existing issue for this?
Current Behavior
Client shows as connected but cannot ping the server's WireGuard IP (10.13.13.1).
Server (wg show) returns allowed IPs: (none), indicating that no allowed IPs are configured for the peer.
Ping Command on the client shows "Destination Host Unreachable."
Network Traffic: On the client, wg command shows TX traffic but zero RX traffic.
WireGuard Module: Loaded on the host (lsmod | grep wireguard shows the module), but no wg interface is visible.
Analysis:
Configuration Error: There may be a mismatch between the public/private keys or a misconfigured AllowedIPs entry.
Network Forwarding: IP forwarding is enabled on the host, but there might be an issue with the Docker container networking setup or iptables rules.
Docker Networking: Running the container with --network host should ensure proper port forwarding but hasn’t resolved the issue.
WireGuard Module: Despite the module being loaded, no wg interface appears on the host, suggesting a potential issue with permissions or Docker's ability to manage interfaces on the host.
Expected Behavior
The client should be able to establish a VPN connection with the server, allowing traffic to be routed through the server’s network. The client should be able to ping the server’s internal VPN IP address.
Actual Result:
Attempts to establish a WireGuard VPN connection between the server and the client consistently fail. Despite correctly setting up the configuration files and forwarding the necessary UDP ports on the router, the client cannot ping the server, and the server does not show any incoming connections.
Steps To Reproduce
forward ports from external router address to host machine, in the proper port
copy past the composefile, adjust, and run
scan the QR and connect on my phone
nothing happen, except no connection
Environment
CPU architecture
arm64
Docker creation
Container logs
The text was updated successfully, but these errors were encountered: