Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

IP restrictions, How does AuthHosts Work?

Post Reply
bevtech
800
800
Posts: 2168
Joined: 2005-08-03 14:07
Location: Pennsylvania, United States

IP restrictions, How does AuthHosts Work?

Post by bevtech »

Redge Wrote
Applicable only until uvnc 1.0.2 (use registry)

AuthHosts
The AuthHosts setting is, unlike the other settings, a REG_SZ string. 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 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, +192.168 would match both 192.168.12.10 and 192.168.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. -:+192.168: would filter out all incoming connections except those beginning with 192.168. 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. Local machine-specific setting.

1. Local machine-specific settings. Options specified here are not overridable. Location:

HKEY_LOCAL_MACHINE\Software\ORL\WinVNC3\

source:
http://www.realvnc.com/products/free/3. ... vnc.html#4
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:
Last edited by bevtech on 2010-01-22 22:23, edited 1 time in total.
Bevtech

Windows XP Home, Pro SP2, Windows 2003 SBS server SP2(EN), Windows Media Center Editon 2005,Windows Vista Home Prem.,Fedora Core 6,Win9X, PChelpware Rel 1.0,
UVNC V 1.0.8.2

User not developer..;)
Post Reply