[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: IPNat and 1 interface
- To: "Geoffrey T. Cheshire" <gtc_(_at_)_cheshirelaw_(_dot_)_com>, "Chris Cameron" <chris_(_at_)_UpNIX_(_dot_)_com>, "OpenBSD Misc List" <misc_(_at_)_openbsd_(_dot_)_org>
- Subject: RE: IPNat and 1 interface
- From: "Mark Baenziger" <markb_(_at_)_e-quill_(_dot_)_com>
- Date: Thu, 1 Mar 2001 08:46:26 -0800
- Importance: Normal
I've had a 2.8 STABLE box ipnatting with just one interface with
an extra IP aliased to the interface. It works like a charm - I use it
on an
internal test lab to simulate the effect of one of our load balancers.
$ cat /etc/hostname.fxp0
inet 10.1.0.150 255.255.255.0
inet alias 192.168.50.80 255.255.255.0
inet alias 192.168.50.81 255.255.255.0
$ cat /etc/ipnat.rules
rdr fxp0 192.168.50.80/32 port 80 -> 10.1.0.209 port 80
rdr fxp0 192.168.50.81/32 port 80 -> 10.1.0.209 port 80
rdr fxp0 192.168.50.80/32 port 443 -> 10.1.0.209 port 443
rdr fxp0 192.168.50.81/32 port 443 -> 10.1.0.209 port 444
Mark
-----Original Message-----
From: owner-misc_(_at_)_openbsd_(_dot_)_org [mailto:owner-misc_(_at_)_openbsd_(_dot_)_org]On Behalf Of
Geoffrey T. Cheshire
Sent: Wednesday, February 28, 2001 8:43 PM
To: Chris Cameron; OpenBSD Misc List
Subject: RE: IPNat and 1 interface
Hmm.. How would this work? You need two interfaces--a NIC and a modem
or two
NIC's AFAIK.
Geoff
-----Original Message-----
From: owner-misc_(_at_)_openbsd_(_dot_)_org [mailto:owner-misc_(_at_)_openbsd_(_dot_)_org]On Behalf Of
Chris Cameron
Sent: Wednesday, February 28, 2001 6:00 PM
To: misc_(_at_)_openbsd_(_dot_)_org
Subject: IPNat and 1 interface
Is it possible to do IPNat with only 1 interface?
I've tried some of the basic examples but my Win98 box will have none of
that. (Plus 'ipnat -l' show nothing).
Thanks,
Chris
Visit your host, monkey.org