How to configure SSL VPN on OPENVPN
If you want to configure openvpn on SSL port below are the example for server and client side.
Server side configuration
local 192.168.1.250 port 443 proto tcp dev tun ca ca.crt cert server.crt key server.key dh dh.pem auth SHA512 tls-crypt tc.key topology subnet server 10.8.0.0 255.255.255.0 #server-ipv6 fddd:1194:1194:1194::/64 #push "redirect-gateway def1 ipv6 bypass-dhcp" ## To avoid all internet traffic except VPN## push "route 192.168.29.0 255.255.255.0" ## To advertise Network ## ifconfig-pool-persist ipp.txt push "dhcp-option DNS 192.168.29.254" #push "dhcp-option DNS 126.96.36.199" keepalive 10 120 cipher AES-256-CBC user nobody duplicate-cn ##To use single certificate for multiple user# group nobody persist-key persist-tun verb 3 crl-verify crl.pem
Client Side Configuration
client dev tun proto tcp remote 188.8.131.52 443 resolv-retry infinite nobind persist-key persist-tun remote-cert-tls server auth SHA512 cipher AES-256-CBC ignore-unknown-option block-outside-dns block-outside-dns verb 3
It is working config for port 443 with all internet traffic passing through Local ISP and only VPN Traffic is passing through VPN Tunnel.