I have installed nextcloud in a server with TLS. Your installation was successed. In my server, the iptables is enabled and configured, following:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 192.168.2.5 0.0.0.0/0 tcp dpt:2500
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp spt:53
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
These rules allow SSH by the port 2500 (configured in /etc/ssh/sshd_config), the HTTPS, and HTTP. Here is a problem.
When I access to cloud.intec.local (configured with DNS), I cannot request a nextcloud. It displays an error.
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
What I am doing bad?
UPDATED:
If iptables is enabled with those rules, I scan the packages with Wireshark, it displays packages TCP denied. But I don't understand because the iptables denied those package if the packages have the 443 port.
35 10.339162338 192.168.2.5 192.168.2.4 TCP 66 [TCP Keep-Alive] 42070 -> 443 [ACK] Seq=1351 Ack=2591 Win=41088 Len=0 TSval=2575559860 TSecr=657162501
35 10.339162338 192.168.2.4 192.168.2.5 TCP 66 [TCP Keep-Alive] 443 -> 42070 [ACK] Seq=2591 Ack=1352 Win=64128 Len=0 TSval=657172504 TSecr=2575539815
What is it means this packages?