[GH-ISSUE #379] Connect from WAN #285

Closed
opened 2026-02-27 16:38:43 +03:00 by kerem · 6 comments
Owner

Originally created by @srulikuk on GitHub (Aug 4, 2014).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/379

Hi,

I have a fresh setup, followed instructions from https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr, all works great locally, but I cannot access the web interface from WAN side, port 80 is configured correctly on the router, I can't see a virtualhost setup in nginx pointing to the web GUI and apache is not running, however locally its working fine, can anyone please help with some instructions, I am a linux niewbe.
(KVM and webvirtmgr installed on same host)

Thanks
Sruli

Originally created by @srulikuk on GitHub (Aug 4, 2014). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/379 Hi, I have a fresh setup, followed instructions from https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr, all works great locally, but I cannot access the web interface from WAN side, port 80 is configured correctly on the router, I can't see a virtualhost setup in nginx pointing to the web GUI and apache is not running, however locally its working fine, can anyone please help with some instructions, I am a linux niewbe. (KVM and webvirtmgr installed on same host) Thanks Sruli
kerem closed this issue 2026-02-27 16:38:43 +03:00
Author
Owner

@EmbeddedAndroid commented on GitHub (Aug 4, 2014):

When you say "port 80 is configured correctly on the router" does this mean the port forward is working properly? How did you verify this mapping is working correctly? Unless you have a fancy domain rewrite rule or reverse proxy, I would say your port forward is not working correctly.

<!-- gh-comment-id:51125534 --> @EmbeddedAndroid commented on GitHub (Aug 4, 2014): When you say "port 80 is configured correctly on the router" does this mean the port forward is working properly? How did you verify this mapping is working correctly? Unless you have a fancy domain rewrite rule or reverse proxy, I would say your port forward is not working correctly.
Author
Owner

@srulikuk commented on GitHub (Aug 4, 2014):

I have a regular NAT port forward which forwards incoming WAN port 80 traffic to local machine. the domain rewrite you are referring to should be in nginx?

<!-- gh-comment-id:51125893 --> @srulikuk commented on GitHub (Aug 4, 2014): I have a regular NAT port forward which forwards incoming WAN port 80 traffic to local machine. the domain rewrite you are referring to should be in nginx?
Author
Owner

@EmbeddedAndroid commented on GitHub (Aug 4, 2014):

Are you trying these requests from an external connection, I.E. not your local LAN. Do you have NAT reflection enabled?

I would use tcpdump on the webvirtmgr host and verify you are seeing WAN traffic.

<!-- gh-comment-id:51126395 --> @EmbeddedAndroid commented on GitHub (Aug 4, 2014): Are you trying these requests from an external connection, I.E. not your local LAN. Do you have NAT reflection enabled? I would use tcpdump on the webvirtmgr host and verify you are seeing WAN traffic.
Author
Owner

@srulikuk commented on GitHub (Aug 4, 2014):

Thanks for your help, from LAN it works fine, only when I try from WAN it doesn't work, SSH from WAN does work, it its the same rule on the router I use for SSH and port 80.
with netstat i see 0.0.0.0:80 which I understand means its listening for port 80 from external network.

<!-- gh-comment-id:51127604 --> @srulikuk commented on GitHub (Aug 4, 2014): Thanks for your help, from LAN it works fine, only when I try from WAN it doesn't work, SSH from WAN does work, it its the same rule on the router I use for SSH and port 80. with netstat i see 0.0.0.0:80 which I understand means its listening for port 80 from external network.
Author
Owner

@srulikuk commented on GitHub (Aug 4, 2014):

Just ran a tcpdump, indeed I can't see any WAN traffic for http (I do see for SSH) what am I doing wrong? I doubt its my routers NAT setup as I have a different server I use for testing and when I turn that on and switch the NAT rules to that LAN address it works well.

<!-- gh-comment-id:51132546 --> @srulikuk commented on GitHub (Aug 4, 2014): Just ran a tcpdump, indeed I can't see any WAN traffic for http (I do see for SSH) what am I doing wrong? I doubt its my routers NAT setup as I have a different server I use for testing and when I turn that on and switch the NAT rules to that LAN address it works well.
Author
Owner

@srulikuk commented on GitHub (Aug 6, 2014):

Turns out it was a bug in my router, i setup another few test servers and could not get http access on any of them from outside when using the same forwarding rules on router to different internal IPs, it only worked on 1 server which it has been working on for a long time, I made a factory reset on the router configured the same rules and all works! must have been some cache bug on the router.
Issue can be closed now, thanks for trying to help

<!-- gh-comment-id:51296166 --> @srulikuk commented on GitHub (Aug 6, 2014): Turns out it was a bug in my router, i setup another few test servers and could not get http access on any of them from outside when using the same forwarding rules on router to different internal IPs, it only worked on 1 server which it has been working on for a long time, I made a factory reset on the router configured the same rules and all works! must have been some cache bug on the router. Issue can be closed now, thanks for trying to help
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#285
No description provided.