Lan clients To VPN

Hi, I’ve 2 NetSec in 2 sites linked by vpn
I need to route LAN Netsec01(is it a /24 gateway and dhcp for other clients) to NethSec02 into vpn tunnet to navigate with NethSec02 wam.

Is it possibile?
Can y help me?
Yhank you

Hi Andrea,

welcome to NethServer community.

Are you using OpenVPN or IPSEC for the tunnel?

I think it’s just about setting up route(s) but I need to test. Did you already try something?

I’m using OpenVPN

Clients traceroute end on Nethsec01 host ip

1 Like

You need to configure this option, from the manual:

Route all client traffic through VPN: if enabled, all traffic from the client will be routed into the VPN tunnel, even standard internet traffic. It can be used for monitoring and control purposes, but is typically disabled because it introduces increased latency and consumes bandwidth.

Please bear in mind that some client may ignore it, but standard OpenVPN client should honor it.
You can check inside the client if the route is in place.

1 Like

It’s about an ovpn site to site tunnel but I found that option only for roadwarrior.
I guess for site2site it’s just setting up a route (or change default route) in NethSec at site A to send clients to the NethSec at site B but I never tested such setup.