diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 02:25:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 02:25:02 +0000 |
commit | 07c76d1819013dee150a237c2a3debe019422c01 (patch) | |
tree | 01d76b8a1bfb5f910ddd7c12f7abd9a854bab057 /etc | |
parent | d2cfb7a4f7f11653b2372ebec416c5482b32afd4 (diff) | |
download | pfsense-07c76d1819013dee150a237c2a3debe019422c01.zip pfsense-07c76d1819013dee150a237c2a3debe019422c01.tar.gz |
Backend portino of add the ability to define networks, ports and or hosts as aliases. Allow the alias to point to more than ONE item ;)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 1795417..6b42b69 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -301,6 +301,11 @@ function filter_nat_rules_generate() { } } + /* Setup pf groups */ + if (isset($config['aliases']['alias'] as $alias) { + $natrules .= $alias['name'] . " = { " . $alias['address'] . " }\n"; + } + /* Setup outgoing NAT load balancing */ if (isset($config['nat']['outgoingloadbalancing']['rule'])) { $natrules .= "pass in on " . $lanif . " route-to { "; |