Contents

  1. whois
  2. history

1. whois

conoha-net create-rule -d ingress -e IPv4 -p 22 -P tcp -i 133.130.0.0/16 my-group

OPTIONS:
   -d value, --direction value         (Required) The direction in which the rule applied.
                                        Must be either "ingress" or "egress" (default: "ingress")
   -e value, --ether-type value        (Required) Type of IP version. 
                                        Must be either "Ipv4" or "Ipv6". (default: "IPv4")
   -p value, --port-range value        The source port or port range. For example "80", "80-8080".
   -P value, --protocol value          The IP protocol. Valid value are "tcp", "udp", "icmp" or "all". (default: "all")
   -g value, --remote-group-id value   The remote group ID to be associated with this rule.
   -i value, --remote-ip-prefix value  The IP prefix to be associated with this rule.

(-dオプションと-eオプションはデフォルト値があるので省略可能です)

再度list-groupを実行すると、ルールが追加されていることが確認できます。

2. history

3. VPSにアタッチする

作成したセキュリティグループを一つ、もしくは複数のVPSにアタッチすることで、そのVPSに対してフィルタリングが有効になります。
これにはattachを使います。

conoha-net attach -n [VPS名] my-group


CategoryDns CategoryWatch CategoryTemplate

MoinQ: VPS/ConoHa/conoha-net/CLIツール (last edited 2023-04-02 07:50:55 by ToshinoriMaeno)