allow SSH to bypass VPN on OSX mavericks, openvpn, pf
Posted
by
zycho42
on Super User
See other posts from Super User
or by zycho42
Published on 2014-06-07T20:35:12Z
Indexed on
2014/06/07
21:28 UTC
Read the original article
Hit count: 487
My home computer connects to the internet through an OpenVPN connection. However, I would like to be able to connect to my home computer from outside over ssh. Ssh is set up and working, but when I connect to the vpn ssh is only accessible from inside my home network.
I figure what's going wrong is my router forwards incoming ssh connections to my mac, but then my mac replies over the vpn, so the connection from outside times out. I've got pf set up for a couple of other things, but I can't figure out how to let the ssh replies bypass the vpn using pf. I've come across other solutions that use ip tables, routing tables and rules, but I can't figure out how to set that up on mavericks.
I've been searching for this for a while now but I haven't found a working solution. Any help would be greatly appreciated!
© Super User or respective owner