Hi everyone!
I have a tricky problem: it seems the Truenas Firewall is messing with my jail.
What I want to have is:
All of this is working fine except:
Now, for the setup:
Hardware:
Configuration of my network:
Configuration of the VPN:
In order to activate the routing between the two subnet, I've setup those tunables:
And this static route:
I think I have a Truenas Firewall rule to add, but I can't find any. Does anyone know what's the problem?
Thanks for your help!
I have a tricky problem: it seems the Truenas Firewall is messing with my jail.
What I want to have is:
- a jail with Transmission running
- an OpenVPN server allowing me to reach my home network from the outside (so I can access my shares, my jail, my printer etc...)
All of this is working fine except:
- when I turn on the truenas Firewall: I can reach my network from the VPN, but Transmission can't reach anything
- when I turn off the truenas Firewall: I can't reache my network from the VPN, but Transmission is ok
Now, for the setup:
Hardware:
- HP Proliant ML310e Gen8 V2
- Processor: Xeon E3
- RAM: 16Go ECC
- OS Disk: 256Go SSD
- Pool disk: 3x 4To HDD RaidZ1
Configuration of my network:
- Network: 192.168.1.0/24
- Gateway: 192.168.1.1
- Truenas IP: 192.168.1.101
- Jail IP¨: 192.168.1.152
Configuration of the VPN:
- The VPN is set from the Truenas Services (not in a jail)
- Network: 192.168.2.0/24
- Compression: none
- Protocl: UDP
- Device type: TUN
- Topology: Subnet
- TLS Crypt Auth Enabled
- Additionnal parametters:
- push "route 192.168.1.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"
In order to activate the routing between the two subnet, I've setup those tunables:
- firewall_enable: yes (I currently switch between transmission working, and network access)
- firewall_type: open
- gateway_enable: yes
- natd_enable: yes
- natd_flags: -dynamic -m
- natd_interface: bge0
And this static route:
- Destination: 192.168.2.0
- Gateway: 192.168.1.101
I think I have a Truenas Firewall rule to add, but I can't find any. Does anyone know what's the problem?
Thanks for your help!