Project

General

Profile

Actions

Feature #1225

closed

static port range and outbound rules source port range (only to be tested and integrated, already coded)

Added by Martin Dupont over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Rules / NAT
Target version:
-
Start date:
01/23/2011
Due date:
% Done:

50%

Estimated time:
Plus Target Version:
Release Notes:

Description

When you go to NAT Outbound, you can create rules to make 1 port static, or to force the source port (for example, force that traffic with source port 5111 from host 192.168.0.1 will be NATed to WAN_IP:51110).
This is nice, of course, but not quite helpful when it comes to SIP, since you have a range of RTP port to make static.

Based on the built "built on Sun Jan 23 06:46:02 EST 2011", I've patched the GUI so that it can now handle ranges of static ports with a single rule, as pf supports it. This is a very simple patch requiring to change only 3 files (Outbound NAT rules edition, Outbound NAT rules listing, and pf rules file generation).

I'm willing to contribute those small changes, and have been told to way it in forum, thus, if a developer of pfSense is interested, I'd be glad if pfSense would contain a few lines of code from me Wink

(btw, the few lines are ONLY copy-paste-edit)

I'm attaching an archive with the files in their original state, and after changes.


Files

files.zip (69.8 KB) files.zip Original and patched files Martin Dupont, 01/23/2011 11:08 AM
Actions

Also available in: Atom PDF