OpenVPN server keeps looking for /etc/openvpn/server-tap.conf

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Gruntruck
OpenVpn Newbie
Posts: 1
Joined: Sun Jul 15, 2018 9:33 am

OpenVPN server keeps looking for /etc/openvpn/server-tap.conf

Post by Gruntruck » Sun Jul 15, 2018 9:43 am

Hi guys,

I have peculiar problem. I run OpenVPN server on my OpenWRT (x86 distro). Everything works fine and I can connect to it. There is but one issue:
OpenVPN keeps looking for /etc/openvpn/server-tap.conf every 5 seconds, can not find it and logs about it in System Log. So my logs keep growing, which is a nuisance.

Basically, this is repeated every 5 secs:

```
Thu Jul 12 22:47:07 2018 daemon.err openvpn(server-tap)[25001]: Options error: In [CMD-LINE]:1: Error
opening configuration file: /etc/openvpn/server-tap.conf
Thu Jul 12 22:47:07 2018 daemon.warn openvpn(server-tap)[25001]: Use --help for more information.
```

I have following OpenVPN components installed:
openssl-util 1.0.2o-1
openvpn-easy-rsa 2013-01-30-ff5bfd1d-2
openvpn-openssl 2.4.4-4

My OpenVPN configuration is in file /etc/config/openvpn, so there is no /etc/openvpn/server-tap.conf. I even tried to create empty /etc/openvpn/server-tap.conf to make it stop but it then started complaining about wrong options. Is there anything I can put there to make it stop?

My server config is very straight-forward:
```
config openvpn 'myvpn'
option enabled '1'
option verb '3'
option port '1194'
option proto 'udp'
option dev 'tun'
option server '10.8.0.0 255.255.255.0'
option keepalive '10 120'
option ca '/etc/openvpn/ca.crt'
option cert '/etc/openvpn/my-server.crt'
option key '/etc/openvpn/my-server.key'
option dh '/etc/openvpn/dh2048.pem'
list push 'route 192.168.0.0 255.255.255.0'
list push 'redirect-gateway def1'
#option sndbuf '393216'
#option rcvbuf '393216'
#list push 'sndbuf 393216'
#list push 'rcvbuf 393216'
```


Can you please help me investigate? As I mentioned, the functionality is OK. It is just logging that bugs me. I tried asking on OpenWRT/LEDE forum, to no avail.

Many thanks!

Post Reply