mirror of
https://github.com/adamwalach/openvpn-web-ui.git
synced 2026-04-25 04:46:24 +03:00
[GH-ISSUE #27] Masquerade is required inside openvpn container #23
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/openvpn-web-ui#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @patachi on GitHub (May 25, 2020).
Original GitHub issue: https://github.com/adamwalach/openvpn-web-ui/issues/27
Setting the default route option (
redirect-gateway def1) in client-side to redirect all traffic over the VPN it stays connected but nothing passes through even simple ping request.And it fixed by adding masquerade rule inside openvpn container
docker exec -it openvpn /bin/bashiptables -t nat -A POSTROUTING -s 10.0.0.0/8 -j MASQUERADEiptables -t nat -A POSTROUTING -s 172.16.0.0/12 -j MASQUERADEiptables -t nat -A POSTROUTING -s 192.168.0.0/16 -j MASQUERADE