sync: auto-sync from GURU-5070 at 2026-06-12 05:57:38
Author: Mike Swanson Machine: GURU-5070 Timestamp: 2026-06-12 05:57:38
This commit is contained in:
14
tmp/delnpmnat.php
Normal file
14
tmp/delnpmnat.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require_once("config.inc");
|
||||
require_once("filter.inc");
|
||||
global $config;
|
||||
init_config_arr(array('nat','outbound','rule'));
|
||||
$rules =& $config['nat']['outbound']['rule'];
|
||||
$before = count($rules);
|
||||
$rules = array_values(array_filter($rules, function($r){
|
||||
return !((($r['source']['network'] ?? '') === '172.16.3.20/32') && (($r['target'] ?? '') === '72.194.62.10'));
|
||||
}));
|
||||
$config['nat']['outbound']['rule'] = $rules;
|
||||
write_config("Roll back NPM SNAT pin (diagnostic, removed)");
|
||||
filter_configure();
|
||||
echo "removed=".($before-count($rules))." remaining_outbound=".count($rules)."\n";
|
||||
Reference in New Issue
Block a user