Hi, I've posted this to ServerFault.com, and I got an answer, but the
solution works only in part.

This is my /etc/pf.conf

set skip on lo
pass in log on em0 proto tcp from any to any port 104 rdr-to 192.65.214.131
pass out on vic0 from em0:network to any nat-to vic0    

I have two nics:

vic0 192.65.214.136
em0 192.168.200.3

What I want to do is to forward all packets comming into 192.168.200.3
port 104 to 192.65.214.131 port 104.

The above configuration works perfectly if the sender interface is in
the network 192.168.200.x, but I also must allow packets comming from
other networks, like 192.168.7.x, for example.

How can I enable them?.

Regards,
-- 
Leonardo M. Rami
Medical IT - Griensu S.A.
Av. Colsn 636 - Piso 8 Of. A
X5000EPT -- Csrdoba
Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979 int. 19
Cel.: +54(351)156629292

Reply via email to