Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add a rule (allow any to any port 22) to my firewall, so that I can ssh remotely into my machine.

I have had a look in the SCO OSR600 Documentation and I cannot find anything in there that will help me.


I have managed to enable ipfstat:

#ipfstat enable

And now my firewall is active, I just need to add rules now.

But where do I find the rules text file?

share|improve this question
I am currently looking for the ipf config file, but can't find it. – Kevdog777 Jul 26 '12 at 12:45
up vote 2 down vote accepted

Probably the rule, should be:

pass  in   quick proto tcp  from any  to any port = 22 keep state 
pass  out  quick proto tcp  from any  to any port = 22 keep state

in /etc/ipf.conf

share|improve this answer
Do you think I should try the same but for like port 80 and 81 as well? Or is that already included (default)? - I haven't tried adding the rules, just got into work now. – Kevdog777 Jul 30 '12 at 7:40
I just tried going in to the /etc/ipf.conf file, and it says it is a new file. I did this in both my user and root profile. – Kevdog777 Jul 30 '12 at 7:49
AWESOME, thank you, it has worked ... FINALLY!!! – Kevdog777 Jul 30 '12 at 8:11
I think that you, like me in the past, need a firewall editor. I suggest you to use fwbuilder fwbuilder.org – tombolinux Jul 31 '12 at 16:18
fwbuilder is a gui client for windows or linux. It helps you to generate the configuration for your firewall, then you can upload it to your server via sftp. – tombolinux Aug 1 '12 at 9:30

Would think you add them the same as you would with iptables. Here is a quick doc on IPF though. http://www.freebsd.org/doc/handbook/firewalls-ipf.html

share|improve this answer
Thank you for your answer, but that site is for FreeBSD, and OK it might help a bit, but reading through that gave me a headache in the first place. – Kevdog777 Jul 30 '12 at 7:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.