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/
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