ifix
This commit is contained in:
parent
b817e11e0b
commit
a40e057e92
13
modules/module-open-ports.sh
Normal file
13
modules/module-open-ports.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
NFT='/usr/bin/nft'
|
||||
declare -A portConfig
|
||||
portConfig["https"]="443"
|
||||
portConfig["http"]="80"
|
||||
portConfig["AdGuard-3"]="853"
|
||||
#portConfig["WireGuard"]="25"
|
||||
|
||||
portOpenParser() {
|
||||
$NFT insert rule ip filter input position 0 tcp dport $1 accept
|
||||
$NFT insert rule ip6 filter input position 0 tcp dport $1 accept
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user