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

Snmpd on the gns3 vm for gns3 version 3 please #2095

Closed
josephmhiggins opened this issue Aug 14, 2022 · 10 comments
Closed

Snmpd on the gns3 vm for gns3 version 3 please #2095

josephmhiggins opened this issue Aug 14, 2022 · 10 comments
Milestone

Comments

@josephmhiggins
Copy link

josephmhiggins commented Aug 14, 2022

I messed up this post by not following the "suggestion template. Sorry.

it up. This should be a suggestion:

/etc/rc.d/init.d/snmpd status
bash: /etc/rc.d/init.d/snmpd: No such file or directory
service snmpd status
Unit snmpd.service could not be found.

re: #2092

I would need "snmpd" on the gns3 vm to handle situations like 2092.
I do have a "GNS3-VM-exp" (i.e. exp is for experimental), but I am not putting snmpd on my main gns3 vm.

As far as putting snmpd on the main GNS3 VM that is distributed to thousands of gns3 users is concerned, that is not my call.

But, if snmpd is running on the main gns3 vm, then I should be able to obliterate 2092 in an effortless fashion.

So, as far as OID value: 1.3.6.1.2.1.2.2.1.1, I might need some public access to whatever ports a node is running on. When i mean public access, it has to be an official documented way to access what a port a node is running in, as opposed to me going in and reverse engineering something.

Edit: Hrmmmm...I will go with GNS3-VM-snmpd for now. Yeah. That's the way for me to go.

@josephmhiggins
Copy link
Author

Dragging in two gns3-endhost I get

sudo netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:45085 0.0.0.0:* LISTEN 59472/ubridge
tcp 0 0 0.0.0.0:44519 0.0.0.0:* LISTEN 59719/ubridge

Well, maybe such a public function exists to get....
oh...i will check the docs on that:
https://gns3-server.readthedocs.io/en/stable/endpoints.html

@josephmhiggins
Copy link
Author

No, it is too much of a security risk to add snmpd to 1000s of gns3 vm's.

Yes, the port number a node on an interface uses is not accessible in the gns3 api documentation for nodes or links.
I would need a 'get' function in the gns3 code to get me the port number an interface is using.

@josephmhiggins
Copy link
Author

Hold.

let me put 2 ubuntu devices (ubuntu-ssh-snmpd) in a gns3 project on a gns3 vm in vmware workstation on windows 10 and reverse engineer the network to get the tcp ports. i will just manually get the tcp port numbers.

then let me see if i can get powershell to inspect the devices remotely and get the input and output rate with something like
new-object -com
i have never done it before but i think i can figure out how to do it in under 8 hours.

@josephmhiggins
Copy link
Author

Oh, I will use new-object -comobject as a backup.
I will grab the snmp data directly via the gns3 cloud and ssh.......well I hope so anyway.

@grossmj
Copy link
Member

grossmj commented Aug 15, 2022

Ok, let me know if you need snmpd on the GNS3 VM, I guess I could just add it...

@josephmhiggins
Copy link
Author

Some gns3 users get upset in the community over security. They might get upset. gns3-vm-snmpd is perfectly fine for me.

@josephmhiggins
Copy link
Author

and the gns3 vm console is expensive real estate so i would not add it into the gns3 vm console menu.

@spikefishjohn
Copy link
Contributor

Ok, let me know if you need snmpd on the GNS3 VM, I guess I could just add it...

Could always add it but not start it.

I don't run the VM but couldn't you always just add it via apt as well assuming the GNS3 VM has internet access?

@josephmhiggins
Copy link
Author

oh yeah, i forgot that some people do not have access with their gns3 vm.
if you think it will not hurt anything to add snmp and not start it, then that would be safe.
i have internet access.

@grossmj grossmj added this to the 3.0 milestone Aug 24, 2022
grossmj added a commit to GNS3/gns3-vm that referenced this issue Aug 28, 2022
@grossmj
Copy link
Member

grossmj commented Aug 28, 2022

if you think it will not hurt anything to add snmp and not start it, then that would be safe.

Done :)

@grossmj grossmj closed this as completed Aug 28, 2022
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