PDA

View Full Version : Disabling X port listening



knoppix00
05-03-2006, 02:19 PM
How can I close X's port listening without having to save or restart each time?

What is the command?

angor
05-04-2006, 08:23 AM
If you start X manually, you can use
<code>
startx -- -nolisten tcp
</code>

Another possibility is to use a firewall rule like
<code>
iptables -I INPUT -p tcp --dport 6000 -j REJECT
</code>

(Don't know if you should guard against udp as well)