LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 12-13-2005, 05:15 PM   #1
jys88
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
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?
 
Old 12-13-2005, 10:13 PM   #2
jakev383
QmailToaster Developer
 
Registered: Dec 2005
Location: Burlington, NC
Distribution: CentOS, Voyage, Debian, Fedora
Posts: 220

Rep: Reputation: 31
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)
 
Old 12-14-2005, 05:22 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
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
 
  


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
Wireless not turning back on (newbie question) fiordal2 Linux - Laptop and Netbook 2 09-02-2004 10:23 PM
Howto monitor network trafic on specific port MDanger Linux - Networking 2 03-31-2004 02:45 PM
request for VL specific security info aus9 VectorLinux 1 12-11-2003 06:43 PM
Turning off Firewall for Port 110? coffee9876 Linux - Security 1 10-14-2003 05:37 PM
Turning a XP/XP network configuartion into a Redhat/XP Network Download-This Linux - Networking 3 10-11-2002 03:54 PM


All times are GMT -5. The time now is 09:55 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration