0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[netscreen]ポリシーの中の行を1行消したいとき

Last updated at Posted at 2020-08-20

ポリシーの中の行を1行消したいとき

以下のnetscreenのポリシー1があったとする。

set policy id 1 name "title" from "Untrust" to "DMZ"  "test-stg" "MIP(1.1.1.1)" "HTTP" permit count 
set policy id 1
set src-address "office1"
set src-address "office2"
set service "HTTPS"
exit

その中の set src-address "office1" だけ削除したいときは以下のコマンド

set policy id 1
unset src-address "office1" 
exit

削除後のポリシー1は以下

set policy id 1 name "title" from "Untrust" to "DMZ"  "test-stg" "MIP(1.1.1.1)" "HTTP" permit count 
set policy id 1
set src-address "office2"
set service "HTTPS"
exit

参考

https://kb.juniper.net/InfoCenter/index?page=content&id=KB27570
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?