From 964f07132be8b3bf445dcb527a5f89c00a45acfd Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 1 Sep 2016 10:50:48 +0530 Subject: [PATCH] Reordering the syntax to match with the description --- pages/linux/ufw.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/linux/ufw.md b/pages/linux/ufw.md index a0f5bbb3bd..090ef7dced 100644 --- a/pages/linux/ufw.md +++ b/pages/linux/ufw.md @@ -21,7 +21,7 @@ - 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: @@ -29,7 +29,7 @@ - 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: