[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Perplexing pf rdr syntax error.
I am not really sure what the exact explanation really is, but the
reason why PF is complaining is because of the subnet declaration,
the "/32" part of the ip address in you macro (after the "->").
Kind reguards,
Peter Verhagen
<!-- many parts snipped -->
> # Macros for machines
> amiisi = "172.16.10.10"
> confhp2 = "172.16.10.2"
> devdmz = "134.244.172.1/32"
> amadi = "172.16.10.30/32"
> amadi_term = "134.244.175.145/32"
> amexi = "172.16.10.40/32"
> amexi_term = "134.244.175.146/32"
> amsqli = "172.16.10.50/32"
> amsqli_term = "134.244.175.147/32"
>
<!-- snip! -->
>
> # Terminal services
> rdr on tx0 proto tcp from any to $devdmz port 3389 -> $amiisi port
> 3389 rdr on tx0 proto tcp from any to $amadi_term port 3389 ->
> $amadi port 3389 rdr on tx0 proto tcp from any to $amexi_term port
> 3389 -> $amexi port 3389 rdr on tx0 proto tcp from any to
> $amsqli_term port 3389 -> $amsqli port 3389
>
<!-- snip! -->
>
> ps: Notice that the machine is on 134.244.172/24, while the rdr
> statements are using 134.244.175.x addresses (different subnet).
> I have not brought these aliases up yet - is THAT what it's
> complaining about?