UltraVNC
Discussions about UltraVNC and with the UltraVNC developers
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RulesRules   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IP restrictions, How does AuthHosts Work?

 
Post new topic   Reply to topic    UltraVNC Forum Index -> Ultr@VNC FAQ
View previous topic :: View next topic  
Author Message
bevtech
Super-Mod
bevtech


Joined: 2005-08-03 14:07
Posts: 2597
Topics: 127
Location: Pennsylvania, United States

#1|PostPosted: 2008-10-10 19:55    Post subject: IP restrictions, How does AuthHosts Work? Reply with quote

Redge Wrote
Quote:

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.3.7/winvnc.html#4



Quote:

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:


_________________
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..Wink


Last edited by redge on 2010-01-22 22:23; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    UltraVNC Forum Index -> Ultr@VNC FAQ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Portions © 2004-2007 by -=Assarbad=- / v1.7d
If you need to contact the forum admins, please use the PM feature or the contact form.

Powered by phpBB © 2001, 2005 phpBB Group