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]> 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]
> http://fonosfera.org/mailman/**listinfo/development<http://fonosfera.org/mailman/listinfo/development>
>
_______________________________________________
Development mailing list
[email protected]
http://fonosfera.org/mailman/listinfo/development

Reply via email to