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>

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

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

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!

-- 
Vasil Dimov

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

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

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