Background: openvpn server is embedded on Asus router. Websites are hosted on intranet and on server.
Forwarding rules active from public ip to server hosting website. openvpn client 3.9, unsure how to
check openvpn server version on router.
The issue openvpn unable to connect to https://public_ip/
OpenVpn server is built into my asus router: the vpn client connects and gives access to the internet and local network. However will NOT connect to any https sites having the same ip the client uses
to connect.
OpenVPN client:
VPN private ip 10.8.0.6
server Public IP 24.69.xx.xxx << same ip the https sites use
Port 45585/UDP
What I've tried:
1)push "redirect-gateway def1"
2)iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth1 -j MASQUERADE << added to ufw before.rules
3)push "dhcp-option DNS 10.8.0.1"
4)enabled static route
5)ufw rules:
80 ALLOW 192.168.50.0/24 << trying to lock down to internal traffic only
443 ALLOW 192.168.50.0/24 << as above
45585/tcp ALLOW 192.168.50.0/24 # Allow openvpn
45585/udp ALLOW 192.168.50.0/24 # Allow openvpn
Anywhere ALLOW 10.8.0.0/24 # Openvpn
443 ALLOW 10.8.0.0/24 # Openvpn-https
I can ping 8.8.8.8 but NOT the public_ip/ (24.69.xx.xxx)
if ufw is disabled openvpn client connects to https://public_ip/. But I can't figure out
where the issue is in ufw. all help is welcome.