1

I am using a raspberry with the newest stretch version and facing a routing issue. My network:

  • LAN: 192.168.178.0/24
  • Subnet Mask 255.255.255.0
  • Default eth0 Gateway 192.168.178.1 (this network is connected to the raspberry)

Second available VPN Network (not yes used in Raspberry):

  • VPNLAN: 192.168.1.0/24
  • Subnet Mask 255.255.255.0
  • Default eth0 Gateway 192.168.1.1

I want to access from all devices in my LAN to the raspberry (that already works perfectly).

If it comes to internet (running updates in the raspberry or any other traffic caused by my software in the raspberry) the internet traffic should be routed through the VPNLAN.

I think, therefore I have to add a route and have as the only gateway the address of the vpnlan (192.168.1.1).

Tried some setting with route adding, etc; nevertheless, it did not work.

Is it possible at all, and how?

Your Answer

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

Browse other questions tagged or ask your own question.