I've read many topics about this but no topic I found gave me the solution. I have a Ubuntu server running OpenVPN, this is the config file
Code: Select all
dev tun
proto tcp
port xxxx
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
user nobody
group nogroup
server 192.168.254.0 255.255.255.0
topology subnet
duplicate-cn
persist-key
persist-tun
status openvpn-status.log
verb 3
client-to-client
push "redirect-gateway def1"
log-append /var/log/openvpn
comp-lzo
Code: Select all
dev tun
client
proto tcp
remote x.x.x.x xxxx
resolv-retry infinite
nobind
# Try to preserve some state across restarts.
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\client.crt"
key "C:\\Program Files\\OpenVPN\\config\\client.key"
comp-lzo
# Set log file verbosity.
verb 4
Code: Select all
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 192.168.254.0/24 anywhere
Anyone an idea what might be wrong?