Solved

Blocking a Port on UNIX

Posted on 2000-08-06
2
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

756 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