I'm trying to allow my home linux box ssh access to an internal work
machine for remote support. The work machine is on a private IP on a
subnet protected by a gnat firewall box, which has two NICs, one with
a public IP I can ping etc.
I've configured the gnat box to allow my IP access to the ssh machine
on the work subnet, but I'm not sure how to tell my home linux box to
route all data for that subnet through the gnatbox.
So lets say my home IP is 212.212.212.212, the gnatbox is 194.1.1.1
and the work machine I'm trying to access is 10.10.10.10
I need to ssh to 10.10.10.10 from my home linux box, and obviously
I'll need to add a route to say where data for the 10.10.10.0/24
subnet should go. I've tried:
route add -host 194.1.1.1 eth1 ;add route to gnatbox or next cmd
doesnt work
route add -net 10.10.10.0/24 gw 194.1.1.1 eth1 ;add route to net via
gnatbox
I've then tried with and without next route cmd:
route del -host 194.1.1.1 eth1
It doesn't work. I'm ignoring the possibility of a gnatbox config
error for now - ans have tried to verify data for 10.10.10.x is at
least being sent to 194.1.1.1 fo it to pass on. traceroute 194.1.1.1
is OK, but traceroute 10.10.10.x gets no where near 194.1.1.1 - but
rather only as far as my ISP.
I'm sure to many it's obvious what I'm doing wrong - and I assume what
I'm trying to do is not possible is this way. I just thought I'd at
least try before asking for help :)
Any help appreciated - don't fancy the 40 mile drive to come into the
office to change someones password.
Tim