[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NAT: ppp vs pf?



Hi, Jared.
    Your rules should be something like:

    nat on rl0 from 192.168.0.0/24 to any -> rl1

    ...

    pass out on rl0 route-to (rl1 gw_rl1) from rl1 to any keep state

    Where rl0 is the NIC for your default gateway and rl1 is your ADSL.
    You see how it is NATed on rl0, but with the address of rl1?

    []'s,
    Rafael Coninck Teigao
    SafeCore Network Solutions
    http://SafeCore.NET
    +55 41 224 1785

--
------------------------------------------------------------------------
The Lord is my shepherd I shall not want
        (Psalms 23)
Der Herr ist mein Hirte Mir wird nichts mangeln
        (Psalm 23)
O Senhor é o meu pastor; nada me faltará.
        (Salmo 23)
------------------------------------------------------------------------