Почему команды, связанные с таблицей mangle не хотят выполнятся в скрипте, а в командной строке (все выполняется из под рута) нормально выполняются?
Вот сам скрипт:
#!/bin/sh
. /etc/init.d/functions
iptables -t nat -F
iptables -t mangle -F
iptables -t filter -F
iptables -t nat -X
iptables -t mangle -X
iptables -t filter -X
iptables -t nat -Z
iptables -t mangle -Z
iptables -t filter -Z
# ./iptabless
iptables: libiptc/libip4tc.c:384: do_check: Assertion `h->info.valid_hooks == (1 << 0 | 1 << 3)' failed.
./iptabless: line 5: 1682 Aborted iptables -t mangle -F
iptables: libiptc/libip4tc.c:384: do_check: Assertion `h->info.valid_hooks == (1 << 0 | 1 << 3)' failed.
./iptabless: line 8: 1685 Aborted iptables -t mangle -X
iptables: libiptc/libip4tc.c:384: do_check: Assertion `h->info.valid_hooks == (1 << 0 | 1 << 3)' failed.
./iptabless: line 11: 1688 Aborted iptables -t mangle -Z
# iptables --version
iptables v1.2.6a
# ls -l
-rwxr-xr-x 1 root root iptabless
ядро 2.4.18
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум iptables -t mangle — не работает в скрипте (2002)
- Форум iptables -t mangle — не работает в скрипте (2002)
- Форум Помогите с iptables (2002)
- Форум не стартует iptables в Gentoo (2013)
- Форум Spamassassin'у не нравится perl (2015)
- Форум iptables + mangle (2008)
- Форум iproute и iptables -t mangle -A OUTPUT (2010)
- Форум Iptables: FTP mangle (2008)
- Форум mangle в iptables (2002)
- Форум iptables -t nat (2017)