LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-25-2004, 11:57 PM   #1
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
6000/tcp open X11??


i have this for my machine

6000/tcp open X11

what can i do with this???
X11 is something regarding on x-windows? pls...
advise..thanks
 
Old 01-26-2004, 01:21 AM   #2
thereof
Member
 
Registered: Jan 2003
Location: Sweden
Distribution: Slackware
Posts: 54

Rep: Reputation: 15
It depends a little on how you start X. If you start from console (startx), edit your /usr/X11R6/lib/X11/xinit/xserverrc to look something like this:
Code:
startx -- -nolisten tcp
xhosts +local:
On the other hand if you start X with xdm, edit your /etc/X11/xdm/Xserver and add "-nolisten tcp" to the command. That should keep the port closed. Kdm and gdm are probably the same procedure as xdm.
 
Old 01-26-2004, 01:23 AM   #3
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
if u want it closed u could also use iptables:

iptables -A INPUT -p tcp --dport 6000 -j DROP

but setting it to no-listen would seem to be a better 1st step.
 
Old 01-26-2004, 06:23 AM   #4
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
the best ways to do so is to add "-nolisten-tcp" to defaultserverargs in /usr/X11/bin/startx.
That will pass this option to startx automatically.
 
Old 01-26-2004, 05:48 PM   #5
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
what is the purpose of opening this port?
can i invoke my x client (gnome, kde) from other machine through this port?
what is the reason behind that i need to close this port??
thanks

another question: what is Xdm???

Last edited by yenonn; 01-26-2004 at 05:51 PM.
 
Old 01-27-2004, 06:01 AM   #6
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
X is a server like almost everything in Linux, you may use it to connect from other computer. If you don't want other external client to use it, you should close the port (every open port can be considered as a potential security hole).

Xdm/Gdm/Kdm are the GUI login screen. Instead of login in text mode, you get a nice useless graphical login...
 
Old 01-27-2004, 05:49 PM   #7
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
how can i do a x terminal? what is x terminal means for?
if let say i want to make a connection such that machine b is logging on to machine a. then, from machine b, how can i get a graphical windows manager from machine a, then, i do a administration of machine a from machine b? can i do this??? just go through port 6000??? pls advice??
 
Old 01-27-2004, 06:53 PM   #8
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
eeeh yes
by terminal, I mean "a client computer without X that will connect on a server one serving X".
I never tried a X server, but you should be able to manage the "a" machine from the "b" machine as long the "b" machine will log in X as root account, of course.
 
Old 01-27-2004, 10:09 PM   #9
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Original Poster
Rep: Reputation: 30
what is the field i should look in it???
i googled plenty of information but none of them are as what i wan to do..
or may be do u have information or url regarding in this..
i want to try it at home...
 
Old 01-29-2004, 11:11 PM   #10
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 30
sorry won't make new post

I'm searching here at LinuxQ and found this one simillar to mine prob.Block port 6000.
But my situation is bit different,

I'm using Lilo with text login,run level 3.Not graphic login.

After I type user and paswd,I type "kde" and Kde starts.

How then I'll stop X server in my situation?

I tried startx -- -nolisten tcp ,but there was some Wizard I didn't like.I skipped it and then started some different Kde.Not as nice as I get usually.

How will I stop its 6000 port?

Forgot I'm using Guarddog firewall.But X server runs even when I blocked it in Guarddog.Can I use some iptables command when I use Guarddog-Gui for iptables?

Thanx in advance,

 
Old 02-28-2004, 07:40 PM   #11
stupid_guy
Member
 
Registered: Jun 2003
Distribution: mandrake 9.2
Posts: 57

Rep: Reputation: 15
quote: iptables -A INPUT -p tcp --dport 6000 -j DROP :quote
Is that it?

I tried startx -nolisten thing too, but didn't work.

I use mandrake 9.2, so I don't use startx, insteand terminal 7 is automatically a login page, which probably explains why startx -nolisten don't work. So how do you close port 6000 on mandrake 9.2?
 
Old 03-01-2004, 12:55 AM   #12
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 30
cool

my question is can I use this iptables command when I use Gui for iptables? (Guarddog firewall)

I should learn iptables.I'm just too lazy and having hardware probs now.There is always something else what makes me sick. (and won't let me learn more about Linux)

Too bad.But some day I will do iptables.Promise
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X11 Using TCP port 6000 AMMullan Linux - Security 4 04-12-2010 05:03 PM
open x11 and port 6000 for listening ccin1492 Suse/Novell 0 10-12-2005 05:31 PM
6000 X11 spank Linux - Newbie 2 02-12-2004 07:36 PM
Nmap showed 6000/tcp open X11. How do I keep this from starting? jdruin Linux - Security 2 11-22-2003 07:54 AM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 08:24 AM


All times are GMT -5. The time now is 06:58 AM.

Main Menu
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