1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-22 19:04:09 +02:00

Reordering the syntax to match with the description

This commit is contained in:
Agniva De Sarker 2016-09-01 10:50:48 +05:30
parent 7506047a39
commit 964f07132b

View file

@ -21,7 +21,7 @@
- Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22: - Allow only TCP traffic from 192.168.0.4 to any address on this host, on port 22:
`ufw allow from {{192.168.0.4}} to {{any}} port {{22}} proto {{tcp}}` `ufw allow proto {{tcp}} from {{192.168.0.4}} to {{any}} port {{22}}`
- Deny traffic on port 80 on this host: - Deny traffic on port 80 on this host:
@ -29,7 +29,7 @@
- Deny all UDP traffic to port 22: - Deny all UDP traffic to port 22:
`ufw deny from {{any}} to {{any}} port {{22}} proto {{udp}}` `ufw deny proto {{udp}} from {{any}} to {{any}} port {{22}}`
- Remove a particular rule. The rule number can be retrieved from the `ufw status numbered` command: - Remove a particular rule. The rule number can be retrieved from the `ufw status numbered` command: