Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am new to linux migrating from windows. I have managed to close all listening ports except port 6000. I could use some help with securing my computer. i have goggled allot of information but have not been able to find a solution please help. I am running mandrake 10
isn't there a away to simply terminate the process that is opening the port or keeping it from loading up at boot I'm new the linux and recompiling the kernel is not something i want to try(not yet). kde process table list the command as /etc/X11/X. i use a cable modem and having a open port on as OS i know nothing about is asking for trouble after i iptables -A INPUT -p TCP -s 0/0 --destination-port 6000 -j DROP netstat still list the port as open thanks in advance
It should be used by X, if you use startx for your X session you can add "-nolisten tcp" to "defaultserverflags" in /usr/X11R6/bin/startx
If you use a DM you should be able to modify X server settings in the config file.
Port 6000 is X11 or X Window Server. If you stop X Window Server, you can not use any GUI programs. I do not think you are yet comfortable using command line. You will not hurt X Window Server if you block the port from incomming traffic.
Using something like IPTABLES is good to block ports. You can type "iptables -A INPUT -p tcp --dport 6000 -j DROP" or use a program like Firestarter to help you setup iptables. Firestarter is easy to setup. Firestarter just makes a script that loads a few files that you can edit. Everytime you boot up your computer, you can have it run the firestarter script.
Under Mandrake you can use drakconf (System->Configuration->Configure your computer) to configure X not to listen to port 6000. Once you start up drakconf the setting you need to change is under Security->Level and checks in the Systems Options tab. The two settings of use there are "Allow X Window connections" and "Authorize TCP connections to X Window". Change them to "NONE" and "no" respectively.
The part above that stops the X server from listening to tcp port 6000 changes /etc/X11/xdm/Xservers. You could do the same yourself by editing /etc/X11/xdm/Xservers and changing to add "-nolisten tcp" to each configured display so the end would look something like:
<CODE>
:0 local /usr/X11R6/bin/X -deferglyphs 16 -nolisten tcp
:1 local reserve /usr/X11R6/bin/X :1 vt8 -deferglyphs 16 -nolisten tcp
:2 local reserve /usr/X11R6/bin/X :2 vt9 -deferglyphs 16 -nolisten tcp
:3 local reserve /usr/X11R6/bin/X :3 vt10 -deferglyphs 16 -nolisten tcp
:4 local reserve /usr/X11R6/bin/X :4 vt11 -deferglyphs 16 -nolisten tcp
:5 local reserve /usr/X11R6/bin/X :5 vt12 -deferglyphs 16 -nolisten tcp
</CODE>
Next time you start X it won't be listening to the tcp port.
Thanks to all of you! It was browsing through this form that helped me to make my final decision about trying linux. I was honestly shocked to find so many people willing to help out us newbies. I cant say thanks enough
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.