Update README.md
This commit is contained in:
parent
2f742f9929
commit
1e2d97598f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user