[prads-users] Specifying home nets when running prads?
Edward Bjarte Fjellskål
edward.fjellskal at redpill-linpro.com
Wed May 19 13:19:24 CEST 2010
Andy Berryman wrote:
> When I run prads I know to specify the home nets I use the -a switch.
> But how do I specify a range of addresses? For instance, let say my
> public IP range is 10.1.1.162-183. Using a /27 mask will make my home
> nets appear as the 160-191 addresses (really 161-190). But that wouldn't
> be right b/c the 160 and 161 aren't my public IP's and neither is 184-191.
> Andy Berryman
The easyest way would be to specify it on the command line:
-a 10.1.1.162/32,10.1.1.163/32,10.1.1.164/32..(and so on)..10.1.1.183/32
You can specify up to 255 networks or hosts.
I personally would prefer a better way to handle the -a 'networks'
-a 10.1.1.160/27,!10.1.1.183,!10.1.1.182,!10.1.1.181.....(and so on)
But implementing a filter like that is a bit more work.
I see it as a lot more simple to just specify it as -a 10.1.1.160/32
then have the perl-script that processes the prads-asset.log filter
out the IPs you really want.
We have been talking about it several times, but not yet seen a
solution that we are comfortable with.
More information about the prads-users