it is hard to do something...Hi,
i know about this behaviour, it seems there is a problem with iocage.
I'm working on a script to automate installing it (90% ready) and i hope i'll found the solution.
Hello Bibi40k
i have a problem may be about jail's network
i follow the guide step by step
but i can't connect to the OVPN service
OVPN is working
port is forwarding
Lan IP is good
but i can only telnet the ovpn's port in the jail
from outside, it is said "connection refused"
Ovpn client is keep loading at all, looks like it can't connect to server.
i have restart the jail, the Freenas system for many times. i can't even count it :( ..Did you try rebooting the entire FreeNAS? I needed to do that to first get it working. Also need to do it sometimes when upgrading the jail.
Oh i fixed it...installed, thank you!!
but now another problem, my client always said that "given private key password does not allow for correct decryption"...
anyways to fix it?
Sorry for not offering details.Well,
there are a lot o variables that can affect proper functionality of OpenVPN system and you did not offer us anything, not even your FreeNAS version.
Anyway, i created that script and share it to public.
All you need to do is to iocage destroy <old_ovpn> and then use that script
Port is change by the script, i have typed 9000.Hi,
"Port: the script make it 1194": you can change it but you need to add it to your router
"And also the script send my mail to me@example.com though i have input the email. = =" - please rerun the script and it will send to your real address. I need to fix this but it should do the job at second run.
So that although the OVPN server is working, "telnet 127.0.0.1:1194 or {LAN IP}:1194" will get nothing?9000 would be external port that you should forward to local-openvpn-jail-IP:1194
Humm.. Of course i do it inside the jail. And also outside, both get nothing. But „sockstat -4 -l“ shows that OVPN is listening on 1194 udpOf course you get nothing as long as you try to telnet to FreeNAS instead of OpenVPN jail
Really sorry that i am a noob to these.„sockstat -4 -l“ shows that OVPN is listening on 1194 udp ... which is good.
Testing UDP port connectivity wit nc command
The syntax to test UDP port connectivity with nc command is as follows:
# nc -z -v -u [hostname/IP address] [port number]
Example of successful connection:
# nc -z -v -u 192.168.10.12 123
Connection to 192.118.20.95 123 port [udp/ntp] succeeded!
what is your problem ?