Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I just want to deny VNC access to particular IP addresses. Is it possible? If yes how to acheive this task?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Here's a generic answer for any service:

sudo ufw deny from <IP> to port <PORT>

You'll need to turn on ufw (sudo ufw enable) but it'll let you do this.

share|improve this answer
Very nice way of putting it. – Luis Alvarado Jun 3 '11 at 21:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.