Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-27-2012, 02:39 PM   #1
Registered: Jun 2008
Posts: 273

Rep: Reputation: 18
Xorg listening on TCP by default

I've just run netstat on my Slack machine and I see:

#netstat -tupa
Active Internet connections (servers and established)
Proto Recv-Q Send-Q   Local Address   Foreign Address  State     PID/Program name  
tcp        0      0   *:x11             *:*            LISTEN      2298/X
Since everything else seems pretty nice and tight on a default Slack install, and since, googling around it seems the "-nolisten" argument can be used with X to stop it from listening for TCP connection - I'm a bit puzzled as to why the Slackware default install doesn't use "-nolisten".

Anybody knows?

Old 11-27-2012, 07:03 PM   #2
Registered: Apr 2011
Posts: 82

Rep: Reputation: 28
it's not harmful

Last edited by beder; 11-27-2012 at 07:05 PM.
Old 11-27-2012, 08:17 PM   #3
Senior Member
Registered: May 2008
Posts: 3,742

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
The slackware philosophy is to not make assumptions. Configuration choices such as these are generally left to the user/admin.

Rather than add "-nolisten tcp" I prefer to stick the port behind some iptables rules.
Old 11-28-2012, 12:58 AM   #4
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,044

Rep: Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115Reputation: 1115
Yes, netstat lists port 6000 as listening, but connections from remote computers are disabled by default in Slackware.
From /etc/X11/xdm/xdm-config
DisplayManager.requestPort: 0
ServerArgsLocal=-nolisten tcp
If you want to lock it down, then see here.

If you want to enable remote connections, then see here.
Old 11-28-2012, 04:02 AM   #5
Registered: Jun 2008
Posts: 273

Original Poster
Rep: Reputation: 18
Thanks for all the replies


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
Default services listening on tcp ports narz Slackware 6 11-28-2012 04:05 AM
Script listening on TCP port pcmilhouse Linux - Networking 2 10-24-2006 01:15 PM
TCP Port not listening Craig Cox Linux - Security 1 10-10-2006 12:08 PM
tcp listening port help pbaxter Linux - Networking 4 07-11-2006 04:38 PM
MySQL on Debian 3.0: TCP listening Hko Linux - Software 3 09-04-2002 03:28 PM

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration