I have an OpenVPN server running in the cloud set to listen on 1194/tcp with a UFW addition that forwards 443 to 1194 (So I can use my VPN in places with restrictive firewalls.)
When I try and open a https connect to google.com I get the below on my OpenVPN server's log and the page pretty much dies.
WARNING: Bad encapsulated packet length from peer ([[Peer number]]), which must be > 0 and <= 1575 -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]
Normal HTTP traffic and any other types of traffic I've tested seems to work fine except HTTPS.
I followed this guide https://www.digitalocean.com/community/tutorials/how-to-set-up-an-openvpn-server-on-ubuntu-16-04 almost fully to setup everything.
For forwarding I have a few lines added to UFW before.rules
...
*nat
:PREROUTING ACCEPT [0:0]
-A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 1194
COMMIT
Any help is appreciated.
Edit: I shifted it off port 443 and it started working again. It seems you can't have a redirect if you're wanting to use HTTPS. I'll just have to find another open port.