EFW Support

Support => VPN Support => Topic started by: Safarir on Friday 14 January 2011, 10:18:12 am



Title: OpenVPN change Port & Protocole Fix
Post by: Safarir on Friday 14 January 2011, 10:18:12 am
Hi Everyone,

(Sorry for my bad english)

I just install endian 3 hours ago and I just love it even if there is a lot of bug. So I decide to fix the bug that dont allow you to change the openvpn port or protocol.

The bug was the result of the web interface that was setting the port and protocole setting as PORT and PROTOCOL in the /var/efw/openvpn/settings file when the script was looking for OPENVPN_PORT and OPENVPN_PROTOCOL. He you want, you can simply change these name in the file and manually restart the vpn but you will lose all your modification as soon as you make modification in the advanced tab of the web interface.

So I decide to fix the web interface so that it will write the good parameters name in the file. All you have to do to correct the bug is to replace the original file with mine with this command:
Code:
scp openvpn_advanced.cgi root@<endian_ip>:/home/httpd/cgi-bin/

Have a good time and sorry again for my bad english


oohh and BTW: No gmail adress on the forum, that is just sh*t

Charles-Xavier Roy