Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to close: 6000/tcp open X11 ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
azambuja
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 257
Location: Porto Alegre, RS, Brazil

PostPosted: Thu Nov 27, 2003 5:12 pm    Post subject: how to close: 6000/tcp open X11 ? Reply with quote

hello,

how do i close this port?

thanks/cheers
_________________
"Slip inside the eye of your mind, don't you know you might find, a better place to play"
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Thu Nov 27, 2003 5:19 pm    Post subject: Reply with quote

start your X server with the option -nolisten tcp.

for more info:

Code:

man 1 Xserver
Back to top
View user's profile Send private message
azambuja
Apprentice
Apprentice


Joined: 12 Jul 2002
Posts: 257
Location: Porto Alegre, RS, Brazil

PostPosted: Thu Nov 27, 2003 5:23 pm    Post subject: Reply with quote

yeah, but how do i do this???

i installed gentoo, emerged X, and then added xdm to startup...
besides that, no more extra configs...
where is this being started?

thanx again
_________________
"Slip inside the eye of your mind, don't you know you might find, a better place to play"
Back to top
View user's profile Send private message
fleed
l33t
l33t


Joined: 28 Aug 2002
Posts: 756
Location: London

PostPosted: Thu Nov 27, 2003 5:30 pm    Post subject: Reply with quote

Maybe /etc/X11/xdm/Xservers? I haven't tried it but that sounds like a good bet.
Back to top
View user's profile Send private message
MADcow
l33t
l33t


Joined: 23 Jan 2003
Posts: 742
Location: RIT (Henrietta, New York, United States)

PostPosted: Thu Nov 27, 2003 5:36 pm    Post subject: Reply with quote

make your /etc/X11/xdm/Xsessions look like this
Code:

:0 local /usr/X11R6/bin/X -nolisten tcp


i haven't tried it, as i need the remote capabilities, but that looks like it should work
Back to top
View user's profile Send private message
m0pr0be
Guru
Guru


Joined: 29 Aug 2002
Posts: 308

PostPosted: Thu Nov 27, 2003 5:36 pm    Post subject: Reply with quote

xdm is a beast. but yeah.

/etc/X11/xdm/Xserver should do the trick

edit the line for your local display and add the -nolisten tcp
Back to top
View user's profile Send private message
MADcow
l33t
l33t


Joined: 23 Jan 2003
Posts: 742
Location: RIT (Henrietta, New York, United States)

PostPosted: Thu Nov 27, 2003 6:00 pm    Post subject: Reply with quote

we posted at exactly the same time
cheers!

edit: and this post was posted at the same time as kallamej's post...
this is getting creepy :D


Last edited by MADcow on Thu Nov 27, 2003 6:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4983
Location: Gothenburg, Sweden

PostPosted: Thu Nov 27, 2003 6:00 pm    Post subject: Reply with quote

The Gentoo Security Guide is a good reference. See Chapter 11.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Back to top
View user's profile Send private message
Loke
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 274
Location: Norway

PostPosted: Mon Jan 05, 2004 1:50 am    Post subject: Reply with quote

I there a bug with kde 3.2b2 and X listening to port 6000? After upgrading to kde 3.2b2 I cant start X without it listening to port 6000. Ive tried everything this thread suggests, but it still listens. Im using kdm btw as a login manager. If using startx, it works as expected.
_________________
I'm not saying there should be capital punishment for stupidity, I'm saying why don't we take the warning labels off of everything, and let the problem take care of itself?
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Mon Jan 05, 2004 6:52 am    Post subject: Reply with quote

Loke wrote:
I there a bug with kde 3.2b2 and X listening to port 6000?


Could please report that to http://bugs.kde.org/ ?

Thank you,
Norberto
Back to top
View user's profile Send private message
b_Q
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 163

PostPosted: Mon Jan 05, 2004 8:55 am    Post subject: Reply with quote

Hi Loke, bug or whanot.
For kde-3.2.0_beta2 if using xdm edit file
/usr/kde/3.2/share/config/kdm/Xservers
Work's here.
_________________
Preudhomme's Law of Window Cleaning:
It's on the other side.
Back to top
View user's profile Send private message
Loke
Apprentice
Apprentice


Joined: 25 May 2002
Posts: 274
Location: Norway

PostPosted: Mon Jan 05, 2004 6:30 pm    Post subject: Reply with quote

Ahh cheers mate! That probably is the correct location to set the option. Great :-)
_________________
I'm not saying there should be capital punishment for stupidity, I'm saying why don't we take the warning labels off of everything, and let the problem take care of itself?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum