DaSnipe
Explorer
- Joined
- Jun 26, 2021
- Messages
- 86
Hi everyone,
I'm setting up OpenVPN on my TrueNAS scale box, works great to ping the TrueNAS box and access the webGUI. However my usage for OpenVPN would be to access the subnet that the router (using ISP one for now, don't have a dedicated box or pfsense) and other computers/devices.
There's a couple of great guides built for core (https://www.truenas.com/community/t...ocumentation-for-openvpn-on-truenas-12.92768/) and videos on Youtube (https://www.youtube.com/watch?v=YEkfW4aC9Rk&t=1226s), which are great but SCALE doesn't have a tunables section for rc.conf. I know I can modify sysctl but not rc.conf tunables to modify the firewall and gateway, since I'd need to modify the following options
Tunables:
firewall_enable
firewall_type
gateway_enable
natd_enable
natd_interface
natd_flags -dynamic -m
In order to route the traffic setup in the additonal parameters of the OpenVPN server:
Additional Parameters:
push "route 192.168.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 1.1.1.1"
Is there a way to do this in SCALE?
I know I can run a VM bridge that to my local network (with or without OpenVPN) but I'd love to use the built-in SCALE VPN server to access all my network.
I'm setting up OpenVPN on my TrueNAS scale box, works great to ping the TrueNAS box and access the webGUI. However my usage for OpenVPN would be to access the subnet that the router (using ISP one for now, don't have a dedicated box or pfsense) and other computers/devices.
There's a couple of great guides built for core (https://www.truenas.com/community/t...ocumentation-for-openvpn-on-truenas-12.92768/) and videos on Youtube (https://www.youtube.com/watch?v=YEkfW4aC9Rk&t=1226s), which are great but SCALE doesn't have a tunables section for rc.conf. I know I can modify sysctl but not rc.conf tunables to modify the firewall and gateway, since I'd need to modify the following options
Tunables:
firewall_enable
firewall_type
gateway_enable
natd_enable
natd_interface
natd_flags -dynamic -m
In order to route the traffic setup in the additonal parameters of the OpenVPN server:
Additional Parameters:
push "route 192.168.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 1.1.1.1"
Is there a way to do this in SCALE?
I know I can run a VM bridge that to my local network (with or without OpenVPN) but I'd love to use the built-in SCALE VPN server to access all my network.