netfilter on solaris?
Hi,
It is a strange idea I know, but I'd be interested in what the opinion of the core netfilter developers is on porting the whole netfilter subsystem to Solaris?
Apart from the technical issues, would there be any problems? Does the GPL allow this kind of usage? (it would be implemented as a module)
Technically, the most difficult tasks are to remove the dependency on Linux like sk_buff (Solaris has a chain of mblk_t's), locking (it's more or less done using macros), routing differences and I suppose many things I don't see right now.
ps: don't tell me to use ipfilter (which works on Solaris), it's awful
Signature · 2 lines
Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Quoted 3 lines · Balazs Scheidler
It is a strange idea I know, but I'd be interested in what the opinion of the core netfilter developers is on porting the whole netfilter subsystem to Solaris?
You must have plenty of time. I envy you! :-)
Quoted 2 lines
Apart from the technical issues, would there be any problems? Does the GPL allow this kind of usage? (it would be implemented as a module)
If the module is GPLed, then I don't see problems here but I'm not a layer.
But how do you imagine the porting so that the maintenance would not become a nightmare?
Quoted 4 lines
Technically, the most difficult tasks are to remove the dependency on Linux like
sk_buff(Solaris has a chain of mblk_t's), locking (it's more or less done using macros), routing differences and I suppose many things I don't see right now.
Challenging. But wouldn't it be more straightforward to run Linux on that SPARC machine? And there are still plenty to do on 32/64bit issues in netfilter...
Regards,
Jozsef
-
E-mail : [email protected], [email protected]
WWW-Home: http://www.kfki.hu/~kadlec
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary
Quoted 7 lines · Jozsef Kadlecsik
Quoted 3 lines · Balazs Scheidler
It is a strange idea I know, but I'd be interested in what the opinion of the core netfilter developers is on porting the whole netfilter subsystem to Solaris?
You must have plenty of time. I envy you! :-)
I don't. I simply need to run Zorp on Solaris.
btw: I've found some proxy functionality in the Solaris core kernel while looking at the source. Should I turn to DaveM now pointing at this? :) (he was the one who said: I don't care about transparent proxying as long as it does _NOT_ touch the TCP core)
Quoted 6 lines
Quoted 3 lines
Apart from the technical issues, would there be any problems? Does the GPL allow this kind of usage? (it would be implemented as a module)
If the module is GPLed, then I don't see problems here but I'm not a layer.
I assume you meant an s/layer/lawyer/ here. As I know it is allowed to write GPLd modules for Photoshop (the gimp plugin issue), so it must be allowed to use GPLd modules in a propriately kernel.
Quoted 3 lines
But how do you imagine the porting so that the maintenance would not become a nightmare?
Of course I'd want to provide system independency using some headers which would make it work on both Linux/Solaris, so it could be incorporated into standard Netfilter as well.
So including headers would be changed from:
#include <linux/version.h>
#include <linux/module.h>
#include <linux/types.h>
....
#include <linux/netfilter_ipv4/ip_nat.h>
#include <linux/netfilter_ipv4/ip_nat_protocol.h>
#include <linux/netfilter_ipv4/ip_nat_core.h>
#include <linux/netfilter_ipv4/ip_nat_helper.h>
#include <linux/netfilter_ipv4/listhelp.h>
...
To:
#include "os.h"
#include <netfilter_ipv4/ip_nat.h>
etc.
And maybe references to sk_buff * and skb related functions would be changed to inline functions or macros. It's a huge work I assume, but ipfilter's code is _very_ disappointing.
Quoted 9 lines
Quoted 5 lines
Technically, the most difficult tasks are to remove the dependency on Linux like
sk_buff(Solaris has a chain of mblk_t's), locking (it's more or less done using macros), routing differences and I suppose many things I don't see right now.Challenging. But wouldn't it be more straightforward to run Linux on that SPARC machine? And there are still plenty to do on 32/64bit issues in netfilter...
The bad thing is that it's not a single computer I want to use. I want to create a product that runs on Suns, and it's generally not a good practice to dump Solaris and use Linux instead.
Signature · 2 lines
Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Quoted 6 lines · Balazs Scheidler
Quoted 2 lines
But how do you imagine the porting so that the maintenance would not become a nightmare?
Of course I'd want to provide system independency using some headers which would make it work on both Linux/Solaris, so it could be incorporated into standard Netfilter as well.
Just to make this clear:
As long as I am one of the maintainers of netfilter/iptables, I am not going to do any extra hassle in order to support different operating systems. This includes using weird different types instead of sk_buff. Linux kernel hackers expect to see linux code, not something abstract using only typedefs and macros all over the place.
Sorry.
Quoted 1 line
Bazsi
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)
Quoted 7 lines · Harald Welte
On Fri, Jun 14, 2002 at 12:47:07PM +0200, Balazs Scheidler wrote:
As long as I am one of the maintainers of netfilter/iptables, I am not going to do any extra hassle in order to support different operating systems. This includes using weird different types instead of
sk_buff. Linux kernel hackers expect to see linux code, not something abstract using only typedefs and macros all over the place.
ok, it was only an idea. I thought netfilter would only benefit from the effort. the technical problems would be overwhelming anyway.
Signature · 2 lines
Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Quoted 5 lines · Balazs Scheidler
Hi,
It is a strange idea I know, but I'd be interested in what the opinion of the core netfilter developers is on porting the whole netfilter subsystem to Solaris?
After my netfilter presentation at linuxtag, somebody was asking me exactly this question.
Quoted 2 lines
Apart from the technical issues, would there be any problems? Does the GPL allow this kind of usage? (it would be implemented as a module)
This is basically the same question like binary-only kernel modules.
The GPL just talks about linking with libraries, since it was written at the time people were working on userspace programs.
Linus has generally given his permission, that his code might be called from binary-only kernel modules
Rusty has always made it very clear, that he doesn't share this view and he has never given permission for people using any of his code from binary- only modules.
Having netfilter within a different kernel, is technically the same:
GPL'd netfilter/iptables code is called from a binary-only kernel.
Thus, my conclusion would be: Without the explicit permission of the authors, it is legally not possible to use netfilter/iptables within a proprietary OS kernel. But of coursel, I am not a lawyer.
I for myself are somewhat undecided, but I tend to share Rusty's view:
I haven't ever given permission for using my code by binary only kernel modules. All new code I'm working on wil export GPLONLY to make sure about that.
Quoted 1 line
ps: don't tell me to use ipfilter (which works on Solaris), it's awful
I don't share this opinion, but this doesn't matter - it's off-topic.
Quoted 1 line
Bazsi
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)
Quoted 9 lines · Harald Welte
Quoted 5 lines · Balazs Scheidler
Hi,
It is a strange idea I know, but I'd be interested in what the opinion of the core netfilter developers is on porting the whole netfilter subsystem to Solaris?
After my netfilter presentation at linuxtag, somebody was asking me exactly this question.
And your answer was?
Quoted 4 lines
Quoted 2 lines
Apart from the technical issues, would there be any problems? Does the GPL allow this kind of usage? (it would be implemented as a module)
This is basically the same question like binary-only kernel modules.
I think it is more similar to Gimp plugins under Photoshop case.
Quoted 3 lines
Having netfilter within a different kernel, is technically the same:
GPL'd netfilter/iptables code is called from a binary-only kernel.
Under binary-only you mean propriatery, or something nonGPLd? Solaris kernel source _is_ available, though it doesn't use the GPL.
Quoted 8 lines
Thus, my conclusion would be: Without the explicit permission of the authors, it is legally not possible to use netfilter/iptables within a proprietary OS kernel. But of coursel, I am not a lawyer.
I for myself are somewhat undecided, but I tend to share Rusty's view:
I haven't ever given permission for using my code by binary only kernel modules. All new code I'm working on wil export GPLONLY to make sure about that.
I think while disallowing binary only modules restrict the vendors who release propriatery software relying on free software, disallowing netfilter on propriatery platforms restrict users who would like to use free software on their platform. Even the GPL makes difference between propriatery system and non-system libraries.
While it is a possibility to dump the native OS, and replace it with Linux, most non-x86 platforms work with their native OS best (be it HP-UX, Solaris or Tru64).
This argument is worthless anyway. The task is tedious, and without support of the original developers it would die immediately.
Signature · 2 lines
Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
Quoted 4 lines · Balazs Scheidler
Quoted 3 lines · Harald Welte
Quoted 2 lines · Balazs Scheidler
Hi,
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
It is a strange idea I know, but I'd be interested in what the opinion of the core netfilter developers is on porting the whole netfilter subsystem to Solaris?
After my netfilter presentation at linuxtag, somebody was asking me exactly this question.
And your answer was?
what a weird idea. I told him that it is technically not easy and the core team certainly has no plans of ever supporting this thing. I didn't even start to talk about licensing issues.
Quoted 3 lines
Quoted 1 line
This is basically the same question like binary-only kernel modules.
I think it is more similar to Gimp plugins under Photoshop case.
I'm not aware of this case - we are not talking about .so's [libraries] being linked to an application, which is what the GPL is talking about.
Quoted 2 lines
Under binary-only you mean propriatery, or something nonGPLd? Solaris kernel source _is_ available, though it doesn't use the GPL.
well, source is available if you sign some very interesting license conditions, IIRC. Anyway, this is not important. When I was talking about proprietary or binary-only, I should have said: GPL-incompatible.
Quoted 1 line
Bazsi
Signature · 5 lines
Live long and prosper - Harald Welte / [email protected] http://www.gnumonks.org/ ============================================================================ GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)