Reply
Thread Tools
Posts: 6 | Thanked: 0 times | Joined on Apr 2008
#1
Hi fellow security "experimenter".

I recently bought a n810 with the hope of using it for security testing. I have kismet, ettercap and dsniff installed and working. However, they cannot do anything (at least for dsniff and ettercap) until the kernel supports a way to reroute the traffic to these tools. It can be ipchains or iptables.
Iptables is available on os2008 but is missing the NAT tables.
I've seen multiple post on these forum saying that these tools were working, but I think that what was meant is that they could be launched but not really do anything useful.

Did I miss something ? is there an easy way to get the NAT tables modules for os2008 without recompiling a kernel ?

Thanks for any help.

JC
 
Posts: 14 | Thanked: 2 times | Joined on Jan 2009
#2
Hi JC,
Did u solve the NAT problem???If yes please gimme some pointers since even I'm stuck with this NAT problem..
 
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#3
Any updates how get ipatables to work?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#4
 

The Following User Says Thank You to Matan For This Useful Post:
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#5
I'm pretty new kernel. What should I do with the netfiler-diablo.tgz file?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#6
Open xterm (or ssh into the device) make sure you have root privileges (sudo gainroot is an option), and run

tar -C /lib/ -xzf netfilter-diablo.tgz

Then insmod all the necessary modules, and iptables will work.
 
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#7
After the tar part, what do I have to do with insmod?

Really, this is my first time to deal with it.
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#8
Run the commands:

insmod /lib/modules/2.6.21-omap1/net/netfilter/nf_conntrack.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/nf_conntrack_ipv4.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/nf_nat.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/iptable_nat.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/iptable_raw.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_REDIRECT.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_SAME.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_MASQUERADE.ko
insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_NETMAP.ko



Please note that this enables NAT, but I never tried any of kismet, ettercap or dsniff, so I don't know if that is enough to make them work.
 
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#9
already tried insmod but still no success to run the following command:

iptables -t nat -I POSTROUTING -o bnep0 -j MASQUERADE

iptables: No chain/target/mach by that name

any ideal?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#10
Are you sure the module iptables_nat is inserted properly (check with lsmod)?

What is the result of

iptables -t nat -L
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:59.