Anonymizing OpenVPN Allow SSH Access to Internal Server
Posted
by
Lionel
on Server Fault
See other posts from Server Fault
or by Lionel
Published on 2012-09-08T02:55:00Z
Indexed on
2012/09/08
3:39 UTC
Read the original article
Hit count: 164
I'm using an anonymizing VPN, but want SSH access to internal computer.
How do I access my internal computer through SSH? When I do ssh 98.123.45.6, the connection times out.
- IP address from cable provider: 98.123.45.6
- Anonymous IP through VPN: 50.1.2.3
- Internal computer: 192.168.1.123
When searching around, I found recommendations to either set up iptables rules, routing rules, or to add ListenAddress to sshd_config. Which of these applies to my case?
Here is my route:
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.115.81.1 10.115.81.9 255.255.255.255 UGH 0 0 0 tun0 10.115.81.9 * 255.255.255.255 UH 0 0 0 tun0 50.1.2.3-sta ddwrt 255.255.255.255 UGH 0 0 0 eth0 192.168.1.0 * 255.255.255.0 U 202 0 0 eth0 169.254.0.0 * 255.255.0.0 U 204 0 0 vboxnet0 loopback * 255.0.0.0 U 0 0 0 lo default 10.115.81.9 128.0.0.0 UG 0 0 0 tun0 128.0.0.0 10.115.81.9 128.0.0.0 UG 0 0 0 tun0 default ddwrt 0.0.0.0 UG 202 0 0 eth0
© Server Fault or respective owner