[SLE] Compile a kernel
Hi, This may be a stupid question, but is there a simple explanation (step-by-step?) how to compile a kernel? For instance: I want to forward some ports to an internal, private box with IP 192.168.1.2. I'd have to recompile my kernel with some additional options, like: CONFIG_EXPERIMENTAL=y CONFIG_IP_MASQUERADE=y CONFIG_IP_MASQUERADE_MOD=y and CONFIG_IP_MASQUERADE_IPAUTOFW=y/m CONFIG_IP_MASQUERADE_IPPORTFW=y/m CONFIG_IP_MASQUERADE_MFW=y/m ror respective modules But how?! I've never compiled a kernel before and I wouldn't know.. TIA, Rogier Maas -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Wed, 5 Jan 2000, Rogier Maas wrote:
This may be a stupid question, but is there a simple explanation (step-by-step?) how to compile a kernel?
Yes, there is a kernel HOWTO.
For instance: I want to forward some ports to an internal, private box with IP 192.168.1.2. I'd have to recompile my kernel with some additional options, like:
CONFIG_EXPERIMENTAL=y CONFIG_IP_MASQUERADE=y CONFIG_IP_MASQUERADE_MOD=y and CONFIG_IP_MASQUERADE_IPAUTOFW=y/m CONFIG_IP_MASQUERADE_IPPORTFW=y/m CONFIG_IP_MASQUERADE_MFW=y/m ror respective modules
But how?! I've never compiled a kernel before and I wouldn't know..
I don't think it is necessary. The stock SuSE kernel already has these options compiled in. Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Schanzaeckerstr. 10 http://www.suse.de/~grimmer 90443 Nuernberg, Germany -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Lenz Grimmer wrote:
Rogier Maas wrote:
For instance: I want to forward some ports to an internal, private box with IP 192.168.1.2. I'd have to recompile my kernel with some additional options, like:
CONFIG_EXPERIMENTAL=y CONFIG_IP_MASQUERADE=y CONFIG_IP_MASQUERADE_MOD=y and CONFIG_IP_MASQUERADE_IPAUTOFW=y/m CONFIG_IP_MASQUERADE_IPPORTFW=y/m CONFIG_IP_MASQUERADE_MFW=y/m ror respective modules
But how?! I've never compiled a kernel before and I wouldn't know..
I don't think it is necessary. The stock SuSE kernel already has these options compiled in.
Then why doesn't my SuSE 6.2 forward the packets? Here's what I have and want, maybe you have a solution: SuSE 6.2 with eth0, eth1, eth2 / eth0: private 192.168.1.0 eth1: public (dhcp'ed) - Linux box \ eth2: private 192.168.2.0 I want to map incoming reqs on eth1 port 80 to 192.168.2.2 (eth2), port 80. Note that eth0 and eth2 are masqed using ipchains. I tried ipmasqadm (maybe this is not the right name), but that won't forward them. What should I use? TIA again! Rogier Maas -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Wed, 5 Jan 2000, Rogier Maas wrote:
I don't think it is necessary. The stock SuSE kernel already has these options compiled in.
Then why doesn't my SuSE 6.2 forward the packets?
Here's what I have and want, maybe you have a solution:
SuSE 6.2 with eth0, eth1, eth2
/ eth0: private 192.168.1.0 eth1: public (dhcp'ed) - Linux box \ eth2: private 192.168.2.0
I want to map incoming reqs on eth1 port 80 to 192.168.2.2 (eth2), port 80.
Note that eth0 and eth2 are masqed using ipchains. I tried ipmasqadm (maybe this is not the right name), but that won't forward them. What should I use?
Did you set IP_FORWARD in /etc/rc.config to "yes" ? Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Schanzaeckerstr. 10 http://www.suse.de/~grimmer 90443 Nuernberg, Germany -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Lenz Grimmer wrote:
On Wed, 5 Jan 2000, Rogier Maas wrote:
I don't think it is necessary. The stock SuSE kernel already has these options compiled in.
Then why doesn't my SuSE 6.2 forward the packets?
I want to map incoming reqs on eth1 port 80 to 192.168.2.2 (eth2), port 80.
Did you set IP_FORWARD in /etc/rc.config to "yes" ?
Yes, and ipmasqadm gives no error when entering the rule. Do you know a rule I can do? I saw three 'modules' I can use, but I'm not sure which one I should use. Maybe it's wise to rephrase the question: How can I forward a port to an internal host? Thanks, Rogier -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Thu, 6 Jan 2000, Rogier Maas wrote:
Yes, and ipmasqadm gives no error when entering the rule. Do you know a rule I can do? I saw three 'modules' I can use, but I'm not sure which one I should use.
That is strange.
Maybe it's wise to rephrase the question: How can I forward a port to an internal host?
I know it is possible with ipchains as well, however I have no experience with it. You may want to try "rinetd" from Tom Boutell instead, it does exactly this. I have written a short HOWTO about rinetd, see my homepage for more info. Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Schanzaeckerstr. 10 http://www.suse.de/~grimmer 90443 Nuernberg, Germany -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi.
At 11:17 on 5 Jan 00, Rogier Maas begun to yabber about "Re: [SLE]
Compile a kernel"
Date sent: Wed, 05 Jan 2000 11:17:16 +0100
From: Rogier Maas
I don't think it is necessary. The stock SuSE kernel already has these options compiled in.
Then why doesn't my SuSE 6.2 forward the packets?
I have never had any problems with ip forwarding in any of my experience with SuSE Linux.. 6.1-6.3 :) Then again.. I do recompile my kernels.. Ahh.. Disregard :) Cya Matthew Matthew King: Sys Admin, Quakers Hill High School. My ICQ#: 2342475 Message me! Cellular Phone: +61 415 257 516 E-Mail: noodle@penguinpowered.com Homepage: http://www.penguinpowered.com/~noodle/ -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT 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+ ------END GEEK CODE BLOCK------ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
grimmer@suse.de
-
icarus@guldennet.nl
-
noodle@penguinpowered.com