Thread View: bit.listserv.openbsd-pf
1 messages
1 total messages
Started by Nejc Škoberne
Fri, 22 Jun 2012 16:09
Source port translation only
Author: Nejc Škoberne
Date: Fri, 22 Jun 2012 16:09
Date: Fri, 22 Jun 2012 16:09
29 lines
1720 bytes
1720 bytes
Hi, I want to do (stateful) source port translation (restriction actually) on my outgoing packets, but no source address translation. And I want to do it for IPv6. So if there is a TCP packet like this: SRC ADDR: 2001:db8::10 DST ADDR: 2001:c0de: SRC PORT: 53523 DST PORT: 80 I want to translate it so that the source port falls into a specific port range, say [1024:2047]: SRC ADDR: 2001:db8::10 DST ADDR: 2001:c0de: SRC PORT: 1500 DST PORT: 80 If the source port is already in the requested port range, no translation is needed (but the state has to be kept anyway). Is this possible to do with pf? If not, does anybody know for any other (simple) way to do it? Thanks, Nejc
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads