LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 02-07-2003, 07:28 PM   #1
nakkaya
Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
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.
 
Old 02-07-2003, 08:22 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
http://www.linuxplanet.com/linuxplanet/tips/1124/1/
 
Old 02-08-2003, 03:58 AM   #3
nakkaya
Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Original Poster
Rep: Reputation: 45
but i am not starting x11 from command prompt my system directly goes to gdm is there a way to do it for gdm
 
Old 02-08-2003, 08:46 AM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
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 "
 
Old 02-08-2003, 11:30 AM   #5
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
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.
 
Old 02-08-2003, 01:07 PM   #6
HomerVins
LQ Newbie
 
Registered: Feb 2003
Posts: 1

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System crashes when i close X11 dasy2k1 Slackware 23 12-03-2005 08:28 PM
Which port should I close? schneemann Linux - Networking 5 11-15-2005 04:15 AM
close a port mfrangos79 Linux - Security 7 11-03-2005 02:32 AM
How to close port 6000? WilliamS Slackware 12 03-02-2005 01:27 PM
cant get port 21 to close crosswire Linux - Newbie 4 09-14-2004 07:17 PM


All times are GMT -5. The time now is 09:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration