So… I keep getting “Challenge failed for domain..” in the initial setup validation of Letsecrypt and I suspect I’m messing up with the port-forwarding somewhere along my network.
-Following SpaceInvaderOnes’ guide on Letsencrypt I have http pointing to 180 and https to 1443.
-I have an “obligatory” modem provided by my ISP (Technicolor TG789vac v2) which does not allow/provide an option to switch to bridge mode due to some kind of conflict with VoIP. My port settings are visible in image 1.
-I have a Mikrotik hEX PoE Routerboard with port settings visible in image 2, or as follows:
According to picture1 Technicolor already performs port change for HTTP and HTTPS and mikrotik gets hit with requests to port 180 and 1433 while current DST-NAT config on mikrotik expects them to arrive at standard ports…
Changed settings as shown in the image, letsencrypt still comes up with:
Challenge failed for domain .myserver.com
Type: Unauthorized
“To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.” Checked.
When trying to access nginx from outside the network (i.e. nextcloud.myserver.com) a page comes up along the lines of “this page is under construction”.
Also, when attempting to port check ports 80, 180, 443, 1443, the connection is refused on 80/443 and timed out on 180/1443.
Of course you must first configure your nginx server so it correctly handles the name-based virtual hosting (i.e. you see the correct page when you access your site).
The screenshot you posted shows only part of NAT setting details. Post output of /ip firewall filter export.
Counters show that some connections did hit those rules, which means RB is getting connection attempts.
Does web service (running behind port 180 on internal server) return whatever expected when connected from a PC on same LAN and using LAN IP address in URL bar?
The screenshot you posted shows only part of NAT setting details. Post output of /ip firewall filter export.
Counters show that some connections did hit those rules, which means RB is getting connection attempts.
Does web service (running behind port 180 on internal server) return whatever expected when connected from a PC on same LAN and using LAN IP address in URL bar?
If I understand correctly, directly entering the LAN IP address of the plex docker service (i.e. http://192.168.88.88:32400) does indeed return the expected web page.
First of all a comment: firewall rules make lots of fuss about preventing some users from accessing any service behind firewall while it allows just anything to all others (remember that implicit ultimate rule in any chain us allow).
Second: I’m lost in what you actually want to achieve … you’re mentioning tcp port 80 on wan, you configured Technicolor to (un-necessarily) perform port translation, your NAT rule on RB tries to translate it again (but it can’t because Technicolor already did it) and when I asked if internal service on destination port works, you mentioned a completely different port (HTTP on port 32400).