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

  • OK, not sure how I really solved this, but it appears that all traffic was going back out over the VPN, I some how got the traffic to go out from the VPN if originating locally, but then if the request came from outside to go back over that interface (default gateway)
  • Just encase anyone else see this (as I rebooted my computer, and lost the settings.. yey!)

    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
Sign In or Register to comment.