Hi
I builded jool in my old system without dkms. but I have some issues

1- instance name beginning "??" characters
2- instance looking netfilter but I wrote iptables.
3- When I execute the iptables command with jool, iptables returning error. There is not any error message at dimesg.

jool kernel modules are builded 64bit arch with my custom kernel.(attached)
I builded jool userspace tools 32bit arch like my iptables tools.(I can't attach because too big for mail size.) I patched(attached) for build problem. I don't know those patches are correct.

I know this is complicated. But I must be run in this system.

Are there any suggestions for me?

Some Informations

[root@jool ~]# modprobe jool jool_siit
[root@jool ~]# lsmod | grep jool
jool                    1453  0
jool_siit               1382  0
jool_common           129819  2 jool,jool_siit
nf_defrag_ipv6         23273  2 jool,nf_conntrack_ipv6
nf_defrag_ipv4          1758  2 jool,nf_conntrack_ipv4
x_tables               25365  31 jool,jool_siit,xt_NFLOG,ipt_rpfilter,xt_pkttype,xt_length,xt_NFQUEUE,xt_connmark,xt_CT,xt_addrtype,ebtables,xt_connlimit,xt_hashlimit,xt_nat,xt_mark,iptable_raw,xt_set,ip6t_REJECT,xt_multiport,xt_LOG,xt_limit,xt_tcpudp,xt_conntrack,ip6table_mangle,ip6table_raw,iptable_mangle,xt_recent,ip6table_filter,ip6_tables,iptable_filter,ip_tables

[root@jool ~]# jool -V
4.0.6.0

issues

[root@jool ~]# jool instance add alpha --iptables --pool6 64:ff9b::/96

[root@jool ~]# jool instance display
+--------------------+-----------------+-----------+
|          Namespace |            Name | Framework |
+--------------------+-----------------+-----------+
|         0x80e868c0 |       ��alpha | netfilter |
+--------------------+-----------------+-----------+

[root@jool ~]# /sbin/iptables  -t mangle -A PREROUTING -j JOOL --instance "alpha"
iptables: Invalid argument. Run `dmesg' for more information.

dmesg |tail
Jool: Core Jool v4.0.6.0 module inserted.
NAT64 Jool v4.0.6.0 module inserted.
SIIT Jool v4.0.6.0 module inserted.
Jool: Created instance 'alpha'.


OS=Centos5 ( I know this is dead. :( )
OS_ARCH=32bit
KERNEL_ARCH=64bit

[root@jool ~]# uname -r
3.16.76-4.custom

[root@jool ~]# iptables -V
iptables v1.6.0

RPM Packages Contains
[root@jool ~]# rpm -qlp jool-kmod-4.0.6-1.noarch.rpm
/lib/modules/3.16.76-4.custom/jool
/lib/modules/3.16.76-4.custom/jool/jool.ko
/lib/modules/3.16.76-4.custom/jool/jool_common.ko
/lib/modules/3.16.76-4.custom/jool/jool_siit.ko

[root@jool ~]# rpm -qlp jool-tools-4.0.6-1.i386.rpm
/lib/xtables
/lib/xtables/libxt_JOOL.so
/lib/xtables/libxt_JOOL_SIIT.so
/usr/bin/jool
/usr/bin/jool_siit
/usr/bin/joold
/usr/lib/jool/libjoolargp.so
/usr/lib/jool/libjoolargp.so.0
/usr/lib/jool/libjoolargp.so.0.0.0
/usr/lib/jool/libjoolnl.so
/usr/lib/jool/libjoolnl.so.0
/usr/lib/jool/libjoolnl.so.0.0.0
/usr/lib/jool/libjoolutil.so
/usr/lib/jool/libjoolutil.so.0
/usr/lib/jool/libjoolutil.so.0.0.0
/usr/share/man/man8
/usr/share/man/man8/jool.8.gz
/usr/share/man/man8/jool_siit.8.gz
/usr/share/man/man8/joold.8.gz


#gcc 64bit
[fatih@centos5-64bit jool-4.0.6]$ /opt/rh/devtoolset-2/root/usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/opt/rh/devtoolset-2/root/usr/bin/gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-CentOS-linux/4.8.2/lto-wrapper
Target: x86_64-CentOS-linux
Configured with: ../configure --prefix=/opt/rh/devtoolset-2/root/usr --mandir=/opt/rh/devtoolset-2/root/usr/share/man --infodir=/opt/rh/devtoolset-2/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --disable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-CentOS-linux/isl-install --with-cloog=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-CentOS-linux/cloog-install --with-gmp=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-CentOS-linux/gmp-install --with-mpfr=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-CentOS-linux/mpfr-install --with-mpc=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-CentOS-linux/mpc-install --with-tune=generic --with-arch_32=i586 --build=x86_64-CentOS-linux
Thread model: posix
gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)

#gcc 32bit
/opt/rh/devtoolset-2/root/usr/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/opt/rh/devtoolset-2/root/usr/bin/gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-2/root/usr/libexec/gcc/i386-CentOS-linux/4.8.2/lto-wrapper
Target: i386-CentOS-linux
Configured with: ../configure --prefix=/opt/rh/devtoolset-2/root/usr --mandir=/opt/rh/devtoolset-2/root/usr/share/man --infodir=/opt/rh/devtoolset-2/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --disable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,fortran,lto --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-isl=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-i386-CentOS-linux/isl-install --with-cloog=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-i386-CentOS-linux/cloog-install --with-gmp=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-i386-CentOS-linux/gmp-install --with-mpfr=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-i386-CentOS-linux/mpfr-install --with-mpc=/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-i386-CentOS-linux/mpc-install --with-tune=generic --with-arch=i586 --build=i386-CentOS-linux
Thread model: posix
gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC)

CFLAGS for tools
export CFLAGS="-fPIE -Os -g -pipe -fsigned-char -I/usr/src/redhat/SOURCES/kernel-headers-3.16.76/usr/include"

CFLAGS for kernel modules
export CFLAGS="-fPIE -Os -g -pipe -fsigned-char"







--
Fatih USTA


[root@root ~]# cat binary_to_hex.patch
diff -aur a/src/common/constants.h b/src/common/constants.h
--- a/src/common/constants.h    2019-12-05 09:50:20.000000000 +0200
+++ b/src/common/constants.h    2019-12-05 09:51:38.000000000 +0200
@@ -68,7 +68,7 @@
 #define DEFAULT_DROP_EXTERNAL_CONNECTIONS false
 #define DEFAULT_MAX_STORED_PKTS 10
 #define DEFAULT_SRC_ICMP6ERRS_BETTER true
-#define DEFAULT_F_ARGS 0b1011
+#define DEFAULT_F_ARGS 0x0b
 #define DEFAULT_HANDLE_FIN_RCV_RST false
 #define DEFAULT_BIB_LOGGING false
 #define DEFAULT_SESSION_LOGGING false

[root@root ~]# cat linux_version.patch
diff -aur a/src/mod/common/rfc7915/6to4.c b/src/mod/common/rfc7915/6to4.c
--- a/src/mod/common/rfc7915/6to4.c    2019-12-05 09:50:20.000000000 +0200
+++ b/src/mod/common/rfc7915/6to4.c    2019-12-05 12:37:39.000000000 +0200
@@ -206,6 +206,8 @@
 
 #if LINUX_VERSION_AT_LEAST(4, 1, 0, 7, 3)
     __ip_select_ident(state->jool.ns, hdr4, 1);
+#elif LINUX_VERSION_AT_LEAST(3, 16, 76, 0, 0)
+        __ip_select_ident(state->jool.ns, hdr4, 1);
 #elif LINUX_VERSION_AT_LEAST(3, 16, 0, 7, 3)
     __ip_select_ident(hdr4, 1);
 #else
+ make -C /home/fatih/rpm//BUILD/linux-3.16.76 SUBDIRS=/home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common modules -j8
make: Entering directory `/home/fatih/rpm/BUILD/linux-3.16.76'
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rfc7915/4to6.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rfc7915/6to4.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rfc7915/common.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rfc7915/core.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/address_xlat.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/kernel_hook_netfilter.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/kernel_hook_iptables.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/log.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/address.o
/home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rfc7915/4to6.c: In function ‘icmp4_to_icmp6_param_prob’:
/home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rfc7915/4to6.c:557: warning: comparison is always false due to limited range of data type
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/atomic_config.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/global-impl.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/icmp_wrapper.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/init.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/ipv6_hdr_iterator.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/joold.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/packet.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rfc6052.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/rtrie.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/stats.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/types.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/translation_state.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/route_in.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/route_out.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/core.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/error_pool.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/timer.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/wkmalloc.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/wrapper-config.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/wrapper-globals.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/wrapper-types.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/xlator.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/steps/send_packet.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/address.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/atomic_config.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/nl_handler.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/nl_core.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/bib.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/blacklist4.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/eam.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/global.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/instance.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/joold.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/nl_common.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/pool4.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/session.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/nl/stats.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/blacklist4.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/config.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/eam.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/pool.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/rbtree.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/rfc6791v4.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/rfc6791v6.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/pool4/empty.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/pool4/db.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/pool4/rfc6056.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/bib/db.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/bib/entry.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/bib/pkt_queue.o
/home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/pool4/empty.c: In function ‘pool4empty_contains’:
/home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/db/pool4/empty.c:54: warning: comparison is always false due to limited range of data type
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/steps/determine_incoming_tuple.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/steps/filtering_and_updating.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/steps/compute_outgoing_tuple.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/steps/handling_hairpinning_siit.o
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/steps/handling_hairpinning_nat64.o
  LD [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/jool_common.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/jool_common.mod.o
  LD [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/common/jool_common.ko
make: Leaving directory `/home/fatih/rpm/BUILD/linux-3.16.76'
++ pwd
+ make -C /home/fatih/rpm//BUILD/linux-3.16.76 SUBDIRS=/home/fatih/rpm/BUILD/jool-4.0.6/src/mod/nat64 modules -j8
make: Entering directory `/home/fatih/rpm/BUILD/linux-3.16.76'
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/nat64/jool.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/nat64/jool.mod.o
  LD [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/nat64/jool.ko
make: Leaving directory `/home/fatih/rpm/BUILD/linux-3.16.76'
++ pwd
+ make -C /home/fatih/rpm//BUILD/linux-3.16.76 SUBDIRS=/home/fatih/rpm/BUILD/jool-4.0.6/src/mod/siit modules -j8
make: Entering directory `/home/fatih/rpm/BUILD/linux-3.16.76'
  CC [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/siit/jool_siit.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/siit/jool_siit.mod.o
  LD [M]  /home/fatih/rpm/BUILD/jool-4.0.6/src/mod/siit/jool_siit.ko
make: Leaving directory `/home/fatih/rpm/BUILD/linux-3.16.76'
+ exit 0
_______________________________________________
Jool-list mailing list
[email protected]
https://mail-lists.nic.mx/listas/listinfo/jool-list

Reply via email to