KEvinn
Dabbler
- Joined
- Dec 22, 2015
- Messages
- 16
I'm trying to install openvpn on a Freenas 9.10 stable train. I have been following this guide however once I'm finished with setting up the keys, client and server and ready to do the internal testing I'm getting an error that says:
TCP connection error ... connection refused
By my understanding this means that it hits the IP address but is not allowed to pass because the port its using is not open right?
So I made sure to go back on my router settings to make sure I've opened to port to the local IP of the OpenVNP jail:
--> 192.168.1.107 is OpenVPN jail ip
Now on other questions I've read that u can use portscans to see if its actual open, well when I did that on the .107 ip it came up with 0 open ports. So to make sure the program is working fine, I made it search ports on my Freenas ip and it came up with ports such ass 21&22 for FTP and SSH, which I've opened the same way on the router for the .107 Open VPN jail.
But closed when port scan-->
So i was wondering is it possible that the port is OPEN on my router but "CLOSED" on my freenass ? Now i know that freenass doesn't block Ports as I've read, however to make for example SSH work on port 22, I have to go in the settings and make the freenass listen for SSH on port 22. Is this possible with jails? For the transmission jail for expamle I had to specify in the settings which port to listing to.
So how can i fix this port issue with the OpenVPN jail so it listens to the given port ?
TCP connection error ... connection refused
By my understanding this means that it hits the IP address but is not allowed to pass because the port its using is not open right?
So I made sure to go back on my router settings to make sure I've opened to port to the local IP of the OpenVNP jail:

--> 192.168.1.107 is OpenVPN jail ip
Now on other questions I've read that u can use portscans to see if its actual open, well when I did that on the .107 ip it came up with 0 open ports. So to make sure the program is working fine, I made it search ports on my Freenas ip and it came up with ports such ass 21&22 for FTP and SSH, which I've opened the same way on the router for the .107 Open VPN jail.
But closed when port scan-->
Code:
Starting Nmap 7.12 ( https://nmap.org ) at 2016-07-10 09:14 CEST Nmap scan report for 192.168.1.107 Host is up (0.00081s latency). PORT STATE SERVICE 1194/tcp closed openvpn
So i was wondering is it possible that the port is OPEN on my router but "CLOSED" on my freenass ? Now i know that freenass doesn't block Ports as I've read, however to make for example SSH work on port 22, I have to go in the settings and make the freenass listen for SSH on port 22. Is this possible with jails? For the transmission jail for expamle I had to specify in the settings which port to listing to.
So how can i fix this port issue with the OpenVPN jail so it listens to the given port ?
Last edited: