Solved

Blocking a Port on UNIX

Posted on 2000-08-06
2
235 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

631 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