LoginSignup
4
1

More than 5 years have passed since last update.

RackTablesでゲストユーザにIPv4の表示・検索だけを可能にする

Posted at

RackTablesで特定のユーザについて機能制限したい場合の書き方がわかったのでメモ

Configuration : Permissionsに下記のように指定する

allow {$username_guest} and {$tab_default} and {$page_index}
allow {$username_guest} and {$tab_default} and {$page_search}
allow {$username_guest} and {$tab_default} and {$page_ipv4space}
allow {$username_guest} and {$tab_default} and {$page_ipv4net}
allow {$username_guest} and {$tab_default} and {$page_ipaddress}
  • $username_guest はユーザ名がguestのユーザ
  • $tab_default は各ページのdefault (通常はBrowseで表示) だけ
  • $page_index はログイン直後のページ
  • $page_search は検索結果ページ
  • $page_ipv4space はIPv4一覧ページ
  • $page_ipv4net はIPv4のプレフィックス単位のページ
  • $page_ipaddress はIPアドレス個別のページ

検索結果等に他機能のページへのリンクが表示されるが、そのリンクをたどるとアクセス不許可のページが表示される。

参考 Permission configuration

4
1
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
4
1