Re: can't do suitable block in firewall

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Leonardo Carneiro - Veltrac
Date: Tuesday, April 20, 2010 - 12:32 pm

Hi Shane, Heya and others. I tried a new setup, using tables (look more 
eficient than using a thousan rules to each variable). But is still 
failing :(

    # tables
    table <msn-rdr> persist const file "/etc/pf.conf.d/msn-rdr"
    table <msn-allow> persist const file "/etc/pf.conf.d/msn-allow"

    # msn proxy
    rdr on { $lan1_iface, $lan2_iface } proto tcp from <msn-rdr> to any
    port 1863 -> $proxy
    rdr on { $lan1_iface, $lan2_iface } proto tcp from <msn-rdr> to any
    port 25000:30000 -> $proxy

    # msn filter
    pass out quick on { $lan1_iface, $lan2_iface } inet proto tcp from
    <msn-rdr> to $proxy port 1863
    block out quick on ! $inet_iface inet proto tcp from ! <msn-allow>
    to any port 1863

In the msn-rdr table are IP of the hosts that should be redirected to 
the proxy, and in the msn-allow are the IP of the hosts that should be 
allowed to connect directly with the MSN over the internet (including 
the host $proxy). The $proxy host is in a fourth interface named $dmz_iface.

If i remove the "quick" statement of the block rule, anyone in any 
interface can connect, and with the 'quick' statement, no one can =S.
Also, back in february, when i just redirected everyone to the proxy, 
the rdr rules used to work, but with this more selective rule, it's not 
working at all.

Tks in advance.

Leonardo Carneiro - Veltrac wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
can't do suitable block in firewall, Leonardo Carneiro - ..., (Mon Apr 19, 10:43 am)
Re: can't do suitable block in firewall, Lars Nooden, (Mon Apr 19, 11:00 am)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Mon Apr 19, 11:12 am)
Re: can't do suitable block in firewall, Lars Nooden, (Mon Apr 19, 11:23 am)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Mon Apr 19, 12:13 pm)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Tue Apr 20, 4:52 am)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Tue Apr 20, 12:32 pm)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Tue Apr 20, 1:11 pm)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Tue Apr 20, 1:59 pm)
Re: can't do suitable block in firewall, Stuart Henderson, (Tue Apr 20, 4:14 pm)
Re: can't do suitable block in firewall, Lars Nooden, (Wed Apr 21, 12:46 am)
Re: [ot] xmpp server (was 'can't do suitable block in fire ..., Leonardo Carneiro - ..., (Thu Apr 22, 5:02 am)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Thu Apr 22, 5:04 am)
Re: can't do suitable block in firewall, Leonardo Carneiro - ..., (Thu Apr 22, 6:14 am)