Openvpn ports to forward8/11/2023 This setup also works via a VPN tunnel if needed. Iptables -t nat -A POSTROUTING -j MASQUERADE Iptables -t nat -A PREROUTING -p tcp -dport 3000 -j DNAT -to-destination Windows10-ip:3000 Iptables -t nat -A PREROUTING -p tcp -dport 8080 -j DNAT -to-destination Windows10-ip:8080 Iptables -t nat -A PREROUTING -p tcp -dport 80 -j DNAT -to-destination Windows10-ip:80 If you need other data streams that are not http/s to work I would suggest using iptables like mentioned in the example here: ĭepending on your setup you can easily modify the examples given in that link to suit your setup: iptables -t nat -A PREROUTING -p tcp -dport 443 -j DNAT -to-destination Windows10-ip:443 If all your ports are serving http/s content, then setting up nginx or a different reverse proxy would probably be the best way to go. Please, if anyone can forward all ports or those specific ports from Linux to Windows, using any method please let me know how I can do it. There is a Topics on OpenVPN forum that try to do this but is not comprehensive enough. I try using C2S with Bitverse SSH to forward port, it only works locally. I have set up OpenVPN on Debian with the script from here and it's successful and my Windows 10 connects with the OpenVPN. I can port forward or Tunnel all the requests made to the Debian IP TCP port (80, 443, 3000, 8080) to the Windows 10 Port through OpenVPN, or if it can be done with SSH. I don't want to give away my Windows 10 IP address but I want people to access the website on Xampp using the Debian 10 IP. Windows 10 is full of programs and has Xampp running on it and I can connect to Debian 10 from Windows 10 with both OpenVPN and SSH. Debian 10 is a clean new server from Azure with only OpenVPN installed and set up using the script from this Repository.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |