Hello everyone,
I want to run a VPN server on a raspberry pi, to be able to redirect all trafic through the VPN, so I can surf safely on an unsecured network.
I got the VPN up and running and it seems a connection is made, but I am unable to connect to the internet or any other machine.
I read through the openvpn how to and some other how to's and tried lot's of things, but I can't get it to work. Can someone please help me?
/etc/openvpn/server.conf:
port 9411
proto udp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh4096.pem
server 10.7.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
keepalive 10 120
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
chroot /chroot_jails/openvpn
persist-key
persist-tun
status openvpn-status.log
verb 3
client configuration:
client
dev tun
proto udp
remote <SERVER_IP> 9411
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert xperiaP.crt
key xperiaP.key
ns-cert-type server
cipher AES-256-CBC
comp-lzo
verb 3
Network configuration:
internet---->modem---->router---->raspberry pi
In the modem I enabled DMZ for the router, so the router recieves al traffic. The router is set to forward all incoming UDP traffic on port 9411 to the pi. The router also runs it own VPN server, but on a different port.