GNS3 setcap and ubridge. GNS3 unable to execute setcap command

Hi all!

I would like to ask about your help with the ubridge package.

I’m unable to run command:

sudo setcap cap_net_admin,cap_net_raw=ep /run/current-system/sw/bin/ubridge

and it result in this output:

Failed to set capabilities on file `/run/current-system/sw/bin/ubridge’ (Invalid argument)

As this command pop up after starting the gns3. (GNS3 is a network emulator)
I’m not sure how to proceed with the investigation.
I had found in documentation that ubridge requires from user to be in the ubridge group
however, adding the user to this group in configuration.nix extraGroups do nothing.
(And even I’m not sure if it’s related…)

Is there a possibility that i need to create a sole config for this command / setting?

1 Like

Hi,

I have used below security wrappers configuration, and then edited the file ~/.config/GNS3/2.2/gns3_server.conf

The ubridge path needs to be changed to ubridge_path = /run/wrappers/bin/ubridge

security.wrappers.ubridge = {
source = “/run/current-system/sw/bin/ubridge”;
capabilities = “cap_net_admin,cap_net_raw=ep”;
owner = “root”;
group = “ubridge”;
permissions = “u+rx,g+x”;
};

Now I am able to run GNS3

1 Like