Thank you Jon for your support.
I will install the newer firmware when it will be a stable release; then I
will follow your hint. I have found info about UCI syntax... very
interesting... and useful!
Carlo
Il 22/08/2012 16:20, Jon Spriggs ha scritto:
Hi there,
The latest developer firmware has it's own OpenVPN setup in it.
To use it, your best bet is to parse your existing configuration files and
insert them into the uci configuration files. If you want to send me the
config file (sanitized if necessary) I'll drop you some pointers about how
to get the UCI config files back?
All the best,
--
Jon "The Nice Guy" Spriggs
On 22 August 2012 15:14, Carlo Todeschini <[email protected]
<mailto:[email protected]>> wrote:
Hi,
sorry if I'm posting my problem here but the official support forums
seems to be dead...
I have a Fonera 2.0n running firmware 2.3.6.1 DEV.
I installed openvpn client from "snapshots2" repo available at
http://downloads.openwrt.org/__kamikaze/8.09.2/rb532/__packages/
<http://downloads.openwrt.org/kamikaze/8.09.2/rb532/packages/>
The client is working very well ;-) but I've a problem launching it at
startup.
I created the file "/etc/init.d/ovpnstart" as following:
------------------------------__------------------------------__--------------
#!/bin/sh /etc/rc.common
START=98
start() {
# start VPN
touch /tmp/vpn-start-1
/usr/sbin/openvpn --daemon --log /tmp/openvpn-log --config
/etc/openvpn/myvpn.ovpn
# set forwarding rules
touch /tmp/vpn-start-2
/usr/sbin/iptables -A forwarding_rule -o tun0 -j ACCEPT
/usr/sbin/iptables -A forwarding_rule -i tun0 -j ACCEPT
/usr/sbin/iptables -t nat -A postrouting_rule -o tun0 -j
MASQUERADE
touch /tmp/vpn-start-3
}
boot() {
touch /tmp/vpn-boot-1
start
touch /tmp/vpn-boot-2
}
------------------------------__------------------------------__--------------
And the I ran the command:
------------------------------__------------------------------__--------------
root@Fonera:~# /etc/init.d/ovpnstart enable
------------------------------__------------------------------__--------------
to have the correct "/etc/rc.d/S98ovpnstart" link.
If I run the command by hand, in the shell, the VPN starts correctly.
If I reboot the Fonera I can't see the VPN running, but I can see the
"debug" files created from the script (see the "touch" command in the
script).
------------------------------__------------------------------__--------------
root@Fonera:~# ls -la /tmp/vpn-*
-rw-r--r-- 1 root root 0 Aug 23 2010 /tmp/vpn-boot-1
-rw-r--r-- 1 root root 0 Aug 23 2010 /tmp/vpn-boot-2
-rw-r--r-- 1 root root 0 Aug 20 12:14 /tmp/vpn-start-1
-rw-r--r-- 1 root root 0 Aug 20 12:14 /tmp/vpn-start-2
-rw-r--r-- 1 root root 0 Aug 20 12:14 /tmp/vpn-start-3
------------------------------__------------------------------__--------------
So the script is correctly run at startup but the openvpn client not.
Where's my mistake?
Any help to solve this problem is really appreciated ;-)
Thanks,
Carlo
_________________________________________________
Development mailing list
[email protected] <mailto:[email protected]>
http://fonosfera.org/mailman/__listinfo/development
<http://fonosfera.org/mailman/listinfo/development>
_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development
--
dott. Carlo Todeschini
--
[ Metarete - X Service Provider - Soluzioni in rete ]
http://www.metarete.it - [email protected]
Tel: +39 0372 432228 - Fax: +39 0372 590617
_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development