Networking Flashcards

1
Q

What is the command to know the ip addresses of a host?

A

host [hostname]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the most recent command to know the network addresses of the machine?

A

ip a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the command to have my public ip address?

A

curl ifconfig.me

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the command to enable the firewall?

A

sudo ufw enable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the command to check the status of the firewall?

A

sudo ufw status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the command to allow a protocol with the firewall?

A

sudo ufw allow [protocol name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the command to deny access for a protocol?

A

sudo ufw deny [protocol name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the command to delete a rule of the firewall?

A

sudo ufw delete deny [protocol name]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the command to reset the firewall to its default state?

A

sudo ufw reset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly