Hi, I would like to connect to a computer through a vpn in another network.

My computer (Debian 7.11) is in the network My gateway ( is a VPN router. It connects to another VPN router

From I can ping and connect to,,,

Now, I have another computer that I want to connect which is physically connected to the network.

I try to add a route in but it is not working:

route add -net netmask gw dev eth1
SIOCADDRT: No such process

How can I reach from ?

  • What kind of VPN does this VPN router use? IPSec? An SSL-based VPN? Something else? Do you have administrative access to both routers? (+1 from me because you went to the trouble of making a decent diagram; thank you.) – MadHatter Jan 13 '17 at 12:00
  • I have netgears FVS338 routeurs and complete control. VPN tunnel is made through IPSec – Sébastien Bonaimé Jan 13 '17 at 12:04
  • Can you show the output of routing table? The box with should route via tun interface same as route for You can't add since it's not in the Same network as the box in You can't get the Mac address unless both hosts are in same broadcast domain – kalyan Jan 14 '17 at 11:34

Dimitar has the first part of the process, but not the second. It is true that the right-hand side VPN router will need a presence on the network (I'm guessing it's a /24), but if your network diagram is accurate and complete, and can already reach the internet, it probably already has one.

IPSec tunnels are established between given source and destination address ranges; you can't just treat them like tubes into which arbitrary traffic can be poured. You will need to establish a tunnel between and on both VPN routers.

If RHS VPN router's 10.0.1 presence is not's default route, you will need to mess with the routing tables on, but that's for after we have the right tunnel(s) up.

  • In fact, I did not draw the complete right part of the network. is already in another network :-( But it is also physicaly connected to I know it is not the best way to do but I did not have choice... – Sébastien Bonaimé Jan 13 '17 at 12:16
  • Accuracy in your question matters, as does completeness. The fact that 10.0.1 and 192.168.33 are physically overlaid doesn't matter, though it's worth mentioning - the real question is what are's routing arrangements. If there's another router involved, that is vital to know. – MadHatter Jan 13 '17 at 12:21
  • GIGO as true today as ever. – user9517 Jan 13 '17 at 12:25
  • As far as I know has it's own gateway I can not modify or add something on – Sébastien Bonaimé Jan 13 '17 at 12:35
  • What about modifications on Does RHS VPN router have any logical presence on 10.0.1? – MadHatter Jan 13 '17 at 12:42

If it's something like remoting on to the machine for an RDP session or something like that you could use something like LOGMEIN or equivalent, especially if you don't have control or access to all the information at hand.

Logmein Diagram

As long as both machines can connect to the internet you should be able to connect to them from one to another using the software to create a 'Tunnel' for you and remotely screen share and share files from one to the other.



I found MY solution !

On a FVS338, you can configure a second LAN network. So I set as the second IP address of my right VPN router. Then I made a rule to forward ports I need from the public IP to Now I can connect to !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.