Re: pf change destination port for outgoing traffic

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: scott
Date: Wednesday, April 9, 2008 - 2:24 am

When you say, "...b.b.b.b represents every server the client wants," do
you mean (i) every server from a known set of servers, or do you mean
(ii) any server --public and private-- on the Internet?


-----Original Message-----
From: Karel Galuska <galuska@2gm.cz>
To: misc@openbsd.org
Subject: pf change destination port for outgoing traffic
Date: Wed, 9 Apr 2008 08:23:50 +0200
Mailer: Microsoft Outlook Express 6.00.2900.3138
Delivered-To: 8f27e956@gmail.com

Hi all,
I use OpenBSD as a firewall with nat function for local network.
For special reason now I need change some destination ports for outgoing
traffic to every
internet server.

For example when internal PC a.a.a.a wants to connect internet server b.b.b.b
on port p1 I need transparently redirect connection to port p2 of the same
internet server b.b.b.b.
But b.b.b.b represents every internet server, which client wants to connect.

Could you please help me construct the pf rule?

Thanks
Karel
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
pf change destination port for outgoing traffic, Karel Galuska, (Tue Apr 8, 11:23 pm)
Re: pf change destination port for outgoing traffic, Lars Noodén, (Wed Apr 9, 1:12 am)
Re: pf change destination port for outgoing traffic, scott, (Wed Apr 9, 2:24 am)