maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   [HOWTO] Compiling new kernels on Harmattan device (https://talk.maemo.org/showthread.php?t=89507)

nieldk 2013-08-21 21:06

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Can I ask for an update to the NAT setup?

When running
# echo 1 > /proc/sys/net/ipv4/ip_forward
# ettercap -T -q -P dns_spoof -M arp:remote -i wlan0 /192.168.0.2/ //

This error comes to surface:

iptables: No chain/target/match by that name.

A bit of digging around found this possible cause, set up CONFIG_NETFILTER_XT_TARGET_REDIRECT in kernel config (Networking support -> Networking options -> Network packet filtering framework (Netfilter) -> Core Netfilter Configuration -> REDIRECT target support).

Thanks, once more, this NAT support have been nagging me, so happy it got implemented :)

jackburton 2013-08-22 02:12

Re: [HOWTO] Compiling new kernels on Harmattan device
 
I don't see CONFIG_NETFILTER_XT_TARGET_REDIRECT in the config, but I do see CONFIG_IP_NF_TARGET_REDIRECT.

Will that work?

nieldk 2013-08-22 04:32

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by jackburton (Post 1368635)
I don't see CONFIG_NETFILTER_XT_TARGET_REDIRECT in the config, but I do see CONFIG_IP_NF_TARGET_REDIRECT.

Will that work?

Might be because of kernel version. Werr I saw this, it was kernel version 3 :)
Your finding sounds right, and I would love to test it :)

peterleinchen 2013-08-22 07:16

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by nieldk (Post 1368601)
When running
# echo 1 > /proc/sys/net/ipv4/ip_forward
# ettercap -T -Q -M arp:remote -i wlan /192.168.0.2/ // -P dns_spoof

Do not know if it is only typo above, but the interface name is wlan0.

nieldk 2013-08-22 08:12

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by peterleinchen (Post 1368653)
Do not know if it is only typo above, but the interface name is wlan0.

That, is a typo :)
Thanks

jackburton 2013-08-22 08:54

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by nieldk (Post 1368639)
Might be because of kernel version. Werr I saw this, it was kernel version 3 :)
Your finding sounds right, and I would love to test it :)

Compiling now. I'm also moving mac80211 and cfg80211 to modules to try the latest wl12xx drivers from Linux backports.

nieldk 2013-08-22 09:32

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Quote:

Originally Posted by jackburton (Post 1368662)
Compiling now. I'm also moving mac80211 and cfg80211 to modules to try the latest wl12xx drivers from Linux backports.

Fantastic! Perhaps we are moving towards even Packet Injection here ;)
Thanks mate! Donation coming up for this

jackburton 2013-08-22 13:25

Re: [HOWTO] Compiling new kernels on Harmattan device
 
New kernel coming.
Code:

RM696-21-3_PR_006:~#
find /lib/modules/2.6.32.54lopan-dfl61/ -iname '*redirect*'
/lib/modules/2.6.32.54lopan-dfl61/kernel/net/ipv4/netfilter/ipt_REDIRECT.ko
RM696-21-3_PR_006:~# modprobe ipt_REDIRECT
RM696-21-3_PR_006:~# lsmod | grep -i redirect
ipt_REDIRECT            1017  0
nf_nat                12403  1 ipt_REDIRECT
RM696-21-3_PR_006:~#


jackburton 2013-08-22 14:08

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Here is the new version:
http://www.ctrl-h.net/nokia/harmatta.../kernel/lopan/

nieldk 2013-08-22 16:21

Re: [HOWTO] Compiling new kernels on Harmattan device
 
Downloaded.....flashing next :)


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

vBulletin® Version 3.8.8