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

PF - problems with nat of port numbers.


I have this rule in my pf.conf:

nat on $ext_if from 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 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.

Piotr Zgorecki