RSS Twitter MySpace Facebook Digg Flickr

Close Port 6000

Posted 09 July 2010 | BSD,Linux   

important!
it’s x11 service

$ netstat -na | grep LIST
tcp4 0 0 *.6000 *.* LISTEN
tcp6 0 0 *.6000 *.* LISTEN

solve with

#startx — -nolisten tcp

or

edit etc/X11/xinit/xserverrc
add :
#!/bin/sh
exec /usr/bin/X -nolisten tcp

use runlevel 4? xdm,gdm or kdm?
etc/X11/xdm/Xservers
/usr/bin/X11/startx -nolisten tcp

and replace
:0 local /usr/X11R6/bin/X
with
:0 local /usr/X11R6/bin/X -nolisten tcp

or using iptables

#iptables -A INPUT -p tcp --dport 6000 -j DROP

or

edit /usr/X11R6/bin/startx Find the serverargs line

serverargs="-nolisten tcp"

keyword

  • x11 -nolisten (3)
  • alko web id close port 6000 (2)
  • close port 6000 serverargs (2)
  • linux port 6000 (2)
  • linux disable port 6000 (1)
  • If you enjoyed this post, make sure you subscribe to my RSS feed! or follow me on twitter

    Related Posts

    4 Comments

    1. Posted by sugi on 10 July 10 at 8:35am

      cool. ya cara yg cukup bagus untuk menutup port 6000
      secara terbuka pun port itu cukup aman dibuka di linux.
      walaupun hacker yg mumpuni masih bisa masuk, tapi port itu aman dari serangan virus.
      selamat belajar slackware. saya juga belajar dari anda.

    2. Posted by k3m4n9i on 10 July 10 at 11:25am

      sayangnya itu tcp sob
      bisa d ddos

    3. Posted by Weight lifting supplements on 24 July 10 at 5:53pm

      I hope you never stop! This is among the best blogs Ive actually go through. Youve acquired some mad skill the following, man. I just wish that you just dont drop your model mainly because youre definitely one particular of the coolest bloggers on the market. Please retain it up since the internet demands somebody like you spreading the word.

    4. Posted by k3m4n9i on 25 July 10 at 10:28am

      thx for advice

    Leave a Reply

    :p 8) :lol: =( :8 ;) :(( :o: :[ :) :D :-| :-[) :bloody: :cool: :choler: :love: :oups: :aie: :beurk: