enabling and diabling ports


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu enabling and diabling ports
# 1  
Old 11-11-2010
enabling and diabling ports

1)how to enable and disable ports in linux.

2)AND how to disable unknown ports
# 2  
Old 11-11-2010
To disable:
Just comment out lines in /etc/inetd.conf. Then restart inetd for the changes to take effect.
Code:
netstat -a

netstat lets you search for open ports which do not use inetd. Then turn off those proccesses individually.

To enable - uncomment inetd.conf

I do not know anything about unkown ports. You cannot block something you do know about ahead of time...? Or do you mean prevent some specific port number from ever being used?

If it is not a service, then you have to use a firewall to block/allow a specific port, not inetd.conf.
You can really mess things up by turning off required services or blocking required ports. Example: port 22
see here for IANA ports:
http://en.wikipedia.org/wiki/List_of...P_port_numbers

Last edited by jim mcnamara; 11-11-2010 at 08:20 AM.. Reason: Added url
# 3  
Old 11-11-2010
how to turn these processes individually.
PORT STATE SERVICE
1100/tcp open unknown



---------- Post updated at 07:24 AM ---------- Previous update was at 07:23 AM ----------

how to turn off these process individually
PORT STATE SERVICE

1100/tcp open unknown
# 4  
Old 11-11-2010
Before you kill the process, be sure it is not important.

What does
Code:
netstat -a | grep 1100

show
# 5  
Old 11-11-2010
what about udp ports which are open.

nmap does not show udp ports which are kept open
how to disable them ?
# 6  
Old 11-11-2010
You can block any port with DROP in iptables. netstat shows UDP ports
Code:
netstat -a | grep UDP

shows ports held open

Without some input from you - helping is hard to do.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Enabling services.

Hi, I would like to know wheather it is possible to enable same services on another Linux Box, which are enabled on First Linux Server. Example. Server A having some services enabled, I want same kind of services enabled on Server B using single command / using chkconfig command, instead... (4 Replies)
Discussion started by: manoj.solaris
4 Replies

2. Red Hat

XWindow is not enabling !!!

Dear Experts, Our system admin is struggling over a month with an issue regarding xwindow. RHEL 5.4 is our server OS. whenever I export Display with my machine IP and run xclock. It is not working. We are using DHCP. Please tell me what checks and actions should be taken from our sys admin point... (8 Replies)
Discussion started by: saifurshaon
8 Replies

3. Shell Programming and Scripting

enabling telnet

dear all , Regrettably I need to enable telnet for a single user on a unix machine , Everyone else will have to use ssh. what do i have to configure and how so i can restrict which users may login via the telnet server? Double post. (0 Replies)
Discussion started by: semaan
0 Replies

4. UNIX for Dummies Questions & Answers

Help with enabling ports.

Hi All, How to enable or disable a port in solaris 10. Thanks in advance.:) (3 Replies)
Discussion started by: rama krishna
3 Replies

5. Solaris

Enabling MQ Listeners

Hi I've been trying to change the services for MQ listeners using inetaconv and inetadm. The MQ was already installed and Im trying to change the QManager name. Ive creted the appropriate files (MQSeries-tcp.xml) and am now trying to enable MQSeries and then refresh the service: inetadm... (2 Replies)
Discussion started by: billy_mega
2 Replies

6. Cybersecurity

Enabling C2 audit

hey guys, im going to enable C2 auditing on a sun box, i know how to do it, but im just wondering if there are any issues or problems that i may run into. this will be my first major change (since i have to reset the box) since i joined this company and i dont really wanna kill their servers, so... (2 Replies)
Discussion started by: roguekitton
2 Replies

7. AIX

Enabling 64 bit

Hi, I am having some issues installing Oracle 10G Release 2 on my AIX 5.2L box. Here is what i do: 1- Extract the 10gr2 64bit cpio file using cpio -icdmv < install_file.cpio 2- Once the file is extracted, i run the rootpre.sh file. I got no error message so far everything is fine 3-... (3 Replies)
Discussion started by: Netghost
3 Replies

8. Solaris

Enabling NTP ....

Hi , What is the best way to configure NTP ( Network Timing Protocol ).. on Solaris 9 .... I have 5 Servers. Regards (2 Replies)
Discussion started by: ArabOracle.com
2 Replies

9. UNIX for Dummies Questions & Answers

Enabling Rexec ????

Can someone tell me how I would enable Rexec on a UNIX machine? And is the procedure different on the different systems - Solaris, HP-UX -etc. Thanks~!! mike (1 Reply)
Discussion started by: raichuu
1 Replies
Login or Register to Ask a Question