Restrict access to one interface?

Arnt Witteveen Arnt.Witteveen "at" vartec.be
Fri, 18 Aug 2000 17:24:50 +0000


There is a way but it needs some programming. Since I'm not yet up to the
job of compiling vnc at home, I know what to change but can't change it.

You need to search the source for INET_ADRR_ANY . This constant tells the
listening socket to listen on all interfaces. Simply pop in the adrr of the
one interface you wish it to listen on and you are set. An 'example' is
right there in the code as it implements the option to listen only on
127.0.0.1 .

Problems still need to be solved:
- a way of reading the info out of the registry or other option system
(platform dependant)
- the above will work for listening on 1 interface. If you have 3, it's
either all or just one, 2 isn't possible I think.

Anyone up to the job?

Arnt

PS: looking through the code, I couldn't find an easily identifiable
'options' system. I had expected an options system with the 'load options'
and perhaps 'save options' implemented platform-dependantly, but I couldn't
find anything...


> -----Original Message-----
> From: Faulkingham, Shawn [mailto:SFaulkingham "at" indoff1.com]
> Sent: vrijdag 18 augustus 2000 17:19
> To: Arnt.Witteveen "at" vartec.be
> Subject: RE: Restrict access to one interface?
> 
> 
> No there is not in it's standard form for NT. The TCP/IP 
> wrapper for NT
> includes all interfaces, so VNC will listen on all 
> interfaces. Maybe you
> should use AuthHosts reg Hack to limit incoming IP. HTH
> 
> Shawn Faulkingham - SysAdmin /Analyst/Programmer
> Indoff Incorporated St. Louis, MO
> sfaulkingham "at" indoff1.com
> 
>  -----Original Message-----
> From: 	Nevo Y. Hed [mailto:nhed "at" interspeed.com] 
> Sent:	Friday, August 18, 2000 8:47 AM
> To:	vnc-list "at" uk.research.att.com
> Subject:	Restrict access to one interface?
> 
> Hi,
> 
> Is there a way to tell VNC to accept connections only on one of it's
> interfaces, not all?
> 
> 
>    Thanks
> 
> 
>    -Nevo
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to majordomo "at" uk.research.att.com
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> To unsubscribe, send a message with the line: unsubscribe vnc-list
> to majordomo "at" uk.research.att.com
> See also: http://www.uk.research.att.com/vnc/intouch.html
> ---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------