Hi!

> I want to know if my rule set for ip.conf file is right , because it does
> not seem to work.

It does not seem to work, because to me it does not seem to be right 
;-)

> We have a private network ( 203.8.49.X ) connecting to our public network.

You really should use RFC1918 addresses for private network, but this 
is not what causes your ruleset to fail.

>    Whereas machines 203.8.49.157 must only have  telnet access to
>    our public network. ( this does not work )
>
> [1] pass in quick on qfe0 proto tcp from 203.8.49.157 to any port = 23
> [2] pass in quick on qfe0 proto tcp from any to 203.8.49.157 port = 23

What this does is: 

[1] allow 203.8.49.157 to initiate telnet sessions with anybody
[2] allow anybody to initiate telnet sessions with 203.8.49.157.

The latter is probably not what you want. What you want is to let in 
the response packets to telnet sessions initiated by rule [1].

Is qfe0 your external or internal interface? Anyway, you might consider 
replacing your ruleset with the following.

pass out quick on [internal-if] all
pass in  quick on [internal-if] all

pass out quick on [external-if] proto tcp/udp \
     from 203.8.49.158 to any keep state 
pass out quick on [external-if] proto tcp \ 
     from 203.8.49.157 to any port = 23 keep state
block out on [external-if]
block in on [external-if]
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* Windows NT - the world's only 80 MB solitaire game!

Reply via email to