I have (with help from the braniacs on the forum, of course) set up a bridge between my two networks, something I haven't had in a few years. But file copying and everything else is extremely slow and varied. A largeish AVI file on 836 MB copies at maybe 700 KB/s for a few seconds, goes down to 0, stays there for a while, goes back up to maybe 2.4 MB/s and so on. It seems like the full copy will take 1 hour and 45 minutes. I have a 300/300 mbit/s in one end (the one I will be copying from) and a 50/20 mbit/s in the other end (where I will be copying too, so that would be the 50). I know that this is not the most efficient way to copy files, but it's very convenient. If I do the same thing over the VPN with multi-part FTP, it doesn't go any faster. It actually goes slower! 140 Kbps, so 14 hours... :lol:
I know something must be wrong because even a simple thing as using VNC over the VPN is incredibly sluggish, actually unusable if I don't go to a lower color setting. I have to use CloudBerry Remote Assistant to the other side and make sure it doesn't do LAN connection, because then it will be as slow as VNC. That is snappy, without any problems. There are no errors at all in the log files, actually not one log line after the initial connection, so it doesn't seem like it's because it's instable.
## server.ovpn ##
port 11720
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
route 192.168.2.0 255.255.255.0
push "route 192.168.0.0 255.255.255.0"
push "dhcp-option DNS 192.168.0.1"
client-config-dir ccd
keepalive 5 10
compress
max-clients 1
persist-key
persist-tun
topology subnet
status openvpn-status.log
In the ccd directory I have a file named Hytteserver with this in it:
ifconfig-push 10.8.0.4 255.255.255.0
iroute 192.168.2.0 255.255.255.0
## Hytteserver.ovpn ##
client
proto udp
dev tun
remote MY IP 11720
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
ca ca.crt
cert Hytteserver.crt
key Hytteserver.key
compress
verb 3
Is there something here that can explain it? Can it be the compression that should be changed? The client and server are both small business server class motherboards with fast Xeon CPUs and 32 gig RAM running Windows Server 2016 and 2019.
I have no idea if it's related, but it seems like something forces this to tap even if I have set it to tun. Or maybe it's just me not understanding tun and tap at all.
Sun Mar 08 22:19:50 2020 open_tun
Sun Mar 08 22:19:50 2020 TAP-WIN32 device [OpenVPN] opened: \\.\Global\{47B3B53A-D6E5-46FA-B6D5-A25AD74DE773}.tap
Sun Mar 08 22:19:50 2020 TAP-Windows Driver Version 9.24
Sun Mar 08 22:19:50 2020 Set TAP-Windows TUN subnet mode network/local/netmask = 10.8.0.0/10.8.0.4/255.255.255.0 [SUCCEEDED]
Sun Mar 08 22:19:50 2020 Notified TAP-Windows driver to set a DHCP IP/netmask of 10.8.0.4/255.255.255.0 on interface {47B3B53A-D6E5-46FA-B6D5-A25AD74DE773} [DHCP-serv: 10.8.0.254, lease-time: 31536000]