0
I currently have an OpenVPN connection running on my Mac. By default, all of my network traffic is currently being routed through this connection: http, ssh, etc. I'm attempting to use packet filtering configurations to make certain traffic go through my standard 'public' connection, but I can't seem to get this to work. I may be configuring it incorrectly, but below is what I have. I don't receive an error from pfctl
about my config, but if I curl http://ipecho.net/plain
, it displays the VPN IP instead of my public IP.
Note: my public
interface is an ethernet connection (en0) and from what I can tell, utun0 is my OpenVPN connection listed in ifconfig
.
pass out on en0 proto tcp from en0 to any port 80 flags S/SA keep state
Same with SSH.
pass out on en0 proto tcp from en to any port 22 flags S/SA keep state
I should mention that I do not manage the OpenVPN server.
The fact that you do not manage the OpenVPN server is irrelevant to my answer: the four lines to be added must be added to the client conf file, not the server conf file. – MariusMatutiae – 2015-07-06T17:51:59.100
D'oh, my bad. Will give that at try. Thanks! – alex-phillips – 2015-07-06T17:57:36.953