Networking Flashcards
What is the command to know the ip addresses of a host?
host [hostname]
What is the most recent command to know the network addresses of the machine?
ip a
What is the command to have my public ip address?
curl ifconfig.me
What is the command to enable the firewall?
sudo ufw enable
What is the command to check the status of the firewall?
sudo ufw status
What is the command to allow a protocol with the firewall?
sudo ufw allow [protocol name]
What is the command to deny access for a protocol?
sudo ufw deny [protocol name]
What is the command to delete a rule of the firewall?
sudo ufw delete deny [protocol name]
What is the command to reset the firewall to its default state?
sudo ufw reset