Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
It depends a little on how you start X. If you start from console (startx), edit your /usr/X11R6/lib/X11/xinit/xserverrc to look something like this:
Code:
startx -- -nolisten tcp
xhosts +local:
On the other hand if you start X with xdm, edit your /etc/X11/xdm/Xserver and add "-nolisten tcp" to the command. That should keep the port closed. Kdm and gdm are probably the same procedure as xdm.
what is the purpose of opening this port?
can i invoke my x client (gnome, kde) from other machine through this port?
what is the reason behind that i need to close this port??
thanks
X is a server like almost everything in Linux, you may use it to connect from other computer. If you don't want other external client to use it, you should close the port (every open port can be considered as a potential security hole).
Xdm/Gdm/Kdm are the GUI login screen. Instead of login in text mode, you get a nice useless graphical login...
how can i do a x terminal? what is x terminal means for?
if let say i want to make a connection such that machine b is logging on to machine a. then, from machine b, how can i get a graphical windows manager from machine a, then, i do a administration of machine a from machine b? can i do this??? just go through port 6000??? pls advice??
eeeh yes
by terminal, I mean "a client computer without X that will connect on a server one serving X".
I never tried a X server, but you should be able to manage the "a" machine from the "b" machine as long the "b" machine will log in X as root account, of course.
what is the field i should look in it???
i googled plenty of information but none of them are as what i wan to do..
or may be do u have information or url regarding in this..
i want to try it at home...
I'm searching here at LinuxQ and found this one simillar to mine prob.Block port 6000.
But my situation is bit different,
I'm using Lilo with text login,run level 3.Not graphic login.
After I type user and paswd,I type "kde" and Kde starts.
How then I'll stop X server in my situation?
I tried startx -- -nolisten tcp ,but there was some Wizard I didn't like.I skipped it and then started some different Kde.Not as nice as I get usually.
How will I stop its 6000 port?
Forgot I'm using Guarddog firewall.But X server runs even when I blocked it in Guarddog.Can I use some iptables command when I use Guarddog-Gui for iptables?
quote: iptables -A INPUT -p tcp --dport 6000 -j DROP :quote
Is that it?
I tried startx -nolisten thing too, but didn't work.
I use mandrake 9.2, so I don't use startx, insteand terminal 7 is automatically a login page, which probably explains why startx -nolisten don't work. So how do you close port 6000 on mandrake 9.2?
my question is can I use this iptables command when I use Gui for iptables? (Guarddog firewall)
I should learn iptables.I'm just too lazy and having hardware probs now.There is always something else what makes me sick. (and won't let me learn more about Linux)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.