Skip to content

Commit

Permalink
Adding missing ip6tables-restore and ip6tables-save to the links …
Browse files Browse the repository at this point in the history
…created by `xtables-set-mode.sh`

Signed-off-by: Chris Kim <oats87g@gmail.com>
  • Loading branch information
Oats87 committed Jul 1, 2020
1 parent 9310ca6 commit 363e9a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iptables-detect/xtables-set-mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ validate() {
set_nft() {
base_path=$(dirname $(which $script_name))

for i in iptables iptables-save iptables-restore ip6tables; do ln -sf "xtables-nft-multi" "$base_path/$i"; done
for i in iptables iptables-save iptables-restore ip6tables ip6tables-save ip6tables-restore; do ln -sf "xtables-nft-multi" "$base_path/$i"; done

exit
}

set_legacy() {
base_path=$(dirname $(which $script_name))

for i in iptables iptables-save iptables-restore ip6tables; do ln -sf "xtables-legacy-multi" "$base_path/$i"; done
for i in iptables iptables-save iptables-restore ip6tables ip6tables-save ip6tables-restore; do ln -sf "xtables-legacy-multi" "$base_path/$i"; done

exit
}
Expand Down

0 comments on commit 363e9a3

Please sign in to comment.