Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 01:39 PM   #1
Registered: Jun 2008
Posts: 281

Rep: Reputation: 20
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, 06:03 PM   #2
Registered: Apr 2011
Posts: 82

Rep: Reputation: 28
it's not harmful

Last edited by beder; 11-27-2012 at 06:05 PM.
Old 11-27-2012, 07:17 PM   #3
Senior Member
Registered: May 2008
Posts: 4,029
Blog Entries: 1

Rep: Reputation: 1431Reputation: 1431Reputation: 1431Reputation: 1431Reputation: 1431Reputation: 1431Reputation: 1431Reputation: 1431Reputation: 1431Reputation: 1431
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-27-2012, 11:58 PM   #4
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,397

Rep: Reputation: 1317Reputation: 1317Reputation: 1317Reputation: 1317Reputation: 1317Reputation: 1317Reputation: 1317Reputation: 1317Reputation: 1317Reputation: 1317
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, 03:02 AM   #5
Registered: Jun 2008
Posts: 281

Original Poster
Rep: Reputation: 20
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 03:05 AM
Script listening on TCP port pcmilhouse Linux - Networking 2 10-24-2006 12:15 PM
TCP Port not listening Craig Cox Linux - Security 1 10-10-2006 11:08 AM
tcp listening port help pbaxter Linux - Networking 4 07-11-2006 03:38 PM
MySQL on Debian 3.0: TCP listening Hko Linux - Software 3 09-04-2002 02:28 PM

All times are GMT -5. The time now is 04:21 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