• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

Blocking a Port on UNIX

Hi,

Can i block any of the port as per my requirements to be blocked for everybody in UNIX/Linux.
0
srinivas_rc
Asked:
srinivas_rc
1 Solution
 
saurabh_dasguptaCommented:
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
 
RiesCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now