worldwidewes
New Around Here
Hey All!
This forum is awesome! I've reached my breaking point though and need help after scouring the forum for 2 days. I have a VPS setup with my own OpenVPN server and devices can connect to it fine. However, my goal is to have my spare Asus Router run both OpenVPN Client AND Server so that I can access my home network from WAN. I have t-mobile home internet, so port forwarding is not available directly, so I'm trying to connect remotely in this order: WAN > VPS public IP > port forward to 173.0.0.2 ovpn local IP of Asus.
I have gotten this to work via Torguard VPN servers that allow port forwarding, but since the speed can drop in peak hours I want to replicate that with my own VPS.
On Asus router:
- VPN server is listening on port 12108 - WORKING
- VPN client connects to VPS on port 1194 - WORKING
On remote clients
- connect to ASUS server ovpn via {{public ip}}:12108 - NOT WORKING
On VPS:
- Running Ubuntu 20 with OpenVPN server
- Gives static IP 173.0.0.2 to Asus router - WORKING
Remote <> VPS directly works fine, just can't figure how to reach the Asus router from WAN via the VPS.
I've tried many many iptables commands but no avail. This is my last attempt and I think it's the closest one so far:
sudo iptables -t nat -A PREROUTING -p udp --dport 12108 -j DNAT --to-destination 173.0.0.2:12108
Please help! Thanks in advance.
This forum is awesome! I've reached my breaking point though and need help after scouring the forum for 2 days. I have a VPS setup with my own OpenVPN server and devices can connect to it fine. However, my goal is to have my spare Asus Router run both OpenVPN Client AND Server so that I can access my home network from WAN. I have t-mobile home internet, so port forwarding is not available directly, so I'm trying to connect remotely in this order: WAN > VPS public IP > port forward to 173.0.0.2 ovpn local IP of Asus.
I have gotten this to work via Torguard VPN servers that allow port forwarding, but since the speed can drop in peak hours I want to replicate that with my own VPS.
On Asus router:
- VPN server is listening on port 12108 - WORKING
- VPN client connects to VPS on port 1194 - WORKING
On remote clients
- connect to ASUS server ovpn via {{public ip}}:12108 - NOT WORKING
On VPS:
- Running Ubuntu 20 with OpenVPN server
- Gives static IP 173.0.0.2 to Asus router - WORKING
Remote <> VPS directly works fine, just can't figure how to reach the Asus router from WAN via the VPS.
I've tried many many iptables commands but no avail. This is my last attempt and I think it's the closest one so far:
sudo iptables -t nat -A PREROUTING -p udp --dport 12108 -j DNAT --to-destination 173.0.0.2:12108
Please help! Thanks in advance.