This commit is contained in:
parent
5c9b63f181
commit
e65135c4f4
@ -9,8 +9,8 @@ async fn main() {
|
|||||||
create().await.unwrap();
|
create().await.unwrap();
|
||||||
println!("1. Disable mangle rules: {}", ":foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle disable $i }");
|
println!("1. Disable mangle rules: {}", ":foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle disable $i }");
|
||||||
println!("2. Remove old CIDR list: {}", ":foreach i in=[/ip firewall address_list find list=chn_list ] do={/ip firewall address_list remove number=$i }");
|
println!("2. Remove old CIDR list: {}", ":foreach i in=[/ip firewall address_list find list=chn_list ] do={/ip firewall address_list remove number=$i }");
|
||||||
println!("3. Load new CIDR list: {}", "/import chn_list.rsc")
|
println!("3. Load new CIDR list: {}", "/import chn_list.rsc");
|
||||||
println!("4. Enable mangle rules: {}", ":foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle enable $i }")
|
println!("4. Enable mangle rules: {}", ":foreach i in=[/ip firewall mangle find comment=\"breakwall\"] do={ /ip firewall mangle enable $i }");
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn create() -> Result<(), Box<dyn Error>> {
|
async fn create() -> Result<(), Box<dyn Error>> {
|
||||||
|
Loading…
Reference in New Issue
Block a user