[GH-ISSUE #22] tic for forwarding internet usage. #17

Open
opened 2026-02-25 20:30:17 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (May 15, 2019).
Original GitHub issue: https://github.com/adamwalach/openvpn-web-ui/issues/22

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

Originally created by @ghost on GitHub (May 15, 2019). Original GitHub issue: https://github.com/adamwalach/openvpn-web-ui/issues/22 I can not find a proper setting to send all traffic over vpn.
Author
Owner

@6ak5 commented on GitHub (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

<!-- gh-comment-id:607813909 --> @6ak5 commented on GitHub (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 in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/openvpn-web-ui#17
No description provided.