Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jul 2010 19:41:07 -0200
From:      Thomas Elsgaard <thomas.elsgaard@gmail.com>
To:        freebsd-pf@freebsd.org
Subject:   How to do PAT based on source IP network and port ?
Message-ID:  <AANLkTimKumBkUdZSH4p_xANTZxUNtOmw_n2COfhnb-Oh@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi

I am wondering how i can get pf to do a PAT based on source IP network?

Traffic from 10.5.1.0/24 towards UDP port 69 should be mapped to port
20000 instead of port 69
Traffic from 10.5.2.0/24 towards UDP port 69 should be mapped to port
20001 instead of port 69

Traffic is accessing a service on the same server where pf is running.

Is this possible with pf?

Thomas



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimKumBkUdZSH4p_xANTZxUNtOmw_n2COfhnb-Oh>