On 2016-06-09, Markus Wernig <liste...@wernig.net> wrote:
> On 06/09/2016 08:03 PM, Bryan Vyhmeister wrote:
>> On Thu, Jun 9, 2016, at 10:48 AM, Markus Wernig wrote:
>>> Short question:
>>> How do I prevent pf from changing the source port of outgoing natted udp
>>> packets?
>>  
>> Did you look at static-port in pf.conf(5)?
>
> Argh! I had overlooked that. Shame. Works now.

Remember that static-port means you can't have two machines behind
the same NAT using the same source port and destination.

If it's OK to change the source port as long as it ends up within
a certain port range, you can do something like 'nat-to $address port
8000:9000'.

Reply via email to