Easy OpenVPN server

Hello,

I want to configure a OpenVPN server ona OpenWRT roiuter to add somre clients.

I installed luci-openvpn package and this is my configuration: (192.168.4.1 is my router LAN IP address)

cat /etc/config/openvpn

config 'openvpn' 'MyVPN'
option 'enable' '1'
option 'dev' 'tun'
option 'proto' 'udp'
option 'secret' '/etc/config/openvpn.key'
option 'ifconfig' '10.200.0.1 10.200.0.2'
list 'push' 'route 192.168.4.0 255.255.255.0'
option 'log' '/tmp/openvpn.log'
option 'verb' '3'
option 'keepalive' '10 180'
option 'comp_lzo' 'yes'

cat /etc/config/firewall

...
config rule
option name 'OpenVPN'
option src 'wan'
option proto 'udp'
option dest_port '1194'
option target 'ACCEPT'

Now I have this in LuCi:

But when I push the "start", it does not start the service.

I am missing something?

I will appreciate your help.

Kind regards.

You should check logs:
logread -e openvpn
But from your configuration I can tell, that there is no needed files: certificates and keys.

Thanoks for the reply.

I install openvpn-openssl package and it work.

Is this a bug? I think it will be a dependency for luci-app-openvpn package.

Now I have the service running:

Regards.

See log, as I've written above.

Luci-app-openvpn doesn't force install OpenVPN because there are the different SSL library versions and it wouldn't know which one the user wants. So you have to install them separately.

Hello,

There is no output with this:

# logread -e openvpn

I have logs here:

# tail -f /tmp/openvpn.log 
Sun Jan  5 15:14:21 2020 /sbin/ifconfig tun0 10.200.0.1 pointopoint 10.200.0.2 mtu 1500
Sun Jan  5 15:14:21 2020 Could not determine IPv4/IPv6 protocol. Using AF_INET
Sun Jan  5 15:14:21 2020 Socket Buffers: R=[163840->163840] S=[163840->163840]
Sun Jan  5 15:14:21 2020 UDPv4 link local (bound): [AF_INET][undef]:1194
Sun Jan  5 15:14:21 2020 UDPv4 link remote: [AF_UNSPEC]
Sun Jan  5 15:17:21 2020 Inactivity timeout (--ping-restart), restarting
Sun Jan  5 15:17:21 2020 Closing TUN/TAP interface
Sun Jan  5 15:17:21 2020 /sbin/ifconfig tun0 0.0.0.0
Sun Jan  5 15:17:21 2020 SIGUSR1[soft,ping-restart] received, process restarting
Sun Jan  5 15:17:21 2020 Restart pause, 300 second(s)

Kind regards.

OK, is it during openvpn-server start or during connection of client?