* RE: [OT] Re: Linux NAT questions- (kernel upgrade??)
@ 2001-05-03 1:20 Sim, CT (Chee Tong)
2001-05-03 2:41 ` J Sloan
0 siblings, 1 reply; 3+ messages in thread
From: Sim, CT (Chee Tong) @ 2001-05-03 1:20 UTC (permalink / raw)
To: 'J Sloan'; +Cc: Linux kernel
I am using the Red Hat 7, below are my kernel version. I feel Red Hat 7 is
quite new, although RH 7.1 has just come out. How come it still say that my
kernel version is old.
[root@guava simc]# uname -a
Linux guava 2.2.16-22 #1 Tue Aug 22 16:16:55 EDT 2000 i586 unknown
[root@guava simc]#
-----Original Message-----
From: J Sloan [mailto:jjs@toyota.com]
Sent: Thursday, May 03, 2001 1:24 AM
To: Sim, CT (Chee Tong)
Cc: Linux kernel
Subject: [OT] Re: Linux NAT questions- (kernel upgrade??)
"Sim, CT (Chee Tong)" schrieb:
> Hi.. I follow your instruction, but I encounter this issue, my kernel need
> to be upgrade? MAy I know how to determine the current kernel version
uname -a
> and
> how to upgrade it??
Either upgrade to a distro that includes the new kernel
(e.g. latest SuSE or Red Hat) or download kernel source
and compile. It might be helpful to provide the distribution
and version you are using (Red Hat 6.2, Slackware 7,
Debian Potato, etc)
> [root@guava /root]# iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160
-i
> eth1 -j D
> NAT --to-destination 192.168.200.2
> iptables v1.1.1: can't initialize iptables table `nat': iptables who? (do
> you need to insm
> od?)
> Perhaps iptables or your kernel needs to be upgraded.
>
> [root@guava simc]# rpm -ivh iptables-1_2_0-6_i386.rpm
> error: failed dependencies:
> kernel >= 2.4.0 is needed by iptables-1.2.0-6
Yes, of course iptables won't work with the old kernel.
If you want to stay with the old kernel, you must use
ipchains instead.
cu
Jup
==================================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht
onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en
de afzender direct te informeren door het bericht te retourneren.
==================================================================
The information contained in this message may be confidential
and is intended to be exclusively for the addressee. Should you
receive this message unintentionally, please do not use the contents
herein and notify the sender immediately by return e-mail.
==================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OT] Re: Linux NAT questions- (kernel upgrade??)
2001-05-03 1:20 [OT] Re: Linux NAT questions- (kernel upgrade??) Sim, CT (Chee Tong)
@ 2001-05-03 2:41 ` J Sloan
0 siblings, 0 replies; 3+ messages in thread
From: J Sloan @ 2001-05-03 2:41 UTC (permalink / raw)
To: Sim, CT (Chee Tong); +Cc: 'J Sloan', Linux kernel
"Sim, CT (Chee Tong)" schrieb:
> I am using the Red Hat 7, below are my kernel version. I feel Red Hat 7 is
> quite new, although RH 7.1 has just come out. How come it still say that my
> kernel version is old.
Ah, by old is meant the 2.2 version -
7.1 is the first RH release to ship with kernel 2.4.
You can certainly run a 2.4 kernel on your 7.0
box - I only ran 2.2.16 on my RH 7.0 boxes for
as long as it tool me to pull down the kernel
sources and compile a 2.4 kernel.
cu
jjs
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Linux NAT questions- (kernel upgrade??)
@ 2001-05-02 10:14 Sim, CT (Chee Tong)
2001-05-02 17:24 ` [OT] " J Sloan
0 siblings, 1 reply; 3+ messages in thread
From: Sim, CT (Chee Tong) @ 2001-05-02 10:14 UTC (permalink / raw)
To: 'Michel Wilson', Sim, CT (Chee Tong); +Cc: linux-kernel
Hi.. I follow your instruction, but I encounter this issue, my kernel need
to be upgrade? MAy I know how to determine the current kernel version and
how to upgrade it??
[root@guava /root]# iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160 -i
eth1 -j D
NAT --to-destination 192.168.200.2
iptables v1.1.1: can't initialize iptables table `nat': iptables who? (do
you need to insm
od?)
Perhaps iptables or your kernel needs to be upgraded.
[root@guava simc]# rpm -ivh iptables-1_2_0-6_i386.rpm
error: failed dependencies:
kernel >= 2.4.0 is needed by iptables-1.2.0-6
-----Original Message-----
From: Michel Wilson [mailto:michel@procyon14.yi.org]
Sent: Wednesday, May 02, 2001 5:13 PM
To: Sim, CT (Chee Tong)
Cc: linux-kernel@vger.kernel.org
Subject: RE: Linux NAT questions
> what I am trying to do is this. I have a genuine network, say 1.1.1.x, and
> my Linux host is on it, as 1.1.1.252 (eth0). I also have a second
> network at
> the back of the Linux box, 192.168.200.x, and a web server on
> that network,
> 192.168.200.2. The Linux address is 192.168.200.1 on eth1.
>
> What I want to do is make the web server appear on the 1.1.1.x network as
> 1.1.1.160. I have done this before with Firewall-1 on NT, by
> putting an arp
> entry for 1.1.1.160 to point to the Linux machine eth0. The packets get
> redirected into the Linux machine, then translated, and then routed out of
> eth1.
>
> The benefit is that there is no routing change to the 1.1.1.x network, and
> the Linux box isn't even seen as a router.
>
> I would appreciate any help with this. Any command to do this?
>
> Chee Tong
This isn't really a kernel question. I think you'd better ask it on some
linux network list/newsgroup. But here's an answer anyway....
You could add 1.1.1.160 to eth0:
ip addr add 1.1.1.160 dev eth0
and then use NAT to redirect these to the webserver:
iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160 -i eth1 -j
DNAT --to-destination 192.168.200.2
This should work, AFAIK, but i didn't try it myself. You could also try to
use the arp command (see 'man arp'), but i don't know exactly how that
works.
Good luck!
Michel Wilson.
==================================================================
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en
is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht
onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en
de afzender direct te informeren door het bericht te retourneren.
==================================================================
The information contained in this message may be confidential
and is intended to be exclusively for the addressee. Should you
receive this message unintentionally, please do not use the contents
herein and notify the sender immediately by return e-mail.
==================================================================
^ permalink raw reply [flat|nested] 3+ messages in thread* [OT] Re: Linux NAT questions- (kernel upgrade??)
2001-05-02 10:14 Sim, CT (Chee Tong)
@ 2001-05-02 17:24 ` J Sloan
0 siblings, 0 replies; 3+ messages in thread
From: J Sloan @ 2001-05-02 17:24 UTC (permalink / raw)
To: Sim, CT (Chee Tong); +Cc: Linux kernel
"Sim, CT (Chee Tong)" schrieb:
> Hi.. I follow your instruction, but I encounter this issue, my kernel need
> to be upgrade? MAy I know how to determine the current kernel version
uname -a
> and
> how to upgrade it??
Either upgrade to a distro that includes the new kernel
(e.g. latest SuSE or Red Hat) or download kernel source
and compile. It might be helpful to provide the distribution
and version you are using (Red Hat 6.2, Slackware 7,
Debian Potato, etc)
> [root@guava /root]# iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160 -i
> eth1 -j D
> NAT --to-destination 192.168.200.2
> iptables v1.1.1: can't initialize iptables table `nat': iptables who? (do
> you need to insm
> od?)
> Perhaps iptables or your kernel needs to be upgraded.
>
> [root@guava simc]# rpm -ivh iptables-1_2_0-6_i386.rpm
> error: failed dependencies:
> kernel >= 2.4.0 is needed by iptables-1.2.0-6
Yes, of course iptables won't work with the old kernel.
If you want to stay with the old kernel, you must use
ipchains instead.
cu
Jup
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-05-03 2:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-03 1:20 [OT] Re: Linux NAT questions- (kernel upgrade??) Sim, CT (Chee Tong)
2001-05-03 2:41 ` J Sloan
-- strict thread matches above, loose matches on Subject: below --
2001-05-02 10:14 Sim, CT (Chee Tong)
2001-05-02 17:24 ` [OT] " J Sloan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox