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

wg0.conf is missing iptables statements #2

Open
lakemike opened this issue Apr 10, 2022 · 1 comment
Open

wg0.conf is missing iptables statements #2

lakemike opened this issue Apr 10, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@lakemike
Copy link

Networking did not work until I added these two lines to the [Interface] section of wg0.conf:

PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

This is also what I had used in my docker installation of wireguard.

@lakemike lakemike added the bug Something isn't working label Apr 10, 2022
@DaanSelen
Copy link

@lakemike If you still need this issue fixed. I am working on a new image: https://github.com/DaanSelen/WGDashboard-dockerized/tree/main

The related issue on the uipstream branche: donaldzou#272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants