port 1194
proto udp
dev tun
# Chaves e certificados do Servidor VPN
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh1024.pem
# Rede dos clientes VPN (diferente da LAN)
server 192.168.254.0 255.255.255.0
ifconfig-pool-persist ipp.txt
# Rota de acesso a LAN (192.168.1.0/24) para os clientes VPN
push "route 192.168.1.0 255.255.255.0"
client-to-client
# Permitir que multiplos clientes se conectem com a mesma chave/certificado
# duplicate-cn
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn/openvpn.log
log-append /var/log/openvpn/openvpn.log
verb 3