LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-13-2002, 09:20 PM   #1
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
XDM listening to ports


I have read through the posts of other users experienceing this problem with startx but my problem is about xdm. How do I prevent X from listening to ports 6000:6063 when using xdm. I'm probably just too blind to see it when I searched the forum.

Thanks in advance.
 
Old 04-13-2002, 09:25 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
startx -- -nolisten tcp

Last edited by trickykid; 04-13-2002 at 09:26 PM.
 
Old 04-13-2002, 09:33 PM   #3
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
my problem is for xdm not startx
 
Old 04-13-2002, 10:00 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
oops.. yeah, just thought about that. have no idea as i never use xdm.
 
Old 04-14-2002, 02:47 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Notfromkansas made it work by adding a "nolisten tcp" line to /etc/X11/xdm/Xservers.
 
Old 04-17-2002, 04:11 AM   #6
Notfromkansas
Member
 
Registered: Nov 2001
Posts: 42

Rep: Reputation: 15
This is what I found:

if you start X from the command line:

call it as
X -nolisten TCP
or startx -- -nolisten TCP

if you start X with the kde login:

change the line at the bottom of
/etc/X11/xdm/Xservers from

:0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16

to:
:0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16 -nolisten TCP

if you start X with the gnome login:
change the line at the bottom of

/etc/X11/gdm/gdm.conf

from
command=/usr/bin/X11/X -deferglyphs 16

to
command=/usr/bin/X11/X -deferglyphs 16 -nolisten TCP

Ps. Remember its TCP not tcp. I had a lot of fun with that one
 
Old 04-26-2002, 01:07 PM   #7
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Rep: Reputation: 32
How do you get X to listen on the ssh encrypted port?
 
Old 04-28-2002, 05:25 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
IMO its the other way around, adapt the stunnel to where the source port is, read a X11 forwarding/tunneling HOWTO/FAQ at linuxdoc.org.
Btw don't tack on questions on like that, add a new thread instead.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question about listening ports nevarlen Linux - Newbie 9 06-24-2005 03:40 PM
how to minimize listening ports johnnydangerous Fedora 19 02-13-2005 03:15 PM
Perl program to list listening ports doza Programming 1 07-29-2004 01:57 PM
Ports listening? dareino Linux - Networking 2 03-31-2004 08:40 AM
Listening SuSE 9 ports uniQ Linux - Security 9 01-24-2004 12:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:57 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
Open Source Consulting | Domain Registration