Results 1 to 10 of 14

Thread: iptables problem

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Aug 2006
    Posts
    18

    Question iptables problem

    Whenever I tried to use ettercap with iptable redir; I got a message called can't initialize ip table 'nat' because permission denied or kernel need to be upgrade.

    Note I loged on as root.

  2. #2
    Just burned his ISO
    Join Date
    Aug 2006
    Posts
    18

    Default

    Error message from ettercap:
    Code:
    SEND L3 ERROR: 60 byte packet (0800:01) destined to 192.168.1.5 was not forwarded (libnet_write_raw_ipv4(): -1 bytes written (Operation not permitted)
    )
    SEND L3 ERROR: 29 byte packet (0800:01) destined to 192.168.1.5 was not forwarded (libnet_write_raw_ipv4(): -1 bytes written (Operation not permitted)
    )
    From terminal/shell prompt:
    Code:
    ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA
    
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    iptables v1.3.5: can't initialize iptables table `nat': Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    Note: I run it as root. From root account (and also use sudo command).


    What is the solution please?

  3. #3
    Senior Member shamanvirtuel's Avatar
    Join Date
    Mar 2010
    Location
    Somewhere in the "Ex" human right country
    Posts
    2,988

    Default

    maybe there's missing some chmod+x somewhere...i mean executable permission for some iptable stuff....but really not sure.....
    Watch your back, your packetz will belong to me soon... xD

    BackTrack :
    Giving Machine Guns to Monkeys since 2006

  4. #4
    Member
    Join Date
    Mar 2007
    Posts
    335

    Default

    nano /usr/local/etc/etter.conf

    change from
    #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"

    to
    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"

    notice the uncomment ( # )

    save
    this should help

  5. #5
    Just burned his ISO
    Join Date
    Aug 2006
    Posts
    18

    Default

    nano /usr/local/etc/etter.conf

    change from
    #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"

    to
    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"

    notice the uncomment ( # )

    save
    this should help
    The problem arise after uncomment those lines.

    maybe there's missing some chmod+x somewhere...i mean executable permission for some iptable stuff....but really not sure.....
    I don't think so, because I made executable everything inside 'ipv4' directory. But may be you are right, then the question is what should be executable?

  6. #6
    Member
    Join Date
    Mar 2007
    Posts
    335

    Default

    make sure those two lines only use one line each. when you open the konsole, view it on full screen then go into etter.conf
    i had this problem and thats how i solved it.

Posting Permissions

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