From 1e2d97598fa2c9c332fb33e478152335511574f9 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 1 Aug 2021 06:56:25 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fc910b1..c6effd2 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ WantedBy=multi-user.target ``` #!/bin/bash -firewall-cmd --permanent --add-rich-rule="rule family=ipv4 source address=$1 port port=7777-7815 protocol=udp reject" -firewall-cmd --reload +firewall-cmd --add-rich-rule="rule family=ipv4 source address=$1 port port=7777-7815 protocol=udp reject" +firewall-cmd --add-rich-rule="rule family=ipv4 destination address=$1 reject" ``` ### allow.sh @@ -48,9 +48,9 @@ firewall-cmd --reload for IP in $@ do - firewall-cmd --permanent --remove-rich-rule="rule family=ipv4 source address=$IP port port=7777-7815 protocol=udp reject" + firewall-cmd --remove-rich-rule="rule family=ipv4 source address=$IP port port=7777-7815 protocol=udp reject" + firewall-cmd --remove-rich-rule="rule family=ipv4 destination address=$IP reject" done -firewall-cmd --reload ``` ## Contributing