Jump to content
Not connected, Your IP: 52.14.121.242
Sign in to follow this  
anaboliks

SSH server outside of VPN

Recommended Posts

Hi there,

I was wondering if someone would have a quick answer for me. I am not very familiar with openvpn.

I am running a Linux (Gentoo) machine, with a ssh deamon on it. I have openvpn, and I used the configuration file from here (access without client). Everything works fine, however what is happening is openvpn redirects all trafic through the vpn, and when I try to ssh to my actuall ip address (from outside the local network) the ssh port is closed.

At first i thought it was my iptables, however after running openvpn without any iptables rules, and then enabling all the rules but not on the vpn, my ssh server is fine.

So the question is, is there an quick way to set openvpn to rerout all the trafic except for the ssh port?

Thanks,

Share this post


Link to post

Hello!

If you wish to make the ssh daemon reachable from the Internet outside the tunnel, you need to bind it to the physical server interface (for example eth0).

On the contrary, if you wish to run the ssh daemon behind the VPN, just forward remotely a port on our system and make sshd listen to that port on your tun interface. Your sshd will be reachable from the Internet on

:

Kind regards

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...