Spelling fix: routeing --> routing
This commit is contained in:
parent
78823d762e
commit
69f01ffcc8
|
@ -8,8 +8,8 @@ NFT=$(which nft) || {
|
|||
TABLE="filter"
|
||||
NAT_TABLE="filter"
|
||||
CHAIN="miniupnpd"
|
||||
PREROUTEING_CHAIN="prerouting_miniupnpd"
|
||||
POSTROUTEING_CHAIN="postrouting_miniupnpd"
|
||||
PREROUTING_CHAIN="prerouting_miniupnpd"
|
||||
POSTROUTING_CHAIN="postrouting_miniupnpd"
|
||||
|
||||
while getopts ":t:n:c:p:r:" opt; do
|
||||
case $opt in
|
||||
|
@ -23,10 +23,10 @@ while getopts ":t:n:c:p:r:" opt; do
|
|||
CHAIN=$OPTARG
|
||||
;;
|
||||
p)
|
||||
PREROUTEING_CHAIN=$OPTARG
|
||||
PREROUTING_CHAIN=$OPTARG
|
||||
;;
|
||||
r)
|
||||
POSTROUTEING_CHAIN=$OPTARG
|
||||
POSTROUTING_CHAIN=$OPTARG
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
|
||||
# Prerouting
|
||||
$NFT delete chain inet $NAT_TABLE $PREROUTEING_CHAIN
|
||||
$NFT delete chain inet $NAT_TABLE $PREROUTING_CHAIN
|
||||
# Postrouting
|
||||
$NFT delete chain inet $NAT_TABLE $POSTROUTEING_CHAIN
|
||||
$NFT delete chain inet $NAT_TABLE $POSTROUTING_CHAIN
|
||||
# Filter
|
||||
$NFT delete chain inet $TABLE $CHAIN
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
|
||||
# Prerouting
|
||||
$NFT list chain inet $NAT_TABLE $PREROUTEING_CHAIN
|
||||
$NFT list chain inet $NAT_TABLE $PREROUTING_CHAIN
|
||||
# Postrouting
|
||||
$NFT list chain inet $NAT_TABLE $POSTROUTEING_CHAIN
|
||||
$NFT list chain inet $NAT_TABLE $POSTROUTING_CHAIN
|
||||
# Filter
|
||||
$NFT list chain inet $TABLE $CHAIN
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
|
||||
$NFT flush chain inet $TABLE $CHAIN
|
||||
$NFT flush chain inet $NAT_TABLE $PREROUTEING_CHAIN
|
||||
$NFT flush chain inet $NAT_TABLE $POSTROUTEING_CHAIN
|
||||
$NFT flush chain inet $NAT_TABLE $PREROUTING_CHAIN
|
||||
$NFT flush chain inet $NAT_TABLE $POSTROUTING_CHAIN
|
||||
|
|
|
@ -49,7 +49,7 @@ cat >> /tmp/miniupnpd.nft <<EOF
|
|||
policy accept;
|
||||
|
||||
# miniupnpd
|
||||
jump $PREROUTEING_CHAIN
|
||||
jump $PREROUTING_CHAIN
|
||||
|
||||
# Add other rules here
|
||||
}
|
||||
|
@ -59,15 +59,15 @@ cat >> /tmp/miniupnpd.nft <<EOF
|
|||
policy accept;
|
||||
|
||||
# miniupnpd
|
||||
jump $POSTROUTEING_CHAIN
|
||||
jump $POSTROUTING_CHAIN
|
||||
|
||||
# Add other rules here
|
||||
}
|
||||
|
||||
chain $PREROUTEING_CHAIN {
|
||||
chain $PREROUTING_CHAIN {
|
||||
}
|
||||
|
||||
chain $POSTROUTEING_CHAIN {
|
||||
chain $POSTROUTING_CHAIN {
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue