Skip to content
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

No internet access "sometimes" after wireguard installation #14

Closed
archidote opened this issue Aug 12, 2020 · 9 comments
Closed

No internet access "sometimes" after wireguard installation #14

archidote opened this issue Aug 12, 2020 · 9 comments

Comments

@archidote
Copy link

Hello, I have setup wireguard with your beautiful script

it's works ! I can connect to my server from LTE but I can't reach internet

I have also check if the ip forwading was activated with echo 1 > /proc/sys/net/ipv4/ip_forward

do you have an issue to solve my problem ?

thank's

brlndtech

(Debian 10.X)

@X1Aaron
Copy link

X1Aaron commented Aug 31, 2020

I am having the same issue with Debian 10

@X1Aaron
Copy link

X1Aaron commented Aug 31, 2020

Same issue on Ubuntu 18.04

@X1Aaron
Copy link

X1Aaron commented Aug 31, 2020

I am able to ping the client from the server, so it is connecting. Maybe something is wrong with DNS?

@archidote
Copy link
Author

I am able to ping the client from the server, so it is connecting. Maybe something is wrong with DNS?

No, I have tested to ping 8.8.8.8, and I can't access to it...

@z3ro-dot-z3ro
Copy link

I think this is a kernel issue. I had the problem with one VPS host that used a newer kernel, but no on another that uses an older one. There doesn't seem to be much guidance or information either way, though.

@Nyr
Copy link
Owner

Nyr commented Sep 19, 2020

Probably not a kernel issue.

Is your server behind NAT? Can you try from a non-LTE client?

Is your server a dedicated or fully virtualized system, or is it a container like OpenVZ or LXC?

Specify "sometimes": when does it work? When it doesn't?

@Nyr Nyr closed this as completed Sep 19, 2020
@archidote
Copy link
Author

archidote commented Sep 23, 2020

Probably not a kernel issue.

Is your server behind NAT? Can you try from a non-LTE client?

Is your server a dedicated or fully virtualized system, or is it a container like OpenVZ or LXC?

Specify "sometimes": when does it work? When it doesn't?

Yes, my server is behind a nat, I have already try with a wifi connexion outside of my home

My server is a fully dedicated system. it's not a virtual server.

When I install wireguard at the first, it's works, but when I reboot the server, I can connect to the VPN but not to Internet unfortunatly.

@Nyr

@Nyr
Copy link
Owner

Nyr commented Sep 23, 2020

@brlndtech if the server IP is dynamic, that can be the problem because POSTROUTING rules will still perform SNAT to the old IP.

@archidote
Copy link
Author

archidote commented Sep 24, 2020

the ip of the server is FIX.. so I don't think so .. @Nyr
Maybe I will try to execute this command to see if it work: iptables -t nat -A PREROUTING -d $vps_public_ip -j DNAT --to-destination $home_pc_ip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants