Hi,
First issue: I've installed the conntrack-tools package onto a pair of routers running ATTITUDE ADJUSTMENT (12.09, r36088) ar71xx in conjunction with keepalived to provide router redundancy / failover. Works great for IPv4 however conntrack-tools seems to have been complied without proper IPv6 support.
Below is my config running on one router: /etc/conntrackd/conntrackd.conf
Sync {
Mode FTFW {
DisableExternalCache Off
CommitTimeout 1800
PurgeTimeout 5
}
UDP {
IPv4_address 172.16.0.2
IPv4_Destination_Address 172.16.0.1
Port 3780
Interface eth0.3
SndSocketBuffer 1249280
RcvSocketBuffer 1249280
Checksum on
}
}
General {
Nice -20
HashSize 32768
HashLimit 131072
LogFile on
Syslog on
LockFile /var/lock/conntrack.lock
UNIX {
Path /var/run/conntrackd.ctl
Backlog 20
}
NetlinkBufferSize 2097152
NetlinkBufferSizeMaxGrowth 8388608
Filter From Userspace {
Protocol Accept {
TCP
UDP
ICMP
}
Address Ignore {
IPv4_address 127.0.0.1
IPv4_address 172.16.0.1
IPv4_address 172.16.0.2
IPv4_address xxx.233.201.123
IPv4_address xxx.233.98.33
IPv4_address xxx.31.200.82
IPv4_address xxx.31.200.86
IPv4_address xxx.161.93.49
IPv4_address xxx.161.85.1
IPv4_address xxx.161.85.2
IPv4_address xxx.161.85.3
IPv6_address ::1
IPv6_address xxxx:3400:9::2
IPv6_address xxxx:3400:b:4000::1
IPv6_address xxxx:7800:0:2::6a
IPv6_address xxxx:7800:203::1
IPv6_address xxxx:7800:203::2
IPv6_address xxxx:7800:203::3
}
}
}
When conntrackd is started, it produces the following warning:
WARNING: cannot find inet_pton(), IPv6 unsupported!
WARNING: cannot find inet_pton(), IPv6 unsupported!
WARNING: cannot find inet_pton(), IPv6 unsupported!
WARNING: cannot find inet_pton(), IPv6 unsupported!
WARNING: cannot find inet_pton(), IPv6 unsupported!
WARNING: cannot find inet_pton(), IPv6 unsupported!
WARNING: cannot find inet_pton(), IPv6 unsupported!
Second issue: I've also tried compiling an updated version of conntrack-tools (1.4.1) that has some additional library requirements (which I managed to include just fine) however the compile fails with the following error:
make package/conntrack-tools/compile V=s
make[5]: Entering directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1/src/helpers'
/bin/bash ../../libtool --tag=CC --mode=compile mips-openwrt-linux-uclibc-gcc -DPACKAGE_NAME=\"conntrack-tools\" -DPACKAGE_TARNAME=\"conntrack-tools\" -DPACKAGE_VERSION=\"1.4.1\" -DPACKAGE_STRING=\"conntrack-tools\ 1.4.1\" -DPACKAGE_BUGREPORT=\"pablo@netfilter.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"conntrack-tools\" -DVERSION=\"1.4.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LINUX_CAPABILITY_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_INET_PTON=1 -I. -I../../include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/pieter/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include -std=gnu99 -W -Wall -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wstrict-prototypes -Wundef -Wno-unused-parameter -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -Os -pipe -mips32r2 -mtune=34kc -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DCONNTRACKD_LIB_DIR=\"/usr/lib/conntrack-tools/\" -MT ct_helper_rpc_la-rpc.lo -MD -MP -MF .deps/ct_helper_rpc_la-rpc.Tpo -c -o ct_helper_rpc_la-rpc.lo `test -f 'rpc.c' || echo './'`rpc.c
OpenWrt-libtool: compile: mips-openwrt-linux-uclibc-gcc -DPACKAGE_NAME=\"conntrack-tools\" -DPACKAGE_TARNAME=\"conntrack-tools\" -DPACKAGE_VERSION=\"1.4.1\" "-DPACKAGE_STRING=\"conntrack-tools 1.4.1\"" -DPACKAGE_BUGREPORT=\"pablo@netfilter.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"conntrack-tools\" -DVERSION=\"1.4.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LINUX_CAPABILITY_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_INET_PTON=1 -I. -I../../include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/include -I/home/pieter/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/include -std=gnu99 -W -Wall -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast -Wsign-compare -Waggregate-return -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wstrict-prototypes -Wundef -Wno-unused-parameter -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -I/home/pieter/openwrt/trunk/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include -Os -pipe -mips32r2 -mtune=34kc -fno-caller-saves -mno-branch-likely -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -DCONNTRACKD_LIB_DIR=\"/usr/lib/conntrack-tools/\" -MT ct_helper_rpc_la-rpc.lo -MD -MP -MF .deps/ct_helper_rpc_la-rpc.Tpo -c rpc.c -fPIC -DPIC -o .libs/ct_helper_rpc_la-rpc.o
rpc.c:29:25: fatal error: rpc/rpc_msg.h: No such file or directory
compilation terminated.
make[5]: *** [ct_helper_rpc_la-rpc.lo] Error 1
make[5]: Leaving directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1/src/helpers'
make[5]: Entering directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1/src'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1/src'
make[4]: Entering directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1'
make[2]: *** [/home/pieter/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.33.2/conntrack-tools-1.4.1/.built] Error 2
make[2]: Leaving directory `/home/pieter/openwrt/trunk/package/network/utils/conntrack-tools'
make[1]: *** [package/network/utils/conntrack-tools/compile] Error 2
make[1]: Leaving directory `/home/pieter/openwrt/trunk'
make: *** [package/conntrack-tools/compile] Error 2
This is the offending line:
rpc.c:29:25: fatal error: rpc/rpc_msg.h: No such file or directory
There is no rpc_msg.h in any of the staging include directories, however I did find it in the build dir:
./build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/uClibc-0.9.33.2/include/rpc/rpc_msg.h
Anyone able to shed some light on what's going on / how to fix this? Any help appreciated.
thanks!
Tristan