You are not logged in.

#1 2006-01-16 17:36:55

slackhack
Member
Registered: 2004-06-30
Posts: 738

[Solved] X [isn't] starting with tcp :D

i was doing some netstating, and i see that X is now starting with all kinds of TCP connections. i always used "-nolisten tcp" in /usr/X11R6/bin/startx and didn't have any problems, but now it's suddenly not working (xfce4. btw).

i tried starting from startxfce4 instead of startx but got the same thing. there's an ~/.xserverrc file with "X -nolisten tcp" but i guess that's not working, either. any ideas? i notice there's also hal and dbus stuff in there, which i just turned on recently for udev. before i didn't have those running (:oops: tongue) could those be related somehow? :?:

unix  2      [ ACC ]     STREAM     LISTENING     8003   /tmp/.X11-unix/X0
unix  2      [ ]         DGRAM                    941    @/org/kernel/udev/udevd
unix  2      [ ACC ]     STREAM     LISTENING     8314   /tmp/orbit-sero/linc-ea6-0-79d21d2f3f9af
unix  2      [ ACC ]     STREAM     LISTENING     7106   /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     8324   /tmp/orbit-sero/linc-ea0-0-4ab40839595f7
unix  2      [ ACC ]     STREAM     LISTENING     7188   @/tmp/hald-local/dbus-ALpeQzIe7V
unix  2      [ ]         DGRAM                    7189   @/org/freedesktop/hal/udev_event
unix  2      [ ]         DGRAM                    7190   @/var/run/hal/hotplug_socket2
unix  2      [ ACC ]     STREAM     LISTENING     5846   /dev/log
unix  6      [ ]         DGRAM                    5871   /dev/log
unix  3      [ ]         STREAM     CONNECTED     8330   /tmp/orbit-sero/linc-ea0-0-4ab40839595f7
unix  3      [ ]         STREAM     CONNECTED     8329   
unix  3      [ ]         STREAM     CONNECTED     8328   /tmp/orbit-sero/linc-ea6-0-79d21d2f3f9af
unix  3      [ ]         STREAM     CONNECTED     8323   
unix  2      [ ]         DGRAM                    8309   
unix  3      [ ]         STREAM     CONNECTED     8293   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8292   
unix  3      [ ]         STREAM     CONNECTED     8209   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8208   
unix  3      [ ]         STREAM     CONNECTED     8182   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8181   
unix  3      [ ]         STREAM     CONNECTED     8176   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8175   
unix  3      [ ]         STREAM     CONNECTED     8172   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8171   
unix  3      [ ]         STREAM     CONNECTED     8168   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8167   
unix  3      [ ]         STREAM     CONNECTED     8154   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8153   
unix  3      [ ]         STREAM     CONNECTED     8128   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8127   
unix  3      [ ]         STREAM     CONNECTED     8121   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8120   
unix  3      [ ]         STREAM     CONNECTED     8112   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8111   
unix  6      [ ]         STREAM     CONNECTED     8105   /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     8104   
unix  3      [ ]         STREAM     CONNECTED     7849   /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     7848   
unix  3      [ ]         STREAM     CONNECTED     7847   @/tmp/hald-local/dbus-ALpeQzIe7V
unix  3      [ ]         STREAM     CONNECTED     7846   
unix  3      [ ]         STREAM     CONNECTED     7820   @/tmp/hald-local/dbus-ALpeQzIe7V
unix  3      [ ]         STREAM     CONNECTED     7814   
unix  3      [ ]         STREAM     CONNECTED     7110   
unix  3      [ ]         STREAM     CONNECTED     7109   
unix  2      [ ]         DGRAM                    6822   
unix  2      [ ]         DGRAM                    6074   
unix  2      [ ]         DGRAM                    5894   

Offline

#2 2006-01-16 18:15:24

alterkacker
Member
From: Peoples Republic of Boulder
Registered: 2005-01-08
Posts: 52

Re: [Solved] X [isn't] starting with tcp :D

Those are UNIX domain sockets (used for inter-process communications) in your listing, *not* TCP/IP sockets. Check out 'man unix' for more info.

Offline

#3 2006-01-16 18:38:44

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: [Solved] X [isn't] starting with tcp :D

okay, so they're safe? thanks.

Offline

#4 2006-01-16 18:47:09

alterkacker
Member
From: Peoples Republic of Boulder
Registered: 2005-01-08
Posts: 52

Re: [Solved] X [isn't] starting with tcp :D

okay, so they're safe?

Yep - nothing outside your box can hit those in any direct fashion.

Offline

#5 2006-01-16 18:58:25

slackhack
Member
Registered: 2004-06-30
Posts: 738

Re: [Solved] X [isn't] starting with tcp :D

when i saw "X11" i flipped out for a second. tongue i thought udev/hald or the dbus thing, etc. had opened some vulnerability. i never would have known to man unix. thanks.

Offline

#6 2006-01-16 21:04:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [Solved] X [isn't] starting with tcp :D

Clients always connect to the X server via domain sockets - it's the way to protocol works - so starting up firefox opens up a socket connection to the X server.  Same with every other app.

Offline

Board footer

Powered by FluxBB