问题原文
原帖链接 · YeezySec · CC BY-SA 4.0
I can only connect to my Apache server using devices on the local network and not from the outside.
I think that this is a port forwarding issue, as I'm getting a Connection Timed Out for the port 8080 (I changed the default port in ports.conf) via canyouseeme.org.
I believe that I modified my port forwarding rules correctly by having the correct IP address and 8080 as both the external and internal start port so I don't think that this is the cause of the issue. Additionally, I checked that my Apache server was listening on port 8080 via the netstat command and disabled the firewall with "sudo ufw disable".
Currently, the only workaround is to set up a default DMZ server with the same IP as my apache server, but I don't want to rely on this. Any tips? Perhaps this may have to do with the NAT configurations on my Netgear Nighthawk R7000P router?
Screenshot of port forwarding configuration:
Screenshot of tcpdump to see if outside packets are reaching the server: I am trying to reach my server using my mobile device's data plan which is designated by ue.tmodns.net.20432.
已采纳解答
原帖链接 · davidgo · CC BY-SA 4.0
"Currently, the only workaround is to set up a default DMZ server with the same IP as my apache server" - This strongly implies that the issue is indeed with port forwarding, and definately exists on your router. - if a DMZ works it pretty much rules out a config issue on any device other then your router.
I note you havnt mentioned protocol - you should check you should check you are allowing TCP through on the correct port.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
