大网数据广告活动
网站运营与故障问答

Apache not accessible from outside local network

· 52CE 我爱测

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…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2020-11-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。