LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-28-2010, 02:36 AM   #1
ramesh_india2020
Member
 
Registered: Jan 2006
Posts: 39

Rep: Reputation: 1
How to block 12010 port from my box ?


hi

I am unable to block this 12010 port in our server end. I used below command. But no luck.

iptables -A INPUT -p tcp --dport 12010 -j REJECT

I have blocked with CSF also .

But no luck with both firewalls

Still it is showing like this.

lsof -ln | grep 12010
mongrel_r 7934 657 3u IPv4 204628945 TCP *:12010 (LISTEN)

Please help me to block this port 12010

Thanks
Ramesh
 
Old 10-28-2010, 02:39 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

Can you disable any other port and corss check it?

Also post the output of

Code:
iptables -L
Where did you run this command?

Code:
lsof -ln | grep 12010

Last edited by prayag_pjs; 10-28-2010 at 02:41 AM.
 
Old 10-28-2010, 02:50 AM   #3
ramesh_india2020
Member
 
Registered: Jan 2006
Posts: 39

Original Poster
Rep: Reputation: 1
Thanks Thanks for your prompt response.

This is out put of iptables -L command

iptables -L | grep 12010

REJECT tcp -- anywhere anywhere state NEW tcp dpt:12010 reject-with icmp-port-unreachable
REJECT tcp -- anywhere anywhere tcp dpt:12010 reject-with icmp-port-unreachable

I am running this command in shell

lsof -ln | grep 12010

Please assist me on this issue

Thanks,
Ramesh








Quote:
Originally Posted by prayag_pjs View Post
Hi,

Can you disable any other port and corss check it?

Also post the output of

Code:
iptables -L
Where did you run this command?

Code:
lsof -ln | grep 12010
 
Old 10-28-2010, 03:21 AM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
We want to know are you running lsof on the server itself?

Try to access 12010 from any other machine not from server itself.
 
Old 10-28-2010, 03:33 AM   #5
ramesh_india2020
Member
 
Registered: Jan 2006
Posts: 39

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by prayag_pjs View Post
We want to know are you running lsof on the server itself?

Try to access 12010 from any other machine not from server itself.

Yes. I am running lsof command inside the server.

I have telnet that port in another machine and it is connecting and it shows as,

telnet 34.67.19.1 12010
Trying 34.67.19.1...
Connected to 34.67.19.1.
Escape character is '^]'.


Please advise.

Thanks

Last edited by ramesh_india2020; 10-28-2010 at 03:35 AM.
 
Old 10-28-2010, 04:14 AM   #6
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi Mr. Ramesh,

You are not following instructions properly?

Please tell for what purpose you using port 12010?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Block Port 636??? ajeetraina Linux - Server 4 01-28-2008 06:47 PM
cannot SFTP to SUSE 9.2 box, port 22 open, can putty in though using same port. jgrady Linux - Networking 6 03-29-2005 09:44 AM
How to block a port, such as 21? iclinux Linux - Newbie 3 01-16-2005 01:51 PM
Getting through a port block basketkase999 Linux - Networking 3 12-16-2004 03:58 PM
To Block SMTP on my Linux Box krishnakishore Linux - Wireless Networking 0 06-16-2004 12:53 PM


All times are GMT -5. The time now is 04:32 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration