Active Topics

 



Notices


Reply
Thread Tools
jiiv's Avatar
Posts: 124 | Thanked: 47 times | Joined on Aug 2008 @ Northern DFW
#41
It was a 2.6.28 I just threw together; I'll probably start from scratch and play around with it a bit. This was one of those "I should be sleeping but I'll try to get a kernel compiled before I pass out" sort of events, and I haven't had a chance to revisit it yet.Given that your kernel works I'll probably use it as a starting point if I get back to it before you get one up with NAT capability; I don't need anything from 2.6.32 and there's no sense in reinventing the wheel on 2.6.28.
__________________
Useful links for newcomers: New members say hello, New users start here, Community subforum, Beginners' wiki page, Maemo5 101, Frequently Asked Questions (FAQ)
NOTE: Most users should avoid the extras-testing and extras-devel app repositories.
I'm not really a Maemo/smartphone expert, but I can usually find my way around a *nix system. If I somehow manage to help you out, thanks are appreciated.
 

The Following User Says Thank You to jiiv For This Useful Post:
R-R's Avatar
Posts: 739 | Thanked: 242 times | Joined on Sep 2007 @ Montreal
#42
What would be ultimately super nice is to install an OLSR daemon compatibly-configured to run along such mesh node as ROBIN so multiple n900 and others can relay each other's traffic outside :-)
 

The Following User Says Thank You to R-R For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#43
Hey,

I thought I would let you know that you can `apt-get upgrade` kernels and they install fine.

Linux Nokia-N900-42-11 2.6.28-omap1-jebba6 #1 PREEMPT Sat Jan 2 13:04:25 MST 2010 armv7l unknown

from my repo is now compiled with NAT and a bunch more. For changes, see:
http://www.freemoe.org/users/jebba/d..._armel.changes

I haven't tested NAT yet, but it loads:

Code:
~ $ lsmod |grep nat
iptable_nat             4612  0 
ip_tables               9424  1 iptable_nat
nf_nat                 14926  1 iptable_nat
x_tables               10820  2 iptable_nat,ip_tables
nf_conntrack_ipv4      11532  3 iptable_nat,nf_nat
nf_conntrack           47420  3 iptable_nat,nf_nat,nf_conntrack_ipv4
My repo URL:
Code:
 deb http://www.freemoe.org/users/jebba unstable main
Have fun.

I'm going to build another kernel RSN which hopefully fixes the keymap in console mode (e.g. in Mer).
 

The Following 8 Users Say Thank You to jebba For This Useful Post:
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#44
Aaah... The wonders of Open Source...
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 
Posts: 529 | Thanked: 46 times | Joined on Sep 2007
#45
Ok for N900 AP.
What about N810, N800, Nokia 770 AP ?

Any chance ?
 
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#46
Originally Posted by Darius2006 View Post
Ok for N900 AP.
What about N810, N800, Nokia 770 AP ?

Any chance ?
Not from me, sorry.
 
Posts: 3 | Thanked: 7 times | Joined on Oct 2008 @ Recife
#47
Hey guys i placed the iptables package on the extras-devel. Maybe it will be useful.
 

The Following 6 Users Say Thank You to zimmerle For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#48
Originally Posted by zimmerle View Post
Hey guys i placed the iptables package on the extras-devel. Maybe it will be useful.
Cool! With my latest kernel with NAT and your iptables I was able to turn my N900 into a "wifi hotspot"!

Here's my quick & dirty script:

Code:
#!/bin/sh
# Run this script to share your Internet connection.
# Activate your gprs0 (fone data) connection with the GUI
# Then run this  :)

set -x

# insert masquerade module
sudo modprobe ipt_MASQUERADE

# flush old rules
sudo iptables -F
sudo iptables -t nat -F

sudo iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE

# forward IPs
echo -n 1 | sudo tee /proc/sys/net/ipv4/ip_forward

sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode ad-hoc
sudo ifconfig wlan0 up
sudo iwconfig wlan0 essid freemoe
sudo ifconfig wlan0 10.0.0.22 netmask 255.255.255.0 up
 

The Following 12 Users Say Thank You to jebba For This Useful Post:
Posts: 355 | Thanked: 566 times | Joined on Nov 2009 @ Redstone Canyon, Colorado
#49
 

The Following 12 Users Say Thank You to jebba For This Useful Post:
Posts: 323 | Thanked: 180 times | Joined on Oct 2009 @ Gent, Belgium
#50
great !
This serves fine as a 'wifi router' UP script.
Can you also put the DOWN scriptlet, to return the N900 to a normal state, pre-router state ?

Some quick questions, thinking of my already strapped for space and battery stamina device, what's the impact of adding the new kernel modules on performance/memory/battery life ? Or is there hardly any impact as long as the new functions are not used ? Just wondering.

Is iptables optified ? Or can't it be, as it's more OS oriented ?

Thanks for getting this far, every day I feel more happy and convinced I made the right choice to buy the N900 ! Even in it's very early life ...
 
Reply


 
Forum Jump


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