Tag: UltraVNC

目次

参考情報

サーバー設定

IPアドレスでアクセス制限する

ultravnc.iniのAuthHostsを使って制限できる。UltraVNC :: View topic - IP restrictions, How does AuthHosts Work?によると次のように使う。

ultravnc 1.0.3 and above via ultravnc.ini (not registry) 

AuthHosts= 
+ =allow 
- = deny 
? = query 
syntax: 
-:+10.0.60.141:?10.0.31.169:-10.0.20.240: 
instead of 10.0.60.141 you can use 10.0.60, then it is valid 
for the full range of ip addresses. 
QuerySetting=2 
Define on how to react on the (-,?,+) from 
the Authhosts. 
0="+:Accept, ?:Accept, -:Query" 
1="+:Accept, ?:Accept, -:Reject" 
2="+:Accept, ?:Query, -:Reject [Default]" 
3="+:Query, ?:Query, -:Reject" 
4="+:Query, ?:Reject, -:Reject" 
It is used to specify a set of IP address templates 
which incoming connections must match in order to be accepted. 
By default, the template is empty and connections from all 
AuthHosts_Tip5="hosts are accepted. The template is of the form: 
+[ip-address-template] 
?[ip-address-template] 
-[ip-address-template] 
In the above, [ip-address-template] represents the leftmost 
bytes of the desired stringified IP-address. 
For example, +158.97 would match both 158.97.12.10 and 
158.97.14.2. Multiple match terms may be specified, delimited 
by the ":" character. Terms appearing later in the template 
take precedence over earlier ones. e.g. -:+158.97: would filter 
out all incoming connections except those beginning with 158.97. 
Terms beginning with the "?" character are treated by default as 
indicating hosts from whom connections must be accepted at the 
server side via a dialog box. The QuerySetting option determines 
the precise behaviour of the three AuthHosts options. 

example ultravnc.ini 

[admin] 
AuthHosts=-:+10.0.60.141:?10.0.31.169:-10.0.20.240: 

例えば、全てのアドレスを禁止にして192.168で始まるアドレスだけを許したい場合次のように指定する。

AuthHosts=-:+192.168:

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-04-11 (月) 15:28:06