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

Support for client traffic routing? #10

Closed
funkenstrahlen opened this issue Jul 31, 2015 · 4 comments
Closed

Support for client traffic routing? #10

funkenstrahlen opened this issue Jul 31, 2015 · 4 comments

Comments

@funkenstrahlen
Copy link

Does this role support client traffic routing via openvpn server?

In other words: I connect to the openvpn server and all my traffic (to the internet) gets routed through the server.

@j-carpentier
Copy link

Hello !
I think this role doesn't support traffic routing via OpenVPN server
I'm looking for exactly the same thing and it's seems some key features are unhandled, for example :
iptables rules or forwarding enabled (/proc/sys/net/ipv4/ip_forward)

Take a look at this article :
http://allanmcrae.com/2013/09/routing-traffic-with-openvpn/

@fitz123
Copy link

fitz123 commented Sep 29, 2015

Guys, it support routing traffic. You just need to choose this connection as Default Gateway. For example on Linux by default all traffic goes thru VPN connection. On windows I guess you need to mark some checkbox

@mightydok
Copy link

@funkenstrahlen add this to your config for client defgw support:

openvpn_server_options:
 - push "dhcp-option DNS IP_OF_DNS_SERVER"
 - push "redirect-gateway def1 bypass-dhcp"

@conorsch
Copy link
Contributor

I'm using a separate firewall role to handle iptables rules. The sysctl options mentioned above are indeed handled, since #25. Therefore this seems OK to close.

Docs PRs to make practical usage more clear are welcome!

darkdarkdragon pushed a commit to darkdarkdragon/Stouts.openvpn that referenced this issue Nov 16, 2017
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

5 participants