LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   6000/tcp open X11?? (https://www.linuxquestions.org/questions/linux-networking-3/6000-tcp-open-x11-138674/)

yenonn 01-25-2004 11:57 PM

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

thereof 01-26-2004 01:21 AM

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.

Robert0380 01-26-2004 01:23 AM

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.

Half_Elf 01-26-2004 06:23 AM

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.

yenonn 01-26-2004 05:48 PM

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???

Half_Elf 01-27-2004 06:01 AM

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...

yenonn 01-27-2004 05:49 PM

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??

Half_Elf 01-27-2004 06:53 PM

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.

yenonn 01-27-2004 10:09 PM

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...

WannaLearnLinux 01-29-2004 11:11 PM

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,

:newbie:

stupid_guy 02-28-2004 07:40 PM

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?

WannaLearnLinux 03-01-2004 12:55 AM

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 :)


All times are GMT -5. The time now is 04:35 PM.