Answer the question
In order to leave comments, you need to log in
How to route traffic to specific hosts via openvpn (OS X)
Hello.
Tell me how to make traffic only to certain hosts go through openvpn, and the rest as usual, bypassing vpn.
Axis - os x 10.9. Set up tunnelblick. Everything works, but it seems that (almost) all traffic goes through vpn.
Googled, didn't find anything useful. Maybe I didn't search well
Answer the question
In order to leave comments, you need to log in
This can be configured on the server side. There you can register routes for each connected user.
You need to add ../openvpn/ccd/client name to the file:
push "route 8.8.8.8 255.255.255.255"
And remove the line:
push redirect-gateway def1 bypass-dhcp
Then all traffic up to 8.8. your channel on the Internet.
ps in the server openvpn config there should be a line:
client-config-dir /etc/openvpn/ccd
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question