gns3-gui
gns3-gui copied to clipboard
Cannot use a remote server with https
Describe the bug A simple remote gns3 server fails to be contacted by gns3-gui using https. No such issue with http. No venv is used for neither the gui nor the server.
GNS3 version and operating system (please complete the following information):
- Ubuntu 21.10
- GNS3 version 2.2.31 (from pip3)
- Any use of the GNS3 VM or remote server (ESXi, bare metal etc.): no
To Reproduce Steps to reproduce the behavior: 0. on the remote: set https in gns3_server.conf as "protocol"
- on the remote: /usr/local/bin/gns3server --log /var/log/gns3/gns3.log --daemon
- launch gns3 locally
- Edit Preferences -> Server -> Remote Servers -> Add -> https - 192.168.1.214 - 3080
- Edit Preferences -> Server -> Remote Servers -> Add -> enable authentication - User: <remote_gns3_user>
- Edit Preferences -> Server -> Remote Servers -> Add -> enable authentication - Password: <remote_gns3_password>
- Edit Preferences -> Server -> Remote Servers -> Add -> enable authentication -> OK
Locally
nmap -p 3080 192.168.1.214
Starting Nmap 7.80 ( https://nmap.org ) at 2022-04-19 15:29 CEST
Nmap scan report for remote-server (192.168.1.214)
Host is up (0.0029s latency).
PORT STATE SERVICE
3080/tcp open stm_pproc
Remotely:
netstat -tunpevaW | grep 3080
tcp 0 0 192.168.1.214:3080 0.0.0.0:* LISTEN 0 2209851 316303/python3.9
tcp 0 0 192.168.1.214:56202 192.168.1.214:3080 ESTABLISHED 0 2209855 316303/python3.9
tcp 0 0 192.168.1.214:3080 192.168.1.214:56202 ESTABLISHED 0 2209856 316303/python3.9
Yet, the remote server icon on the right remains grey (instead of green) and it is not possible to define a new Qemu VM on that remote server.
When using http, the icon remains also grey but it is possible to define new VMs on the remote server. Their icon appear as green below the server grey icon (when started).
After restarting gns3 gui, I can see now that the http (not https) server icon has turned green.