Connect to Debian VPS box via VPN Issue
by Klaipedaville from LinuxQuestions.org on (#5MCJN)
Hello all,
I am kinda stuck with an usual issue (or is it usual?). Let me explain.
I have two Debian VPS boxes. The first one is a pure VPN (OpenVpn) and the second one is my regular server with emails, websites and stuff like that. I also have a machine "at home" that can easily connect to these two boxes.
Now I need to connect like this:
my machine at home to -> my VPS that runs VPN only and then to -> my regular VPS server.
I thought it would be easy, but I was mistaken. I allowed my VPN's static IP address through my firewall (iptables) on my regular VPS server but I didn't work. I flushed all the iptables just to see if it helps but.. it still doesn't work (it always times out, I use ssh keys to connect). I can only connect to either my VPS that runs my VPN only or to my regular VPS, but my route of home->VPN->regular VPS just doesn't work. How can I possibly do it? These two VPS boxes are working fine: My VPS with VPN is working perfectly well and my regular VPS is also working perfectly well. I would be really grateful for any pointers / suggestions / advices at all. Many thanks in advance!
I am kinda stuck with an usual issue (or is it usual?). Let me explain.
I have two Debian VPS boxes. The first one is a pure VPN (OpenVpn) and the second one is my regular server with emails, websites and stuff like that. I also have a machine "at home" that can easily connect to these two boxes.
Now I need to connect like this:
my machine at home to -> my VPS that runs VPN only and then to -> my regular VPS server.
I thought it would be easy, but I was mistaken. I allowed my VPN's static IP address through my firewall (iptables) on my regular VPS server but I didn't work. I flushed all the iptables just to see if it helps but.. it still doesn't work (it always times out, I use ssh keys to connect). I can only connect to either my VPS that runs my VPN only or to my regular VPS, but my route of home->VPN->regular VPS just doesn't work. How can I possibly do it? These two VPS boxes are working fine: My VPS with VPN is working perfectly well and my regular VPS is also working perfectly well. I would be really grateful for any pointers / suggestions / advices at all. Many thanks in advance!