Update README.md

This commit is contained in:
GenZmeY 2021-08-01 06:56:25 +03:00 committed by GitHub
parent 2f742f9929
commit 1e2d97598f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,8 +38,8 @@ WantedBy=multi-user.target
``` ```
#!/bin/bash #!/bin/bash
firewall-cmd --permanent --add-rich-rule="rule family=ipv4 source address=$1 port port=7777-7815 protocol=udp reject" firewall-cmd --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 destination address=$1 reject"
``` ```
### allow.sh ### allow.sh
@ -48,9 +48,9 @@ firewall-cmd --reload
for IP in $@ for IP in $@
do 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 done
firewall-cmd --reload
``` ```
## Contributing ## Contributing