Sample Header Ad - 728x90

Adding iptables extensions

0 votes
1 answer
435 views
After a huge hustle I managed to compile the xt_DSCP.ko kernel module and it can be loaded with no errors.
:/ $ su
:/ # insmod /sdcard/xt_DSCP.ko
:/ #
I also managed to pull iptables external from androidgooglesource and managed to build iptables 1.8.4(same version packaged with the device) with --enables-static --disable-shared which bundled all extensions inside the executable. Now expecting everything to go smoothly I get this error when I try to use the DSCP target
:/ $ su
:/ # export T=/data/local/iptables/sbin/iptables
:/ # $T -t mangle -A OUTPUT -p udp -j DSCP --set-dscp 0
iptables v1.8.4 (legacy): unknown option "--set-dscp"
Try `iptables -h' or 'iptables --help' for more information.
2|:/ #
The whole folder is chmod -R 777 /data/local/iptables and chown -R 0:2000 /data/local/iptables. I have also tried moving libxt_DSCP.so to /system/lib and system/lib64 but with no avail. I have hit a wall I'm not sure I will be able to climb. External iptables was built with autotools using Android NDK r25c. Help will be greatly appreciated.
OS specifics:

Model-name: Galaxy M12(rooted with magisk)
Android-version: 11(stock)
Kernel-version: 4.19.111-22482896
Asked by Silent (121 rep)
Jun 9, 2023, 01:43 PM
Last activity: Jun 10, 2023, 06:05 PM