So far I was able to set up a OpenVPN server on my DD-WRT router and connect to it with my laptop running Windows 7. The goal is to have multiple clients in the same subnet as devices in the router's subnet (NAS, other PCs) so they can exchange files and play LAN games. Also, all traffic should be redirected through the vpn router.
I noticed these problems:
1. Speedtests show very slow download speeds for my client while upload seems to be working fine.
2. Copying files within the network is not working/very slow.
3. The vpn connection shows up as public "unidentified network" on windows 7.
I assume that my configuration is not correct. DD-WRT generates the following configuration file from my settings:
Code: Select all
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
keepalive 10 120
verb 3
mute 3
syslog writepid /var/run/openvpnd.pid
management 127.0.0.1 14
management-log-cache 100
topology subnet
script-security 2
port 1194
proto udp
cipher bf-cbc
auth md5
client-connect /tmp/openvpn/clcon.sh
client-disconnect /tmp/openvpn/cldiscon.sh
client-config-dir /tmp/openvpn/ccd
comp-lzo adaptive
tls-server client-to-client
push "redirect-gateway def1"
fast-io
tun-mtu 1500
mtu-disc yes
server-bridge
dev tap2
sndbuf 393216
rcvbuf 393216
push "sndbuf 393216"
push "rcvbuf 393216"
The client configuration I made looks like this:
Code: Select all
client
dev tap2
proto udp
remote [color=#FF0000]"vpn router public ip"[/color] 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
ns-cert-type server
cipher bf-cbc
comp-lzo adaptive
verb 3
auth md5
192.168.0.1 is the router my client is connected to, 192.168.1.1 is the vpn router
Code: Select all
IPv4-Routentabelle
===========================================================================
Aktive Routen:
Netzwerkziel Netzwerkmaske Gateway Schnittstelle Metrik
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.14 25
0.0.0.0 128.0.0.0 192.168.1.1 192.168.1.122 20
127.0.0.0 255.0.0.0 Auf Verbindung 127.0.0.1 306
127.0.0.1 255.255.255.255 Auf Verbindung 127.0.0.1 306
127.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
128.0.0.0 128.0.0.0 192.168.1.1 192.168.1.122 20
192.168.0.0 255.255.255.0 Auf Verbindung 192.168.0.14 281
192.168.0.14 255.255.255.255 Auf Verbindung 192.168.0.14 281
192.168.0.255 255.255.255.255 Auf Verbindung 192.168.0.14 281
192.168.1.0 255.255.255.0 Auf Verbindung 192.168.1.122 276
192.168.1.122 255.255.255.255 Auf Verbindung 192.168.1.122 276
192.168.1.255 255.255.255.255 Auf Verbindung 192.168.1.122 276
"vpn router ip" 255.255.255.255 192.168.0.1 192.168.0.14 25
224.0.0.0 240.0.0.0 Auf Verbindung 127.0.0.1 306
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.1.122 276
224.0.0.0 240.0.0.0 Auf Verbindung 192.168.0.14 281
255.255.255.255 255.255.255.255 Auf Verbindung 127.0.0.1 306
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.1.122 276
255.255.255.255 255.255.255.255 Auf Verbindung 192.168.0.14 281
===========================================================================
Ständige Routen:
Keine
I hope someone can help me with this!
Thank you in advance!