arfett wrote:Your understanding of all of this is entirely incorrect.
The port forwarding for all intents and purposes gives your Linux box the public IP address, for that port at least, and Apache is NOT responding with a private IP back to the host on the internet. I am currently connected to two different pages hosted on my home machine using Apache and port forwarding on my OpenWrt router so I can assure you I know what I'm talking about. HTTPS and HTTP behave exactly the same.
Can you please answer the questions I asked?
1. Can you please post your port forwarding configuration? It doesn't matter if your configuration is done from CLI or LuCI or if it's "fancy" or not... we can tell you right away if it was configured properly or not if you just show us.
2. Are you testing the port forwarding from a different public IP on the internet or from within your LAN? It will NOT work from within your LAN.
3. Are you on a "consumer-grade" internet connection? If so then port 80 and 443 are typically blocked and you will probably have to use a different port.
If you don't answer these questions them I'm afraid there's not a single person on this forum that will be able to help you.
OK, great. So you have done it, you can help. Here comes the answers...
1. In Luci, Network -> Firewall -> Port Forwardings:
copy paste from luci interface:
htpc ssl
IPv4-TCP
From any host in wan
Via any router IP at port 443
IP 192.168.10.2, port 443 in lan
and this configuration is made the same way for SSH. Only difference in creating it, was that I did not include UDP. SSH just works.
2. I'm testing from WAN, as in, with my smart phone using the 3G connection. Definately different IP. Not via WLAN.
3. I have no such restrictions on my network connection. I have used network scanners found via google, that scan my ports. Even one, which tests the https server. That port is open.
So, this must be just my failure to configure the apache correctly. And / or create self signed certificate correctly. Can you provide me with copy of your apache config? Method of creating certificate, with all inputs?
Thanks