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

tic for forwarding internet usage. #22

Open
JDN2 opened this issue May 15, 2019 · 1 comment
Open

tic for forwarding internet usage. #22

JDN2 opened this issue May 15, 2019 · 1 comment

Comments

@JDN2
Copy link

JDN2 commented May 15, 2019

I can not find a proper setting to send all traffic over vpn.

@6ak5
Copy link

6ak5 commented Apr 2, 2020

I can not find a proper setting to send all traffic over vpn.

try to change
push "route 10.8.0.0 255.255.255.0"
to
push "redirect-gateway"
in openvpn-data/conf/server.conf

restart container's
docker-compose restart

after that connect to openvpn container by id:
docker exec -ti you_openvpn_container_id bash
and add the following rule:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

try connect to vpn

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

2 participants