What is "push route" used for in OpenVPN?

Super User Asked by DaRk_St0rM on December 12, 2020

I have an OpenVPN server set up on my Raspberry Pi, when I installed it the guide I followed said to add a line like: push "route" so that the server would let the client know that that network could be reached through the VPN, or so I understood.But now I’m using the Pi as a router to share a WiFi Internet connection with a computer,using the network,and so I was thinking of adding a route for that network that way, but I tried connecting before doing it and the PC can be reached without doing anything.

Doing a traceroute I saw that apparently is the default gateway, so it can just reach it from there without a problem.
So I’m wondering, what is that statement really used for? It doesn’t seem to be necessary for making the client aware of the network, since all the traffic is going through the VPN anyway.

One Answer

It is generally used to set routes to the VPN clients.

For instance, I use it to push to one of the computers inside the VPN so all traffic is tunneled through the VPN.

In your case, it would seem that you are pushing a route to the LAN behind the VPN so you end up sending packets to the VPN tunnel endpoint to be forwarded to the LAN.

In which case, I would suggest to set the VPN using a bridged TAP device, which automatically sets the route to the internal LAN without the need for forwarding or NATing.

Answered by Imanol Barba Sabariego on December 12, 2020

Add your own answers!

Related Questions

Freezes on HP Laptop, getting worse

2  Asked on November 20, 2021 by nbar


cant download a blob video

0  Asked on November 20, 2021 by helpme_pls


Excel 2016 New Window grayed out

1  Asked on November 18, 2021 by carl-roberts


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP