ipchains firewall - TechRepublic
General discussion
July 12, 2000 at 09:57 AM
cp409sd

ipchains firewall

by cp409sd . Updated 25 years, 11 months ago

I need to find out what ports a program I am running uses so that I can let it through my firewall. There is no documentation as to which ports it uses. When the firewall is down, the program works. When it is up, it doesn’t.

I figured an easy way to find out was to make a small script that allowed everything through and logged everything as well, so that I could just look at the log and see what ports it uses, and then make the proper entry in my firewall script. So that is what I did.Unfortunetely, the script I wrote lets all traffic through the firewall, but it does not seem to be logging any ports it is going through. Not sure where the flaw in my logic is. Here is the small script I wrote:

ipchains -F
ipchains -P input ACCEPT
ipchains -P output ACCEPT
ipchains -P forward ACCEPT
ipchains -A input -j ACCEPT -l
ipchains -A output -j ACCEPT -l
ipchains -A forward -j ACCEPT -l

Please let me know if there if a better way to do what I am trying to do. Thanks.

This discussion is locked

All Comments