Results 1 to 3 of 3

Thread: SSH not routing through openvpn

  1. #1
    Join Date
    Nov 2008
    Location
    On a tour bus
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    SSH not routing through openvpn

    For some reason, when I am logged into a OpenVPN server through networkmanager, the ssh client (ssh) does not access the ssh server using the VPN.

    Instead, it somehow slips by, and just uses the normal internet to connect to the server, which is impossible as I have a ip address whitelist for ssh.

    route:
    Code:
    0.0.0.0         172.17.0.5      0.0.0.0         UG    0      0        0 tun0
    169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0
    172.17.0.1      172.17.0.5      255.255.255.255 UGH   0      0        0 tun0
    172.17.0.5      0.0.0.0         255.255.255.255 UH    0      0        0 tun0
    192.168.1.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0
    192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0
    198.23.165.156  192.168.1.1     255.255.255.255 UGH   0      0        0 wlan0
    My router uses 192.168.1.0/ 255.255.255.0
    Website | Personal Twitter | Last.fm | TF2/Left4Dead2 Servers | #ubuntuforums IRC Chat Room | Music is my ❤
    Always follow your dreams, wherever they take you, and everything will be exactly as you wanted

  2. #2
    Join Date
    Dec 2010
    Beans
    505
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SSH not routing through openvpn

    WHat is the IP adress of the SSH Server?

    If routes have the same metric the order of precedence is more specific to least. If it is in the 192.168.1.0/24 or 192.168.122.0/24 network then there are routes for those that are more specific than the default route to the tunnel.

  3. #3
    Join Date
    Nov 2008
    Location
    On a tour bus
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: SSH not routing through openvpn

    nvm *cough*
    Just realized that SSH and OpenVPN were on the same IP address :O

    Changing the OpenVPN address caused success
    Website | Personal Twitter | Last.fm | TF2/Left4Dead2 Servers | #ubuntuforums IRC Chat Room | Music is my ❤
    Always follow your dreams, wherever they take you, and everything will be exactly as you wanted

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •