Hi.

> serve only port tcp/80 (web) and execute all the
> services I can (telnet, ftp, web browsing, etc) ???
> Because now I can't execute telnet, ftp, nslookup,
> etc.......I get lost

> block in on hme0 all
> pass in log quick on hme0 proto tcp/udp from any to
> MY_IP port = 80 
> pass out log quick on hme0 all

Switch the 'block in on hme0 all' and 'pass in log
quick on hme ...'. You only need to permit tcp. You
also need to keep state, which means ipfilter can
remember who have permission to enter your server.
So the line will be something like

'pass in log quick on hme0 proto tcp from any to MY_IP
port = 80 flags S keep state'

In order to make outgoing connections you need three
lines:

pass out quick on xl0 proto tcp from any to any flags
S keep state
pass out quick on xl0 proto udp from any to any keep
state
pass out quick on xl0 proto icmp from any to any keep
state

To make ipfilter re-read your config issue 'ipf -Fa -f
your-config-file'.

Pls. read
http://www.obfuscation.org/ipf/ipf-howto.html which
will give you many hints.

regard
Claus Guttesen


Beskyt din computer mod virus og misbrug! L�s mere i Yahoo! Sikkerhedscenter p� 
www.yahoo.dk/sikkerhedscenter

Reply via email to