So I'm having a hell of a time getting my client machine(s) to route all traffic through the OVPN server. I've attached a screenshot of my server settings, and attached a copy of my config.ovpn file that I'm using on the client. I've gotten PPTP to route the traffic just fine, and have been using that, but like the idea of the better security OVPN offers (and, in TAP mode, zeroconf/Bonjour works! Makes administrating the office network much easier.)
So, the problem is as follows: OpenVPN server is working, and I can see via Bonjour all devices, and connect to any of them via any method I'd like, just as if I was at the office. When "direct clients to redirect internet traffic" is disabled, everything works as expected; Bonjour and connecting to machines at the office is functional, all other traffic exits my house and goes straight to the destination. When I enable "redirect internet traffic", connecting to the internal office network still works fine, but I cannot access the internet through the tunnel. I'm familiar with SSH/Linux/etc., so while I am new to OpenVPN, I'm ready to get down into those syslogs and figure out whats going on. I've tried adding "push redirect-gateway def1" and "push dhcp-option dns 8.8.8.8" to the custom config area to no avail. I've also tried manually setting the default gateway to 192.168.0.1 in Viscosity (the OVPN client app on Mac), as well as manually setting the DNS on the client as well, also to no avail. I've tried Tunnelblick, no change there either. It seems like a routing problem, but I've got nothing funky as far as routing goes on the office router; no static routes, NAT is all set to defaults, and its nothing more than a network routed at 192.168.0.1, subnet of 255.255.255.0; quite bland indeed!
Any help is greatly appreciated!
Network topography:
Client(192.168.2.10)-->Router(192.168.2.1)-->Internet-->RT-AC68U(public:70.90.xxx.xxx, private:192.168.0.1)-->office network(192.168.0.0/24)
config.ovpn:
client
dev tap
proto tcp
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
cipher aes-256-cbc
comp-lzo
verb 3
So, the problem is as follows: OpenVPN server is working, and I can see via Bonjour all devices, and connect to any of them via any method I'd like, just as if I was at the office. When "direct clients to redirect internet traffic" is disabled, everything works as expected; Bonjour and connecting to machines at the office is functional, all other traffic exits my house and goes straight to the destination. When I enable "redirect internet traffic", connecting to the internal office network still works fine, but I cannot access the internet through the tunnel. I'm familiar with SSH/Linux/etc., so while I am new to OpenVPN, I'm ready to get down into those syslogs and figure out whats going on. I've tried adding "push redirect-gateway def1" and "push dhcp-option dns 8.8.8.8" to the custom config area to no avail. I've also tried manually setting the default gateway to 192.168.0.1 in Viscosity (the OVPN client app on Mac), as well as manually setting the DNS on the client as well, also to no avail. I've tried Tunnelblick, no change there either. It seems like a routing problem, but I've got nothing funky as far as routing goes on the office router; no static routes, NAT is all set to defaults, and its nothing more than a network routed at 192.168.0.1, subnet of 255.255.255.0; quite bland indeed!
Any help is greatly appreciated!
Network topography:
Client(192.168.2.10)-->Router(192.168.2.1)-->Internet-->RT-AC68U(public:70.90.xxx.xxx, private:192.168.0.1)-->office network(192.168.0.0/24)
config.ovpn:
client
dev tap
proto tcp
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
cipher aes-256-cbc
comp-lzo
verb 3