LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 06:28 PM   #1
nakkaya
LQ 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, 07: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, 02:58 AM   #3
nakkaya
LQ 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, 07:46 AM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
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, 10:30 AM   #5
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
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, 12: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



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 07:28 PM
Which port should I close? schneemann Linux - Networking 5 11-15-2005 03:15 AM
close a port mfrangos79 Linux - Security 7 11-03-2005 01:32 AM
How to close port 6000? WilliamS Slackware 12 03-02-2005 12:27 PM
cant get port 21 to close crosswire Linux - Newbie 4 09-14-2004 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:19 AM.

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
Open Source Consulting | Domain Registration