indeed, looks perfect.
Please rerun the script (i hope i fixed showing error to logfile)
run "the cleaner"
run install again
please output the result
[..] adjust values in 'openvpn.conf' file...
Something went wrong, exiting.
[info] Display error(s) in a sec.
Log file: /root/OpenVPN-on-FreeNAS-in-iocage/openvpn-configs/ovpn-install.log
No default gateway found for ipv6.
sed: 1: "s|{IP_RANGE}|172.16.0.0 ...": unescaped newline inside substitute patternrun these 2 commands
cat /root/OpenVPN-on-FreeNAS-in-iocage/openvpn-configs/server/openvpn.conf
netstat -rn | grep -E "U[^A-Z]" | grep -v lo0 | awk '{print $1;}' | sed "s/\/.*//g"
root@freenas[~/OpenVPN-on-FreeNAS-in-iocage]# cat /root/OpenVPN-on-FreeNAS-in-iocage/openvpn-configs/server/openvpn.conf
port 1194
proto udp4
dev tun
ca {DKEYS}/ca.crt
cert {DKEYS}/openvpn-server.crt
key {DKEYS}/openvpn-server.key
dh {DKEYS}/dh.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist {DSERVER}/ipp.txt
push "route {IP_RANGE} 255.255.255.0"
keepalive 10 120
tls-auth {DKEYS}/ta.key 0
remote-cert-tls client
cipher AES-256-CBC
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
explicit-exit-notify 1root@freenas[~/OpenVPN-on-FreeNAS-in-iocage]# netstat -rn | grep -E "U[^A-Z]" | grep -v lo0 | awk '{print $1;}' | sed "s/\/.*//g"
172.16.0.0
172.16.0.4
172.16.0.8
192.168.72.0Is that right? I mean I'm running the command as root on freenas, not in the OpenVPN jail itself, so vnets of other running jails/VMs should show up as well...bingo, this is the problem.
172.16.0.0
172.16.0.4
172.16.0.8
192.168.72.0
it shoould return only "192.168.72.0". trying to find a solution
Followup on that, after disabling every other running jail & VM, I do indeed get only "192.168.72.0":Is that right? I mean I'm running the command as root on freenas, not in the OpenVPN jail itself, so vnets of other running jails/VMs should show up as well...
I'll turn off other jails & VM's and report back the output.
root@freenas[~/OpenVPN-on-FreeNAS-in-iocage]# netstat -rn | grep -E "U[^A-Z]" | grep -v lo0 | awk '{print $1;}' | sed "s/\/.*//g"
192.168.72.0Also here is my config@Bibi40k Thank you for your work on this guide. I have been trying to place my freenas behind a VPN and was having issues.
I was able to run steps 1 and 2 , however when i get to step 3 I get this below:
View attachment 38995
and it just goes to the install menu again. Am I doing something wrong?
@Bibi40k Thank you for your work on this guide. I have been trying to place my freenas behind a VPN and was having issues.
I was able to run steps 1 and 2 , however when i get to step 3 I get this below:
View attachment 38995
and it just goes to the install menu again. Am I doing something wrong?
Hi, as it said, that feature is not yet implemented. 1-9 are menu options not steps to follow in that order.
Actually the proper order is 8 (where you customise settings including profiles) and then 1 and that's it. Once in a while rerun the script with option 2 to check for updates. Also backing up settings with "The Keeper" is a good idea because you can import them anywhere else if needed.
So if you already run 1 and 2 what is the problem because your server is already running ?