Review my config?

Scripts to manage certificates or generate config files

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

Post Reply
User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Review my config?

Post by Pippin » Mon Aug 31, 2015 8:16 pm

Hello to the knowledgeable :-)

Since some time I've been running OpenVPN on my Synology NAS which I had to mod because the UI does not offer much, it`s very basic.
It`s for private use and I have three remote users, myself as Admin/user and a second user, all using Windows and Android.
With XCA I've setup my own CA, certificates, keys and DH parameters, everything 2048 bits.
Every user has it`s own common name.

My questions are:
Are there any flaws/faults or improvements?
The client uses pull, is it still necessary? (I mean, the server pushes... or does it push on request from the client?)

My server config is as follows:

Code: Select all

#log-append /var/log/openvpn.log
#verb 5

push "route 192.168.11.0 255.255.255.0"
push "route 192.168.168.0 255.255.255.0"
push "dhcp-option DNS 192.168.11.10"
push "dhcp-option WINS 192.168.11.12"     <-- I let Samba handle this on the same NAS
management 127.0.0.1 1195
server 192.168.168.0 255.255.255.0
dev tun
proto udp
port 1194
persist-tun
persist-key
cipher AES-256-CBC
auth SHA256
tls-version-min 1.2 or-highest
remote-cert-tls client
username-as-common-name
dh /volume1/@appstore/VPNCenter/etc/openvpn/keys/dh2048.pem
ca /volume1/@appstore/VPNCenter/etc/openvpn/keys/ca.crt
cert /volume1/@appstore/VPNCenter/etc/openvpn/keys/server.crt
key /volume1/@appstore/VPNCenter/etc/openvpn/keys/server.key
tls-auth /volume1/@appstore/VPNCenter/etc/openvpn/keys/ta.key 0
max-clients 3
comp-lzo
keepalive 20 60
reneg-sec 0
plugin /var/packages/VPNCenter/target/lib/radiusplugin.so /var/packages/VPNCenter/target/etc/openvpn/radiusplugin.cnf
status /tmp/ovpn_status_2_result 30
status-version 2
This is the client config:

Code: Select all

remote 000.111.222.333 1194
remote 111.222.333.444 1194
dhcp-option DNS 192.168.11.10
dhcp-option WINS 192.168.11.12
redirect-gateway
dev tun
proto udp
pull
tls-client
tls-auth ta.key 1
remote-cert-tls server
ca ca.crt
cert client.crt
key client.key
cipher AES-256-CBC
auth SHA256
tls-version-min 1.2 or-highest
script-security 2
comp-lzo
reneg-sec 0
auth-user-pass
auth-nocache
Thanks in advance

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Review my config?

Post by Traffic » Thu Sep 03, 2015 4:28 pm

Pippin wrote:My questions are:
Are there any flaws/faults or improvements?
Looks ok.
Pippin wrote:The client uses pull, is it still necessary? (I mean, the server pushes... or does it push on request from the client?)
Pull is necessary if you want to accept server side directives.

User avatar
Pippin
Forum Team
Posts: 1201
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Review my config?

Post by Pippin » Thu Sep 03, 2015 8:10 pm

Ok, thanks Traffic.

I`ve now added prng RSA-SHA256 16 and seems to work ok with Android, Saturday can test it on Windows.

Also Saturday want to test with topology subnet, push "topology subnet"
If I'm correct, then only adding those 2 to the server config is enough?

Slowly starting to understand what`s going on under the hood ;-)

Thanks again.

Post Reply