Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2005 08:01:20 +0200
From:      Vasil Dimov <vd@datamax.bg>
To:        OxY <oxy@field.hu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: ipfw forwarding
Message-ID:  <20051214060120.GA6833@qlovarnika.bg.datamax>
In-Reply-To: <001701c6000a$86eab700$0201a8c0@oxy>
References:  <001701c6000a$86eab700$0201a8c0@oxy>

next in thread | previous in thread | raw e-mail | index | archive | help

--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 13, 2005 at 06:27:43PM +0100, OxY wrote:
> hi!
>=20
> i have a probably dumb question, can't get through it..
>=20
> i have some ips on my server (x.x.x.28 and x.x.x.204 is important)..
>=20
> tried to forward packets from one ip to the other and ipfw doesn't do=20
> anything.
> i'd like to catch the packets on .204 port 80 and send them to one of my=
=20
> vhosts
> (domain is on .28)
>=20
> so anybody on the internet may open the .204 address from browser and get=
=20
> back
> the .28 content..
>=20
> i used this rule:
>=20
> $cmd 00316 fwd x.x.x.x.204,80 tcp from any to x.x.x.28 80
>=20
> what's wrong with it?
>=20

I suggest that you read *carefully* ipfw(8) and rewrite your rule to:

00316 fwd x.x.x.x.28,80 tcp from any to x.x.x.204 80

Good luck!

--=20
Vasil Dimov

--5mCyUwZo2JvN/JJP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iD8DBQFDn7UvFw6SP/bBpCARAtjoAJ9Kqcv5GaqStoCSemuGC77Em8/OfgCgzR9O
4DsR8gYW9N6wss4rrL0/FcQ=
=nfhD
-----END PGP SIGNATURE-----

--5mCyUwZo2JvN/JJP--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051214060120.GA6833>