Posts by thee

    The purpose is to encrypt my internet connection on my server, so that the connection is secure when I download stuff from the internet directly onto my server.


    My server is on my LAN (same subnet, local IP) and it gets its internet connection through my LAN and I can access it directly via my LAN. Now I don't need to use a VPN from my PC to my server, because I am on my LAN, so that is not the issue nor am I trying to accomplish this. What I need is, my server to have a secure connection to my VPN provider when it is downloading something so that my ISP can't see the servers internet traffic but it should still be accessible on my LAN via local IP.


    So I need to route ALL internet traffic through my VPN - and the ALL LAN traffic should go through LAN.


    Does that make sense?

    Code
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 10.8.0.1 128.0.0.0 UG 0 0 0 tun0
    0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
    10.8.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tun0
    95.211.138.132 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
    128.0.0.0 10.8.0.1 128.0.0.0 UG 0 0 0 tun0
    172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

    Ok, now the VPN is connected and I have an internet connection, the problem is that the internet traffic isn't going through the VPN, which was the entire point. My true IP on the Server is still visible.
    So it should be: My Home Server --> VPN service --> Internet

    Sorry I didn't connect the first time. Here it is:


    Code
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 10.8.0.1 128.0.0.0 UG 0 0 0 tun0
    0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
    10.8.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tun0
    95.211.138.132 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
    128.0.0.0 10.8.0.1 128.0.0.0 UG 0 0 0 tun0
    172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

    Hi, thanks for the reply.


    Here is my VPN config file:


    And here is the routing table:

    Code
    netstat -rn
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
    172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

    Hi,
    I'm trying to setup a secure connection on my OMV server using the OpenVPN client with the command:

    Bash
    openvpn xxx.ovpn

    Which seems to work fine as I get:

    Bash
    Initialization Sequence Completed


    But once this happens my server loses internet connectivity (the local network connection still works), and as a result, after a few minutes the VPN connection drops.


    Anyone can tell me what am I doing wrong?
    Thanks