LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   is there a way to close the port X11 uses (https://www.linuxquestions.org/questions/linux-general-1/is-there-a-way-to-close-the-port-x11-uses-44510/)

nakkaya 02-07-2003 06:28 PM

is there a way to close the port X11 uses
 
when i scan my computer with nmap show me that the only port whic is open is X11 is there a way to close this port i use x11 just for the screen on the computer.

rshaw 02-07-2003 07:22 PM

http://www.linuxplanet.com/linuxplanet/tips/1124/1/

nakkaya 02-08-2003 02:58 AM

but i am not starting x11 from command prompt my system directly goes to gdm is there a way to do it for gdm

Hko 02-08-2003 07:46 AM

Quote:

Originally posted by nakkaya
but i am not starting x11 from command prompt my system directly goes to gdm is there a way to do it for gdm
Did you read this part of that linuxplanet page?

"You may want to put this in a system startup file like /usr/X11R6/lib/X11/xinit/xserverrc or /etc/X11/xinit/xserverrc "

Half_Elf 02-08-2003 10:30 AM

you can make a very simple Iptable script to block that port to everyone except your local machine.
Iptable is the "firewalling" utility for linux.

HomerVins 02-08-2003 12:07 PM

assuming you use GDM:
Edit file: /etc/X11/gdm/gdm.conf
Make following changes (add the text in red):
[daemon]
.....
StandardXServer=/usr/X11R6/bin/X -nolisten tcp

[server-Standard]
.......
command=/usr/X11R6/bin/X -nolisten tcp


All times are GMT -5. The time now is 09:53 AM.