Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
12-13-2005, 04:15 PM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 1
Rep:
|
security newbie...turning off a specific network port
Hello,
I'm trying to turn off a specific network port (port7000). I've tried to find the application that runs it, using lsof, but I don't see anything associated with it. Is there a different way to find out how to turn it off, or a specfic way to turn off the port itself?
|
|
|
12-13-2005, 09:13 PM
|
#2
|
QmailToaster Developer
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220
Rep:
|
Quote:
Originally Posted by jys88
Hello,
I'm trying to turn off a specific network port (port7000). I've tried to find the application that runs it, using lsof, but I don't see anything associated with it. Is there a different way to find out how to turn it off, or a specfic way to turn off the port itself?
|
Should really see what you're already running for a firewall (iptables-save >> firewall.txt), but try this at the command line - it may work or it may not:
Code:
/sbin/iptables -A INPUT -i eth1 -p tcp --dport 7000 -j DROP
with eth1 being whatever your public interface is. (probably eth0)
|
|
|
12-14-2005, 04:22 PM
|
#3
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
The way to find out what process is listening on that port is
Code:
netstat -nlp | grep 7000
this has to be run as root
|
|
|
All times are GMT -5. The time now is 12:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|