OpenWrt Forum Archive

Topic: openwrt does not works from ssh session, but not as deamon!

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have openwrt working when I open up an ssh session to my router and manually run openvpn from the ssh/bash command prompt.  I'm running it in bridge mode. I can connect from my client and ping lan addresses.

So removed the "#" in column one that I had inserted earlier in /etc/init.d/S60openvpn so it would start in deamon mode with the following command. Here is the original command the ipkg installation put in /etc/init.d/S60openvpn:

openvpn --daemon --config /etc/openvpn/wlan_home.conf

The installation procedure created this file, (I did not), so I assume the syntax is correct.

What am I doing wrong?

Thanks,
Siegfried

Oh my, I must remember to proof read my postings. The title should read "openvpn works from ssh session, but not as deamon". Sorry.
When I use reboot with the "open --daemon --config /etc/openvpn/wlan_home.conf" inside the /etc/init.d/S60openvpn file, I cannot connect.

Thanks,
Siegfried

The discussion might have continued from here.