name "Trust_to_Untrust_Web" set uuid xxxxxxxxxxxxxxxxxxx set srcintf "internal1" set dstintf "wan1" set srcaddr "192.168.10.5" set dstaddr "100.64.0.1" set action accept set schedule "always" set service "HTTP" "HTTPS" next edit 2 set name “hoge” (略) next end 1つのルール 何百を超えるルール数も入る
/end/` fuga.conf | grep -A10 “edit\s1$” edit 1 set name "Trust_to_Untrust_Web" set uuid xxxxxxxxxxxxxxxxxxx set srcintf "internal1" set dstintf "wan1" set srcaddr "192.168.10.5" set dstaddr "100.64.0.1" set action accept set schedule "always" set service "HTTP" "HTTPS" next
.. /end/ and /edit\s1$/ .. /next/` fuga.conf edit 1 set name "Trust_to_Untrust_Web" set uuid xxxxxxxxxxxxxxxxxxx set srcintf "internal1" set dstintf "wan1" set srcaddr "192.168.10.5" set dstaddr "100.64.0.1" set action accept set schedule "always" set service "HTTP" "HTTPS" next