Re: PF: Redirect traffic to server in public internet

2007-03-20 Thread Stuart Henderson
On 2007/03/19 09:33, Matiss Miglans wrote:
 Maybe this is newbie question, but i cant find answer.
 What I do wrong, or maybe that is impossible ?

http://www.openbsd.org/faq/pf/rdr.html Redirection and reflection
applies here. One of the methods given there is probably suitable.

In 4.1, you will have another choice: hoststated.



PF: Redirect traffic to server in public internet

2007-03-19 Thread Matiss Miglans

Hi !

Maybe this is newbie question, but i cant find answer.
I try to make redirection, the destination server is not in Lan, but in 
public Internet.


Public Internet  Router/PF with 
real IP Server with real IP in Public Internet
|--|  
|-|  |- -|
| |  |  111.111.111.111 
 |-- |222.222.222.222|
|--|  
|-|  | --|


I try to do that with PF,  but that not work.
rdr proto tcp from any to any port 22 - 222.222.222.222 port 22
If  the destination server are in lan (with virtual IP 192.168.x.x. ), 
then all works fine.

What I do wrong, or maybe that is impossible ?
Maybe there are some better ways to do this ?
Thanks