Re: help with IP filter rules



bill3 <giotsas@xxxxxxxxx> wrote:
Hello everyone.
I activated successfully IP filter in Solaris 10 with the following
rules:

block in all
pass in quick proto tcp from any to any port=22
pass in quick proto tcp from any to any port=25
pass in quick proto tcp from any to any port=80
pass in quick proto tcp from any to any port=587

Namely I want only the ssh, http and smtp services to be active. But
after activating the firewall I can't connect to the internet. When I
deactivate it there's no problem.

What's wrong with this rules? I thought they are correct :-(

Turn on logging for your block rule and see what's being blocked when
you connect.

Are any of those services going to be mad that they can't resolve
hostnames?

I don't see any 'out' rules. Is your default for out block or pass?
Since you're not doing keep state, it's going to have to evaluate every
packet. You probably want to keep state on initial connection and only
allow flags S on these protocols.

--
Darren Dunham ddunham@xxxxxxxx
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
.



Relevant Pages

  • help with IP filter rules
    ... I activated successfully IP filter in Solaris 10 with the following ... pass in quick proto tcp from any to any port=22 ... deactivate it there's no problem. ...
    (comp.unix.solaris)
  • IP Filter
    ... FreeBSD 6.0 setup as I began learning about the operating system and the ... However, upon entering the section regarding IP Filter, I have come ... block in log quick proto tcp from any to any with short ... pass in quick proto tcp from any to any port = pop3 keep state group 200 ...
    (freebsd-questions)