Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kali gns3 uBridge is not available #2424

Closed
Cx330-dev opened this issue Oct 14, 2024 · 5 comments
Closed

Kali gns3 uBridge is not available #2424

Cx330-dev opened this issue Oct 14, 2024 · 5 comments

Comments

@Cx330-dev
Copy link

Cx330-dev commented Oct 14, 2024

My OS version: Kali-Rolling 2024.3
GNS3 version: 2.2.49

I tried to pull the cable for the c3600 device, and gns3-gui returned an error message:
Error while creating link: uBridge is not available, path doesn't exist, or you just installed GNS3 and need to restart your user session to refresh user permissions.

I suspected that there was a problem with gns3-server, so I opened another command line and ran gns3-server. It stopped after running some python script commands.

┌──(cx330㉿kali)-[~]
└─$ gns3server 
2024-10-14 10:42:19 INFO run.py:218 GNS3 server version 2.2.49
2024-10-14 10:42:19 INFO run.py:220 Copyright (c) 2007-2024 GNS3 Technologies Inc.
2024-10-14 10:42:19 INFO run.py:223 Config file /home/cx330/.config/GNS3/2.2/gns3_server.conf loaded
2024-10-14 10:42:19 INFO run.py:236 HTTP authentication is enabled with username 'admin'
2024-10-14 10:42:19 INFO run.py:242 Running with Python 3.12.6 and has PID 60539
2024-10-14 10:42:19 INFO run.py:248 Using system certificate store for SSL connections
2024-10-14 10:42:19 INFO run.py:78 Current locale is zh_CN.UTF-8
2024-10-14 10:42:19 INFO web_server.py:338 Starting server on localhost:3080
2024-10-14 10:42:19 INFO __init__.py:70 Load controller configuration file /home/cx330/.config/GNS3/2.2/gns3_controller.conf
2024-10-14 10:42:19 INFO __init__.py:74 Controller is starting
2024-10-14 10:42:19 INFO __init__.py:320 Installing base configs in '/home/cx330/GNS3/configs'
2024-10-14 10:42:19 INFO __init__.py:333 Installing built-in disks in '/home/cx330/GNS3/images/QEMU'
2024-10-14 10:42:19 INFO __init__.py:255 Comparing controller version 2.2.49 with config version 2.2.49
2024-10-14 10:42:19 INFO __init__.py:263 Built-in appliances are installed in '/home/cx330/.local/share/GNS3/appliances'
2024-10-14 10:42:19 INFO compute.py:64 Create compute local
2024-10-14 10:42:19 INFO compute.py:364 Connecting to compute 'local'
2024-10-14 10:42:19 CRITICAL web_server.py:88 Could not start the server: [Errno 98] error while attempting to bind on address ('127.0.0.1', 3080): [errno 98] address already in use

I suspected that port 3080 might be occupied, which caused gns3-server to not connect properly. So I checked the usage of port 3080 through lsof, which showed that port 3080 was being used by gns3-server.

┌──(cx330㉿kali)-[~]
└─$ lsof -i:3080
COMMAND     PID  USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
gns3      57260 cx330   12u  IPv6 2919164      0t0  TCP localhost:37660->localhost:3080 (ESTABLISHED)
gns3      57260 cx330  133u  IPv6 2897025      0t0  TCP localhost:58570->localhost:3080 (ESTABLISHED)
gns3serve 57381 cx330    7u  IPv4 2897008      0t0  TCP localhost:3080 (LISTEN)
gns3serve 57381 cx330    8u  IPv6 2897009      0t0  TCP localhost:3080 (LISTEN)
gns3serve 57381 cx330    9u  IPv4 2897020      0t0  TCP localhost:55664->localhost:3080 (ESTABLISHED)
gns3serve 57381 cx330   10u  IPv6 2918033      0t0  TCP localhost:3080->localhost:37660 (ESTABLISHED)
gns3serve 57381 cx330   11u  IPv6 2895125      0t0  TCP localhost:3080->localhost:58570 (ESTABLISHED)
gns3serve 57381 cx330   19u  IPv4 2897023      0t0  TCP localhost:3080->localhost:55664 (ESTABLISHED)

I searched and found that someone had raised this issue in gns 2.1, but I checked the issue he raised and found that his situation did not match mine. Here is the link to his issue for your reference. #1247

@grossmj
Copy link
Member

grossmj commented Oct 14, 2024

uBridge is an additional software that you must install.

Also, how have you installed GNS3? Do you run the GNS3 server as a service already?

Thanks.

@Cx330-dev
Copy link
Author

Cx330-dev commented Oct 15, 2024

I installed it according to this official tutorial , I started it by running gns3 directly in the terminal, and according to the feedback from lsof, I should have enabled the gns3server program.

(The following operation is an accidental touch, please ignore it)

@Cx330-dev Cx330-dev reopened this Oct 15, 2024
@Cx330-dev
Copy link
Author

(The above operation is an error, please don't need to ignore it)

I try to start separately, start the GNS3Server in the terminal, and then start the GNS3-GUI. When the new path is built, the path is not allowed, but my file path/home/CX330/desktop/2 is a legal path. At the default path, he can start normally, but still unable to pull the line, report an error
Error while creating link: uBridge is not available, path doesn't exist, or you just installed GNS3 and need to restart your user session to refresh user permissions.

@smart2128
Copy link

You can find something useful here

@grossmj
Copy link
Member

grossmj commented Nov 25, 2024

@Cx330-dev we don't official package uBridge (and GNS3) for Kali Linux so the best is to follow the steps listed in the document provided by @smart2128 to manually install it.

@grossmj grossmj closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants