[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PF - problems with nat of port numbers.



Hi,

I have this rule in my pf.conf:

nat on $ext_if from 192.168.1.1 port 1234 to any -> ($ext_if) \
    port 6112

The problem is that port numbers don't get translated to 6112,
actually. The rule is fired properly, but the originating connections
are given some random port numbers. 

pfctl -s nat gives the following output:

nat on ne3 inet from 192.168.1.1 port = 1234 to any -> (ne3) \
    port 6112:57367

I'm wondering about that colon and (a port?) number on the right side
of the rule. What is it? And what might be the reason it doesn't work?

I have 3.3 release.

Thanks,
Piotr Zgorecki



Visit your host, monkey.org