This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux [2019-08-07 T 22:35] admin [snmp] |
linux [2022-03-28 T 19:07] (current) admin [dig] |
||
---|---|---|---|
Line 1065: | Line 1065: | ||
* -D to list available interfaces | * -D to list available interfaces | ||
* -n does not resolve name servers, useful if in a slow devices | * -n does not resolve name servers, useful if in a slow devices | ||
+ | * -e Shows Mac address | ||
* src [ip] / dst [ip] shows you lines with that source or desitnation ip respectivly. | * src [ip] / dst [ip] shows you lines with that source or desitnation ip respectivly. | ||
* proto [protocal] for types of packages | * proto [protocal] for types of packages | ||
Line 1078: | Line 1079: | ||
sudo tcpdump -i eth0 ether host aa: | sudo tcpdump -i eth0 ether host aa: | ||
This is an excellent page for more options: https:// | This is an excellent page for more options: https:// | ||
+ | ==== dig=== | ||
+ | Use dig to easily lookup what the DNS entry of an ip is. | ||
+ | dig [host] [options] | ||
+ | Some options | ||
+ | * +short to just show the IP address entry | ||
+ | Example to look up what IP google has and what Ip it returns: | ||
+ | User@mend: | ||
+ | 142.251.46.238 | ||
==== SSH ==== | ==== SSH ==== | ||
ssh stands for secure shell. It is a service that allows for you to remote access a terminal using encryption. It is very universally standard and exists on most linux systems or can be easly installed | ssh stands for secure shell. It is a service that allows for you to remote access a terminal using encryption. It is very universally standard and exists on most linux systems or can be easly installed | ||
Line 1265: | Line 1274: | ||
* $wget -qO- http:// | * $wget -qO- http:// | ||
This will call up a website that can display your ip in a simple way. The operators for wget are just quiet and save to a standard file which is then echoed with the echo command. | This will call up a website that can display your ip in a simple way. The operators for wget are just quiet and save to a standard file which is then echoed with the echo command. | ||
- | ====snmp==== | + | ====SNMP==== |
Simple Network Management Protocol allows you to get information from network devices. You can also use it to control, but this is not the typical way it is used. | Simple Network Management Protocol allows you to get information from network devices. You can also use it to control, but this is not the typical way it is used. | ||
* OID is the address of a specific date point that can be used when querying a network device with SNMP. | * OID is the address of a specific date point that can be used when querying a network device with SNMP. | ||
Line 1277: | Line 1286: | ||
* The package name in ubuntu/ | * The package name in ubuntu/ | ||
* The package name in Centos/RHEL is net-snmp | * The package name in Centos/RHEL is net-snmp | ||
+ | === snmpstatus=== | ||
+ | To get the status of if snmp and if it is running on a device you need to know the IP of the host, the community string, and the version | ||
+ | | ||
+ | For example | ||
+ | | ||
=== snmpwalk and snmpget=== | === snmpwalk and snmpget=== | ||
snmpwalk is a tool to scan for snmp. To install you you just install the package called snmp | snmpwalk is a tool to scan for snmp. To install you you just install the package called snmp | ||
Line 1358: | Line 1372: | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
+ | * https:// | ||
+ | * http:// | ||
==== iperf ==== | ==== iperf ==== | ||
Iperf is a way of transferring bulk benign files to see pure transfer rates. Here is a good tuturial: [[http:// | Iperf is a way of transferring bulk benign files to see pure transfer rates. Here is a good tuturial: [[http:// | ||
Line 1384: | Line 1400: | ||
* -p shows PID | * -p shows PID | ||
* -n shows numerical addresses instead of trying to determine symbolic host, port, or user names | * -n shows numerical addresses instead of trying to determine symbolic host, port, or user names | ||
+ | ====SSL Cert==== | ||
+ | A secure socket layer certificate is used to authenticate a website with various authorities that give out certificates. It allows for a url to operate has https within a browser or any service that accesses that domain. This is not really a network tool, but rather a security tool for domains within a network. | ||
+ | ===Cert basics and location=== | ||
+ | A certificate is a file with an encryption key. It uses public key cryptography between the web client, like your browser, and the server, or the website you are trying to access with https. The file is located in a few different locations depending on what system you have. Ultimately though you will be defining where the file is with the httpd.conf file. More about that below | ||
+ | ===Obtain cert=== | ||
+ | First you must obtain the cert. Certs can be found with some hosting providers like godadd, or with a free service like https:// | ||
+ | ===conf file=== | ||
+ | There is an ssl.conf file but that just has to do with paramiters of how you want ssl to work. You will need to locate the httpd.conf file and make sure that your cert files are pointed to the right locations. here is an example / | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | SSLCertificateChainFile / | ||