maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   dsniff/ettercap do not work without NAT iptables (https://talk.maemo.org/showthread.php?t=19035)

winpisces 2009-02-03 20:23

Re: dsniff/ettercap do not work without NAT iptables
 
The result of iptables -t nat -L is:

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Matan 2009-02-03 20:29

Re: dsniff/ettercap do not work without NAT iptables
 
Then the nat table and the POSTROUTING chain exist. The problem has to be with the MASQUERADE target. Is the ipt_MASQUERADE module inserted? What is the output of lsmod?

winpisces 2009-02-04 14:11

Re: dsniff/ettercap do not work without NAT iptables
 
Hmm... When I type in
iptables -t MASQUERADE -L

I got the following:
iptables v1.3.6: can't inintalize iptables table 'MASUERADE': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

And when I try to rerun the command:

insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_MASQUERADE.ko

I got the following:

insmod: cannot insert '/lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_MASQUERADE.ko': File exists (-1): File exists

Any ideal???

Matan 2009-02-04 14:20

Re: dsniff/ettercap do not work without NAT iptables
 
MASQUERADE is a target, not a table, so the command you ran should fail.

Please run the command

iptables -t nat -I POSTROUTING -j MASQUERADE

and report the result.


PLEASE, please also include the output from lsmod.

winpisces 2009-02-04 14:42

Re: dsniff/ettercap do not work without NAT iptables
 
I ran the command

iptables -t nat -I POSTROUTING -j MASQUERADE

and the result is:
iptables v1.3.6: no command specified
Try 'iptables -h' ro iptables --helo' for more information

Matan 2009-02-04 14:50

Re: dsniff/ettercap do not work without NAT iptables
 
The I is a capital i, not a small L.

winpisces 2009-02-05 19:59

Re: dsniff/ettercap do not work without NAT iptables
 
When I type in:
iptables -t nat -I POSTROUTING -j MASQUERADE

there aren't any output. Just show a new prompt.

any ideal?

Matan 2009-02-05 20:10

Re: dsniff/ettercap do not work without NAT iptables
 
This means that the command is accepted without errors. This is the unix way - no unnecessary output.

Now try the same successful command with additional -o bnep0 and see if it works.


All times are GMT. The time now is 23:27.

vBulletin® Version 3.8.8