Solved

Blocking a Port on UNIX

Posted on 2000-08-06
2
226 Views
Last Modified: 2010-04-02
Hi,

Can i block any of the port as per my requirements to be blocked for everybody in UNIX/Linux.
0
Comment
Question by:srinivas_rc
2 Comments
 
LVL 4

Expert Comment

by:saurabh_dasgupta
ID: 3801035
What do you mean by blocking ?

Are you saying that you want to run a particular service at some exclusive port number ? Just like how Telnet runs on 23 and HTTP runs on 80 ..??
0
 
LVL 1

Accepted Solution

by:
Ries earned 50 total points
ID: 3817196
Dependinf on you kernel you should use ipfwadm or ipchains.
I think 2.0.x kernels have already the ability to use ipchains. Take a look at the docs they are well documented.
man ipfwadm or man ipchains will give you the answers. If you need a sample, just lett me know. I did setup a firall at our office using ipfwadm on a Linux machine

Ries
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now