LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-05-2007, 02:15 AM   #1
sailershen
LQ Newbie
 
Registered: Mar 2005
Posts: 27

Rep: Reputation: 15
How can open the port 6000 in RHEL5?


I want my RHEL5 as a X server, and then the X client(another Linux box) can connent to it. Now I've start KDE in RHEL5, but the port 6000 is not opened (result in netstat -an), how can I open the port in RHEL5?
Thanks.
 
Old 07-05-2007, 02:21 AM   #2
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
- Have some program listen on that port. If there's nothing listening, it's not "open" in any sensible way.
- Make sure no firewall (iptables) rule or policy is blocking the port. No rules/policies at all means nothing is blocked, so in that case it's "open" if there's just something listening on it.
- If you have configured a firewall and it's policies block the port, add a new rule that lets traffic pass trough it. Or if some rule denies it, take that rule out. An example to accept tcp traffic in on port 6000:
Code:
/sbin/iptables -A INPUT -p tcp --dport 6000 -j ACCEPT
you could do the same for OUTPUT if you had set output policy to drop. Note: the above command is in use right after you issue it, you need to be root to set it (and have iptables installed in the first place), and after reboot it's lost unless you save it to a script that's run during boot (some use rc.firewall).
 
Old 07-05-2007, 02:49 AM   #3
sailershen
LQ Newbie
 
Registered: Mar 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for help.
I've not iptables policys is running, all is allowed.
Code:
[root@localhost xinit]# iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
When I run "kdm", the UDP port 177 is opened, but I don't know how to open port 6000 for x client connect to x server.
 
Old 07-05-2007, 03:00 AM   #4
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If it's DM specific thing (like it sounds), then I believe KDM's configuration has an option to set the port it listens on.

I strongly recommend creating a firewall, at least a simple one, with iptables. Your current policies accept everything, which might not be a good idea even if you are running a Linux where worms can't spread quite as easily as on Windows.
 
Old 07-09-2007, 09:32 PM   #5
sailershen
LQ Newbie
 
Registered: Mar 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I found that when I start gnome, the port 6000 is opened automatically, but when I start kde, the port is not opened.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
open x11 and port 6000 for listening ccin1492 Suse/Novell 0 10-12-2005 05:31 PM
Curious open port on AIX 4.3.3 - RS/6000 zepplin611 AIX 7 10-07-2004 10:00 PM
Portscan to port 6000? J_Szucs Linux - Security 2 09-21-2004 11:27 AM
port 6000 pottsie Linux - Security 6 04-23-2003 04:06 AM
Port 6000 sitrus Linux - Security 4 12-15-2001 03:25 AM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration