VNC listen specific interface

Reply

Join Date: Oct 2008
Posts: 46
Reputation: shwick is an unknown quantity at this point 
Solved Threads: 0
shwick shwick is offline Offline
Light Poster

VNC listen specific interface

 
0
  #1
Dec 6th, 2008
I'm running ubuntu 8.04 with vnc4server.

I'm trying to get my vnc server to listen on a specific interface. I don't want it listening on localhost, I want it listening on a virtual tun interface I setup, tun0, ip 10.6.7.0.

I tried adding the "-interface" option to the vnc4server script but Xvnc doesn't like it, "Unrecognized option: -interface".

How would I make vnc listen on a specific interface?
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: VNC listen specific interface

 
0
  #2
Dec 31st, 2008
If it doesn't listen on localhost, it won't work.

Secondly, use iptables to allow/deny connections on a different interface if you don't want to allow connections to a specific interface.

FYI, "interface" is NOT the same as IP address, since you can have numerous IP addresses bound to the same interface (eth0, eth1, etc.)
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 46
Reputation: shwick is an unknown quantity at this point 
Solved Threads: 0
shwick shwick is offline Offline
Light Poster

Re: VNC listen specific interface

 
0
  #3
Dec 31st, 2008
Yes I figured vnc4server wouldn't work unless it listened on localhost, I fogot to post back here.

I switched to x11vnc, when combined with xvfb allows me to start the server on any interface.

Yes I am aware that interfaces are not the same as ip addresses, however some servers use ip addresses to idenfity the interface they will listen on, such as Bind
listen-on { 127.0.0.1; 10.6.7.0; };
And some servers use the interface to identify the interface, such as Samba,
interfaces = lo, eth1
Last edited by shwick; Dec 31st, 2008 at 4:13 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2003
Posts: 372
Reputation: TheOgre is a jewel in the rough TheOgre is a jewel in the rough TheOgre is a jewel in the rough 
Solved Threads: 6
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: VNC listen specific interface

 
0
  #4
Dec 31st, 2008
Yup, I know the difference, but the way you originally worded it made me unsure of whether or not you understood the differences yourself.

(Incidentally, I thought the answer you got from the VNC list back on the 8th was sufficient.)
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the *nix Software Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC