diff options
author | jim-p <jimp@pfsense.org> | 2011-11-15 16:28:45 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-11-15 16:30:25 -0500 |
commit | 4573641589d50718b544b778cea864cfd725078a (patch) | |
tree | 56d28cdf5657a3a14a9f6f8033e003486c7e4232 /etc | |
parent | a02ecc943fbda1c47fc25a19cad2b12c297bd346 (diff) | |
download | pfsense-4573641589d50718b544b778cea864cfd725078a.zip pfsense-4573641589d50718b544b778cea864cfd725078a.tar.gz |
Add a gui field to set the source tracking timeout for sticky connections.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 29864df..fdd43b7 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -280,6 +280,8 @@ function filter_configure_sync($delete_states_if_needed = true) { /* User defined maximum table entries in Advanced menu. */ $rules .= "set limit table-entries {$config['system']['maximumtableentries']}\n"; } + if (isset($config['system']['lb_use_sticky']) && is_numeric($config['system']['srctrack']) && ($config['system']['srctrack'] > 0)) + $rules .= "set timeout src.track {$config['system']['srctrack']}\n"; // Configure flowtable support if enabled. flowtable_configure(); |