uvnc.ini => AuthHosts-Entry not working!

uvnc.ini => AuthHosts-Entry not working!

Postby testit » 2015-09-25 12:55

Hi,

running a UVNC 1.2.0.6 server I want to restrict access to that uvnc server so that only IPs beginning with

188.97
84.58
88.69

are allowed to connect to the uvnc server.

I added following line in uvnc.ini
AuthHosts=-:?188.97:?84.58:?88.69

and stopped and restarted the uvnc service.

Nevertheless all 1-2 minutes the default popup window for accepting/rejecting the request from outside shows up with an unknown IP number from China.

I thought that the line
AuthHosts=-:?188.97:?84.58:?88.69

stops those popups except from the IPs mentioned above (188.97:?84.58:?88.69)

Why does it not work correctly?

Thanks and best regards
testit
testit
8
8
 
Posts: 8
Joined: 2009-07-11 22:59

Re: uvnc.ini => AuthHosts-Entry not working!

Postby Rudi De Vos » 2015-09-25 15:46

AuthHosts=-:?188.97:?84.58:?88.69: end with a :
You have ? for your 3 ranges
and - for all other

The reaction depend on the QuerySetting parameter
Sample: If QuerySetting=0, then -=popup and ?=accept

QuerySetting
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"
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5739
Joined: 2004-04-23 10:21

Re: uvnc.ini => AuthHosts-Entry not working!

Postby testit » 2015-09-26 10:33

Thanks for your reply!

But I still wonder what I am doing wrong?

QuerySetting is 2 in my uvnc.ini.

What I want is that only IP-Addresses from vodafone or beginning with
188.97
84.58
88.69

result in a query popup window on the machine where uvnc server is running on so that there the user can reject or accept the connection. ALL other IPs shall be blocked and not result in a query window what should be enabled by the "-" after AuthHosts=.

AuthHosts=-:?188.97:?84.58:?88.69

Can you please tell me what is wrong in the term mentioned above?
I still get requests and query windows by IPs from CHINA.

Thanks and best regards
testit
testit
8
8
 
Posts: 8
Joined: 2009-07-11 22:59

Re: uvnc.ini => AuthHosts-Entry not working!

Postby testit » 2015-09-27 08:46

Hi,

can anyone please give me a hint what is wrong in my AuthHosts-term mentioned above?

Best regards
testit
testit
8
8
 
Posts: 8
Joined: 2009-07-11 22:59

Re: uvnc.ini => AuthHosts-Entry not working!

Postby Rudi De Vos » 2015-09-27 20:14

what er the hacker ip addresses
They are logged in mslogon.log

QuerySetting is 2
Only ip addresses that match the ? get a popup, so if the hacker ip addresses get a popup they are resolved as part of the
strings after ?

Please activate server logging it create winvnc.log
Do you see this lines, i try to access from the localhost, this is refuse
c:\users\rudi\desktop\ultravnc_953\winvnc\winvnc\vncserver.cpp : authhosts set to "-:?188.97:?84.58:?88.69"

c:\users\rudi\desktop\ultravnc_953\winvnc\winvnc\vsocket.cpp : VSocket() m_pDSMPlugin = NULL
c:\users\rudi\desktop\ultravnc_953\winvnc\winvnc\vncsockconnect.cpp : accepted connection from 127.0.0.1
...
c:\users\rudi\desktop\ultravnc_953\winvnc\winvnc\vncserver.cpp : client 127.0.0.1 verifiedHost 2 after adjustment
c:\users\rudi\desktop\ultravnc_953\winvnc\winvnc\vncserver.cpp : removing unauthorised client


authhosts set to "-:?188.97:?84.58:?88.69:?127.0"
c:\users\rudi\desktop\ultravnc_953\winvnc\winvnc\vncserver.cpp client 127.0.0.1 verifiedHost 1 prior to adjustment

The 1 indicate the strings was found as part of ther ? 127.0
The 2 indicate refused

What's the hackers ip string that's accepted for the popup ?
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5739
Joined: 2004-04-23 10:21


Return to 1.2.0.X

Who is online

Users browsing this forum: No registered users and 2 guests