OS: Ubuntu 8.04
kernel: 2.6.24-16-server
iptables: v1.3.8
Для настройки балансировки трафика между двумя интернет-каналами пытаюсь пропатчить ядро c iptables+nth.
Делаю следующее:
1. Скачал source kernel
2. Скачал source iptables
3. Скачал patch-o-matic-ng
4. Пропатчил ядро: KERNEL_DIR=/usr/src/linux-source-2.6.24/ ./runme nth
Do you want to apply this patch [N/y/t/f/a/r/b/w/q/?] y
Excellent! Source trees are ready for compilation.
5. Произвёл сборку ядра: make oldconfig
Появился запрос на добавление модуля nth:
Nth match support (IP_NF_MATCH_NTH) [N/m/?] (NEW) m
Nth match support (IP6_NF_MATCH_NTH) [N/m/?] (NEW) m
6. Запустил компиляцию ядра: make-kpkg --initrd --append-to-version=-mykernel kernel_image kernel_headers -arch i386
При компиляции выдал следующую ошибку:
net/ipv4/netfilter/ipt_nth.c:144: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_nth.c:145: warning: initialization from incompatible pointer type
net/ipv4/netfilter/ipt_nth.c: In function ‘init’:
net/ipv4/netfilter/ipt_nth.c:157: error: implicit declaration of function ‘ipt_register_match’
net/ipv4/netfilter/ipt_nth.c: In function ‘fini’:
net/ipv4/netfilter/ipt_nth.c:162: error: implicit declaration of function ‘ipt_unregister_match’
make[4]: *** [net/ipv4/netfilter/ipt_nth.o] Error 1
make[3]: *** [net/ipv4/netfilter] Error 2
make[2]: *** [net/ipv4] Error 2
make[1]: *** [net] Error 2
make[1]: Leaving directory `/usr/src/linux-source-2.6.24'
make: *** [debian/stamp-build-kernel] Error 2
Подскажите в чём проблема. Спасибо.