Ubuntu OpenVPN Connected, Can't Access Services on Normal IP Remotley?
I am guessing I wont get any help with this...
However I have set-up my ubunuty server to use open VPN for its connection outbound. Which is working correctly.
Internally (local network) I can still access services running on the same machine with different ports, using its internal IP Address. What I can't do though is access the same machine remotely?
If I disable the openVPN connection, it all works again, so I know the routers NAT/Port Forwarding is working.
I don't need inbound traffic that targets my external IP encrypted, so no need to port forward PIA.
Why can't I connect remotely when the openVPN connection is running? Is my internal subnet mask to large? 255.0.0.0 (10.x.x.x)
Comments
This is what helped me. The local IP on eth0 was 10.0.0.220
echo 200 isp2 >> /etc/iproute2/rt_table
ip route add 10.0.0.0/24 dev eth0 src 10.0.0.220 table isp2
ip route add default via 10.0.0.254 dev eth0 src 10.0.0.220 table isp2
ip rule add from 10.0.0.220 table isp2