ipchains firewall - TechRepublic
General discussion
July 10, 2000 at 10:24 AM
cp409sd

ipchains firewall

by cp409sd . Updated 25 years, 11 months ago

I have an ipchains firewall up and working. I would now like my box to sync its time up to a time server, about once a week. Problem is that I cannot figure out what port(s) it uses to communicate through.

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. 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