Results 1 to 4 of 4

Thread: Solving iptables issue on Kali Linux 2019.1 ARM 32 bit image (kalitorify, kali-anonsurf)

  1. #1
    Join Date
    2019-Mar
    Location
    Madrid
    Posts
    2

    Solving iptables issue on Kali Linux 2019.1 ARM 32 bit image (kalitorify, kali-anonsurf)

    I was installing all my useful pentesting tools in my Raspberry Pi 3 B+ Kali Linux 2019.1 distro. I have to thank Kali Linux development team for this nice Linux distribution, since quite everything worked like a charm, just needing to install, update and upgrade many packages.

    But when I was going to install the usefull kalitorify or kali-anonsurf scripts... they were shooting a lot of errors and they didn't work. All the errors were related to iptables execution.
    So I tried to run manually:

    root@ws-54879:~# iptables -L
    iptables: Operation not supported.


    And after googling many forums and githubs, I got into the conclusion that this new iptables version (v1.8.2 ) doesn't work well with this kernel build. So I checked for alternative versions:

    root@ws-54879:~# update-alternatives --list iptables
    /usr/sbin/iptables-legacy
    /usr/sbin/iptables-nft

    That means that there are two versions of iptables installed in Kali Linux, the legacy and fully working and the next generation (iptables-nft).

    root@ws-54879:~# iptables-legacy
    iptables v1.8.2 (legacy): no command specified
    Try `iptables -h' or 'iptables --help' for more information.

    root@ws-54879:~# iptables-legacy -F


    When calling the legacy iptables version it worked without throwing errors. So it's not necessary to execute complex solutions to solve this situation. Just specifying the default version for the system it will be enough. I will do it just by modifying the symbolic link in the default path to call the iptables-legacy by default.

    root@ws-54879:~# whereis iptables
    /usr/sbin/iptables


    root@ws-54879:~# mv /usr/sbin/iptables /root/scripts/
    root@ws-54879:~#
    ln -s /usr/sbin/iptables-legacy /usr/sbin/iptables

    And finally iptables from the path works!
    root@ws-54879:~# iptables -F

    It will be also necessary to install ufw package for kalitorify.
    root@ws-54879:~# apt install ufw

    And finally kalitorify and kali-anonsurf works again!


    root@ws-54879:~# kalitorify -t

    #####################################

    _____ _ _ _ _ ___
    | | |___| |_| |_ ___ ___|_| _|_ _
    | -| .'| | | _| . | _| | _| | |
    |__|__|__,|_|_|_| |___|_| |_|_| |_ |
    |___|

    #####################################

    =[ Kali Linux
    =[ Transparent proxy through Tor

    Version: 1.15.0
    Copyright (C) 2015-2019 Brainfuck


    ==> Starting Transparent Proxy
    :: Disabling firewall ufw, please wait...
    Firewall stopped and disabled on system startup

    :: Configure system's DNS resolver to use Tor's DNSPort
    '/etc/resolv.conf' -> '/opt/kalitorify/backups/resolv.conf.backup'

    :: Disable IPv6 with sysctl
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1

    :: Start Tor service
    [ ok ] Tor service started

    :: Backup iptables... # Warning: iptables-legacy tables present, use iptables-legacy-save to see them
    Done
    :: Flush current iptables... Done
    :: Set new iptables rules... Done

    ==> Check current status of Tor service
    [ ok ] Tor service is active

    ==> Check Tor network settings
    [ ok ] Your system is configured to use Tor

    ==> Checking your public IP, please wait...
    :: IP Address Details:

    ip:x.y.z.34,
    city:Berlin,
    region:Berlin,
    countryE,
    loc:a.4947,b.2852,
    postal:c,
    org:AS2000zzPeterMacXXXX

    [ ok ] Transparent Proxy activated, your system is under Tor


    I hope this helps you!

  2. #2
    Join Date
    2018-May
    Posts
    3
    Thank you so much mate, I was pulling my hair out reinstalling iptables, tor, curl etc. Very elegant fix!

  3. #3
    Join Date
    2016-Dec
    Posts
    556
    You should use the update-alternatives script instead of manually changing symbolic links.

    The script seems to do something funky. because in the default kali, iptables -L works just fine.

  4. #4
    Join Date
    2019-Jan
    Posts
    20
    yea every time. since begining i knowhis are he only builds i use and for years i do it everytime. OH boy an upate. then i sit with my cell phone a foot from the pi. and spend many hours to get my shell after the cigerette but burns my finger after nodding off 20 times i smile. and remember the network manager is diabled. good they cheap and fly nice. few more days for the new GDP hope it doesnt fly well

Similar Threads

  1. Testing Kali Linux 2019.1 ARM images and solving some issues...
    By Yago Hansen in forum Kali Linux ARM Architecture
    Replies: 0
    Last Post: 2019-03-08, 10:55
  2. no iptables in Raspberry pi image?
    By bullrush in forum ARM Archive
    Replies: 8
    Last Post: 2014-01-26, 12:28
  3. Raspberry Pi Image (Custom Cross-Compiled Kernel w/IPTables support)
    By Binary Overlord in forum Building Archive
    Replies: 0
    Last Post: 2013-11-04, 22:28

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •