🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.bsd
Article #21041

Re: freebsd i pf

#21041
From: Paweł Slotorsz
Date: Mon, 26 Oct 2009 21:10
31 lines
1597 bytes
Dnia 26-10-2009 o 21:20:21 Krzysztof Żurawski <zurawskik@wp.pl> napisał(a):

> witam
> mam pytanie do znawcow tamatu pf
>
> jest tak przekierowanie na squida dziala
>
>
> rdr on $int_if inet proto tcp from any to any port 80 -> 192.168.0.1  
> port 8080
>
> ale jak przekierowac konkretnego klienta na inny serwer
> #rdr on $int_if inet proto tcp from 192.168.0.240 to any port 80 ->  
> 192.168.0.222 port 80
> ale to nie dziala a juz nie ma pomyslow

kolejnosc regul, najpierw to:

> #rdr on $int_if inet proto tcp from 192.168.0.240 to any port 80 ->  
> 192.168.0.222 port 80

a pozniej to:

> rdr on $int_if inet proto tcp from any to any port 80 -> 192.168.0.1  
> port 8080


-- 
Pozdrawiam,

Paweł Slotorsz
Technical Details
Message-ID: <op.u2fef3i5i0wyoe@toshiba-dfg>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!plix.pl!newsfeed1.plix.pl!news2.icm.edu.pl!not-for-mail
References: <hc50en$hps$1@atlantis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!plix.pl!newsfeed1.plix.pl!news2.icm.edu.pl!not-for-mail
From: Paweł Slotorsz <pawel@slotorsz.com>
Newsgroups: pl.comp.os.bsd
Subject: Re: freebsd i pf
Date: Mon, 26 Oct 2009 22:10:41 +0100
Organization: http://news.icm.edu.pl/
Lines: 31
Message-ID: <op.u2fef3i5i0wyoe@toshiba-dfg>
References: <hc50en$hps$1@atlantis.news.neostrada.pl>
Reply-To: pawel@slotorsz.com
NNTP-Posting-Host: chello089076167046.chello.pl
Mime-Version: 1.0
X-Trace: achot.icm.edu.pl 1256591441 3745 89.76.167.46 (26 Oct 2009 21:10:41 GMT)
X-Complaints-To: abuse@icm.edu.pl
NNTP-Posting-Date: Mon, 26 Oct 2009 21:10:41 +0000 (UTC)
User-Agent: Opera Mail/10.00 (Win32)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit