![]() |
Stock kernel and NAT support
Hi all.
After two days of pajama hacking I'm now sure that stock 2009.42-11 kernel cannot support NAT modules in a proper way, because the netfilter core is compiled in without CONFIG_NF_CONNTRACK or CONFIG_NF_CONNTRACK_MODULE (see line 214 of net/netfilter/core.c). So, no matter how hard we try to get a "debian-polite" way to add needed modules to this kernel, they will simply not work. I'm posting this to see how other people involved in tethering projects would think about what we are in front of, specifically: * Build a new, more modulable, kernel without getting too far from the rx51_defconfig and go with it. * Go completely userland via proxies of any sort, even heavily tweaked for low resource usage. Both ways have a lot of bad points, but I'd like to know which one people would choose. (btw, I think I found an almost elegant way to package "internal" kernel modules, ask freely if interested) |
Re: Stock kernel and NAT support
Just in case you hadn't seen it, there's some discussion of iptables and kernels starting around page 2 in this: http://talk.maemo.org/showthread.php?t=30916&page=2
I'd be very grateful to see an easily installable solution to this! |
Re: Stock kernel and NAT support
Yes, I've seen the other discussion but I think the issue, although fundamental for tethering, is a bit more large.
What I'd like to start here is an effort to have ONE community kernel or a common toolbox with specially tuned proxies to serve most tethering needs. |
Re: Stock kernel and NAT support
well, since the amount of feedback was so heavy (maybe I posted this in the wrong section, feel free to tell me), I'll work the two ways in parallel.
I don't know if it's legit to create a garage project for an unique community kernel, so I'll host on my own space waiting for community input. For the generalized proxing toolkit I'll first create a garage project containing these things: * a non caching userland http / https proxy * a userland forwarding daemon * a cli tool to easily configure both * a gui tool to configure both * maybe (maybe) python bindings for the cli stuff please, keep in mind that I'll publish stuff only when I reach a "debian polite" and "maemo polite" way to distribute it. stay tuned, i'll be back in a week. |
Re: Stock kernel and NAT support
You might want to take a look at what Jebba has been up to in the NAT and kernel areas:
http://wiki.maemo.org/User:Jebba/NAT http://wiki.maemo.org/User:Jebba/Kernel I do think getting the various kernel options together under one roof would be a great step. |
Re: Stock kernel and NAT support
Quote:
Thank you fir the hint, even if I'm a fan of reinventing the wheel (for learning sake, poor me)! |
Re: Stock kernel and NAT support
Quote:
I took the userland-network (slirp) code from qemu and plumbed it to the interface the to be natted clients were behind using pcap. This gives you a completely userland-based NAT solution with even a dhcp-server and dns-forwarding incorporated. Of course it also has all non functional disadvantages of a userland solution like additional delay and cpu-utilization but apart from that from a functional perspective it behaves like NAT. I even used to use VoIP and proprietary tunnel-clients behind it. |
Re: Stock kernel and NAT support
Although it's more work, I think both approaches (new community kernel, and userland stuff) are worth pursuing. The userland solution would be useful for people who just want to install a normal app and don't want to tinker too much with their device. A community kernel, on the other hand, would be of interest to those who don't mind hacking a bit. I would prefer to see only one or two community kernels, though, so that the community doesn't get too divided like the Zaurus community rather did.
|
Re: Stock kernel and NAT support
Quote:
|
Re: Stock kernel and NAT support
Hi mikalil,
I am an Acquisition Editor with a publishing house. We're working on a book on Nokia application programming and we need a technical reviewer to review the book. I went through your posts and your knowledge on the subject looks impressive. If you're interested, please get in touch with me at taruns@packtpub.com for details. |
All times are GMT. The time now is 23:03. |
vBulletin® Version 3.8.8