Networking 101
Important/Useful Commands
Display all network interfaces -
ip addr
Display the routing table -
ip route
Display list of all the existing firewall rules -
firewall-cmd --list-all
To add rule to firewall, suppose to allow incoming TCP traffic on port 8285 -
firewall-cmd --permanent --add-port=8285/tcp
Display information about active network connections and the ports that are currently listening -
netstat -tulpn
Specify packet size to send during ping :
ping -s 1300 <ip>
Pipe grep output to vim dash to watch search results in vim file -
grep -Hnri tree | vim -
Scan entire network -
nmap -sn <IP>
Pass flag -V to do service discovery.
Pass -Pn to get OS
Pass -sL to do quick host name scanning on a network.
Try --script malware or --script vuln
Pass -A for everything
Last updated