kali-nethunter icon indicating copy to clipboard operation
kali-nethunter copied to clipboard

Mana-toolkit / iptables not working anymore?

Open yesimxev opened this issue 6 years ago • 2 comments

Device: OnePlus One

OS version (KitKat/Lollipop/Marshmallow/Nougat): Marshnmallow

Built from repo (date and build command) or downloaded from website (links):

build.nethunter.com

Output of cat /proc/version in adb shell or NetHunter Terminal:

Linux version 3.4.112-yesimxev-cyanogenmod (root@kali) (gcc version 4.8 (GCC) ) #14 SMP PREEMPT Thu Dec 20 23:00:23 CET 2018

Issue:

Seems like port forwarding is not working anymore? So mana fails to work with nat-full too. Mitmf fails too.

iptables -t nat -A PREROUTING -i wlan1  -p tcp --destination-port 443 -j REDIRECT --to-port 10443
iptables v1.8.2 (nf_tables): unknown option "--destination-port"
Try `iptables -h' or 'iptables --help' for more information.

yesimxev avatar Dec 24 '18 08:12 yesimxev

Installing iptables 1.6 with it's dependecies does the trick. Not sure why is it different, the command should work as it is correct in terms of man page

yesimxev avatar Dec 25 '18 17:12 yesimxev

Still not sure why is --destination-port 443 unknown command, and why does the command works on pc. Kernel related? Any ideas?

yesimxev avatar Apr 01 '19 20:04 yesimxev