Skip to content

Commit

Permalink
filter: rip out an unused table
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Aug 28, 2015
1 parent 74e3d1f commit f326e38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
9 changes: 2 additions & 7 deletions src/etc/inc/filter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,11 @@ function filter_generate_aliases()
}
}

$aliases .= "\n#SSH Lockout Table\n";
$aliases .= "\n# SSH Lockout Table\n";
$aliases .= "table <sshlockout> persist\n";
$aliases .= "table <webConfiguratorlockout> persist\n";

$aliases .= "#Snort tables\n";
$aliases .= "table <snort2c>\n";
$aliases .= "# Other tables\n";
$aliases .= "table <virusprot>\n";
touch('/usr/local/etc/bogons');
touch('/usr/local/etc/bogonsv6');
Expand Down Expand Up @@ -2680,10 +2679,6 @@ block {$log['block']} quick inet proto { tcp, udp } from any to any port = 0
block {$log['block']} quick inet6 proto { tcp, udp } from any port = 0 to any
block {$log['block']} quick inet6 proto { tcp, udp } from any to any port = 0
# Snort package
block {$log['block']} quick from <snort2c> to any label "Block snort2c hosts"
block {$log['block']} quick from any to <snort2c> label "Block snort2c hosts"
EOD;


Expand Down
15 changes: 2 additions & 13 deletions src/etc/inc/upgrade_config.inc
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ function upgrade_024_to_025() {
unset($config['system']['use_rrd_gateway']);
}

function upgrade_025_to_026() {
function upgrade_025_to_026()
{
global $config;
$cron_item = array();
$cron_item['minute'] = "0";
Expand Down Expand Up @@ -568,20 +569,8 @@ function upgrade_025_to_026() {
$cron_item['command'] = "/usr/local/sbin/expiretable -v -t 3600 virusprot";

$config['cron']['item'][] = $cron_item;

$cron_item = array();
$cron_item['minute'] = "*/60";
$cron_item['hour'] = "*";
$cron_item['mday'] = "*";
$cron_item['month'] = "*";
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
$cron_item['command'] = "/usr/local/sbin/expiretable -t 1800 snort2c";

$config['cron']['item'][] = $cron_item;
}


function upgrade_028_to_029() {
global $config;
$rule_item = array();
Expand Down
1 change: 0 additions & 1 deletion src/www/guiconfig.inc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ $reserved_table_names = array(
"bogons",
"bogonsv6",
"negate_networks",
"snort2c",
"sshlockout",
"tonatsubnets",
"virusprot",
Expand Down

0 comments on commit f326e38

Please sign in to comment.