Hello,
My server has public IP address in a 10.0.0.0/8 network. I want to restrict access to me, letting packets from computes with addresses 10.num.num.0 - 10.num.num.255 be checked by other service-specific rules, but denying access for others from 10.0.0.0/8 network.
I'm a bit confused. I can't find suitable IPFW rules for that.
If I write an allow rule for that trusted range and then a deny rule for the whole 10.0.0.0/8, the rest of the rules won't work. For example, rules after dotes [ ? -- Mod.] won't be checked, because the two first rules are triggered:
Is there any solution?
My server has public IP address in a 10.0.0.0/8 network. I want to restrict access to me, letting packets from computes with addresses 10.num.num.0 - 10.num.num.255 be checked by other service-specific rules, but denying access for others from 10.0.0.0/8 network.
I'm a bit confused. I can't find suitable IPFW rules for that.
If I write an allow rule for that trusted range and then a deny rule for the whole 10.0.0.0/8, the rest of the rules won't work. For example, rules after dotes [ ? -- Mod.] won't be checked, because the two first rules are triggered:
Code:
$cmd add allow all from ${trusted_network} to ${ip_out} via ${ifc_out}
$cmd add allow all from ${ip_out} to ${trusted_network} via ${ifc_out}
$cmd add deny all from any to 10.0.0.0/8 via ${ifc_out}
$cmd add deny all from 10.0.0.0/8 to any via ${ifc_out}
............
$cmd add allow all from ${ip_out} to any 53 out via ${ifc_out}
$cmd add allow all from any 53 to ${ip_out} via ${ifc_out}
Is there any solution?