Open 211232637 opened 3 weeks ago
gns3@gns3vm:~$ apt show gns3-server
Package: gns3-server
Version: 2.2.50~focal3
Priority: extra
Section: net
Maintainer: GNS3 team <developers@gns3.net>
Bugs: https://github.com/GNS3/gns3-server/issues
Installed-Size: 50.0 MB
Depends: python3, vpcs, ubridge (>= 0.9.14), qemu-system-x86, qemu-kvm, qemu-utils, mtools, cpulimit, libvirt-daemon-system, debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.14), libgcc-s1 (>= 4.2)
Recommends: dynamips, x11vnc, xvfb
Enhances: gns3-iou
Download-Size: 8780 kB
APT-Sources: http://ppa.launchpad.net/gns3/ppa/ubuntu focal/main amd64 Packages
Description: GNS3 server
GNS3 uses websockets to get events/notifications from the server. Please try the following NGINX Configuration.
server {
listen 60000 default_server;
listen [::]:60000 default_server;
server_name 10.10.10.111;
location / {
proxy_pass http://192.168.122.156:80;
include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
I’m encountering an issue with my NGINX reverse proxy setup on a GNS3 VM. The proxy works correctly when tested internally within the VM, but attempts to access it externally from my laptop result in a connection failure. I’ve verified that no additional firewalls are active in my topology. Below are the details of my configuration and the troubleshooting steps I’ve performed so far.
Setup Details:
Environment: • Host Machine: MacBook (macOS) • Virtualization: GNS3 VM
GNS3 GUI Details:
NGINX Configuration:
Ubuntu Server (Inside GNS3 via NAT 192.168.122.1) : • IP Address: 192.168.122.156 • Service: NGINX serving on port 80
Issue Description:
• Internal Testing (Within GNS3 VM): • Executing the following curl command successfully returns a 200 OK response:
Response:
• External Testing (From Laptop): • Attempting to access the proxy using the following curl command fails:
Error:
Diagnostics Performed:
Output:
Output:
Output:
Note: Port 60000 is not listed as open.
Output:
• iptables:
Output:
• Note: There are no active firewall rules blocking port 60000, and ufw is inactive.
Additional Information:
• According to netstat, NGINX is listening on port 60000 for both IPv4 (0.0.0.0:60000) and IPv6 (:::60000). • However, nmap does not list port 60000 as open when scanned from within the VM. • There are no other firewalls or security groups active in the current network topology that could be blocking access to port 60000. • The GNS3 VM network settings are correctly configured to allow external access to the specified port.
Questions:
What I’ve Tried:
• Verified that NGINX is running and configured correctly to listen on port 60000. • Confirmed that ufw is inactive and iptables does not block port 60000. • Successfully accessed the internal server via curl within the VM. • Confirmed that the port is listening using netstat. • Attempted to scan ports with nmap, which did not show port 60000 as open. • Reviewed the gns3-gui package details to ensure there are no related conflicts or dependencies affecting network configurations.
Looking For:
Advice on potential misconfigurations or overlooked settings that could prevent external access to the NGINX reverse proxy on a custom port within a GNS3 VM environment. Guidance on additional troubleshooting steps or configurations to resolve this connectivity issue would be highly appreciated.
Thank you in advance for your assistance!