diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-27 04:34:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-27 04:34:52 +0000 |
commit | 79b522704c660d8395864a6a7e7621f25b410e8d (patch) | |
tree | 8b0145f5c55754c7b401143e1983bc7ed9c931a7 /etc/inc | |
parent | 94fbb7a9f4f3a0022c96b6b1a6e9f8e0e1ab5b99 (diff) | |
download | pfsense-79b522704c660d8395864a6a7e7621f25b410e8d.zip pfsense-79b522704c660d8395864a6a7e7621f25b410e8d.tar.gz |
loop through optional interfaces. if a gateway is set, lets scrub em down!
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 4bcd1cf..6b993b3 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -126,9 +126,16 @@ function filter_configure_sync() { $maximumstates = $config['system']['maximumstates']; $rules.= "set limit states " . $maximumstates . "\n"; } - $rules.= "\n"; $rules.= "scrub on {$wanif} all " . $mssclamp ."\n"; // reassemble all directions + /* loop through optional interfaces. if a gateway is set, lets scrub em down! */ + for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) { + if($config['interfaces']["opt" . $j]['gateway'] <> "") { + $if = convert_friendly_interface_to_real_interface_name("opt{$j}"); + $rules.= "scrub on {$if} all " . $mssclamp ."\n"; // reassemble all directions + } + } + $rules.= $altq_ints . "\n"; $rules.= $altq_queues . "\n"; $rules.= $natrules . "\n"; |