OpenVPN push local network

trif

Cadet
Joined
Dec 16, 2020
Messages
6
Hi,

I configure OpenVPN server on my TrueNAS-12.0-U1. He works.

I use "Additional Parameters" for push local network on my vpn network, like that :
Code:
client-to-client
push "redirect-gateway def1"
push "route <IP_LOCALNETWOTK> 255.255.255.0"
push "dhcp-option DNS <LOCAL_DNS_IP>"


He dont works. I find i custom parametter for host on google. i try too add firewall rules :

Code:
#!/bin/sh
EPAIR=em0
ipfw -q -f flush
ipfw -q nat 1 config if ${EPAIR}
ipfw -q add nat 1 all from 10.8.0.0/24 to any out via ${EPAIR}
ipfw -q add nat 1 all from any to any in via ${EPAIR}
TUN=tun0
ifconfig ${TUN} name tun0


Same result. :(

Have you already done this configuration on truenas ?
Did you succeed to add a local network ?
 

thierry333

Cadet
Joined
Dec 12, 2020
Messages
8
Hi,

I configure OpenVPN server on my TrueNAS-12.0-U1. He works.

I use "Additional Parameters" for push local network on my vpn network, like that :
Code:
client-to-client
push "redirect-gateway def1"
push "route <IP_LOCALNETWOTK> 255.255.255.0"
push "dhcp-option DNS <LOCAL_DNS_IP>"


He dont works. I find i custom parametter for host on google. i try too add firewall rules :

Code:
#!/bin/sh
EPAIR=em0
ipfw -q -f flush
ipfw -q nat 1 config if ${EPAIR}
ipfw -q add nat 1 all from 10.8.0.0/24 to any out via ${EPAIR}
ipfw -q add nat 1 all from any to any in via ${EPAIR}
TUN=tun0
ifconfig ${TUN} name tun0


Same result. :(

Have you already done this configuration on truenas ?
Did you succeed to add a local network ?
Hi, maybe the topic below will help you
 

trif

Cadet
Joined
Dec 16, 2020
Messages
6
hi, i setup openvpn on jail like a freenas style.

I retry maybe later
 
Top