Incredibly slow connection <1KB/s
Posted: Sun Oct 02, 2011 8:20 pm
I've previously installed openvpn about 3 times before when my PC was also the router and firewall for my home LAN (internet connection was into this PC directly) and I've never had any problems.
But now I have a different setup with a dd-wrt router, and my PC is connected to that router only with 1 cable. OpenVPN is on the PC not on the router, but the internet connection for that PC goes through the router and the router does NAT.
I added a route in dd-wrt and the VPN now works but it is reaaaaaaaaly slow. I tried copying 8KB over a samba network share and it took over 5 minutes! It's the same for anything else too, like HTTP traffic to my LAN etc (when accessing it from outside through OpenVPN). Funny enough it seems that forwarding of traffic to my home internet seems to work a little better, but access to my home LAN is just terribly slow.
The route I am using in dd-wrt is: 10.8.0.0 (destination LAN NET) 255.255.255.0 (subnet mask) 192.168.1.3 (gateway) LAN & WLAN (interface). 10.8.0.0 is my VPN subnet, 192.168.1.3 is the IP of the PC running OpenVPN and 192.168.1.1 is the IP of the dd-wrt router. The router is also set up as a dhcp server for my LAN, but that's probably irrelevant.
Pinging also results in timeouts in more than 50% cases. I'm using TUN mode through UDP, just like I always did it. I used Webmin to set it up, following this guide: http://www.frontiernet.net/~beakmyn/vpn ... Guide.html
I used this 2 times before, when my PC was directly connected to the internet, and it worked flawlessly.
This time I basically followed that guide again, but I had to also add the extra route in my dd-wrt at the end to make it work.
But now I have a different setup with a dd-wrt router, and my PC is connected to that router only with 1 cable. OpenVPN is on the PC not on the router, but the internet connection for that PC goes through the router and the router does NAT.
I added a route in dd-wrt and the VPN now works but it is reaaaaaaaaly slow. I tried copying 8KB over a samba network share and it took over 5 minutes! It's the same for anything else too, like HTTP traffic to my LAN etc (when accessing it from outside through OpenVPN). Funny enough it seems that forwarding of traffic to my home internet seems to work a little better, but access to my home LAN is just terribly slow.
The route I am using in dd-wrt is: 10.8.0.0 (destination LAN NET) 255.255.255.0 (subnet mask) 192.168.1.3 (gateway) LAN & WLAN (interface). 10.8.0.0 is my VPN subnet, 192.168.1.3 is the IP of the PC running OpenVPN and 192.168.1.1 is the IP of the dd-wrt router. The router is also set up as a dhcp server for my LAN, but that's probably irrelevant.
Pinging also results in timeouts in more than 50% cases. I'm using TUN mode through UDP, just like I always did it. I used Webmin to set it up, following this guide: http://www.frontiernet.net/~beakmyn/vpn ... Guide.html
I used this 2 times before, when my PC was directly connected to the internet, and it worked flawlessly.
This time I basically followed that guide again, but I had to also add the extra route in my dd-wrt at the end to make it work.