| It uploads based on the directory you put in the policy. If you have "D:\Snort\Etc\Rules" for a directory, it will try to copy it to that directory. What you need to do is put "..\rules" and it should work.
|
Worked perfectly. That had to be the only permutation I didn't try, of course. :-)
| Just so you know this script will run on the local machine and not on the remote machine. To restart a service on a remote machine use the "sc.exe" command. I will look into why this isn't working. I looked at it with IDSPM Stand Alone and it worked fine. I will let you know. |
I wanted a standard batch file I could use with minimal modification. It goes on each Snort sensor and has this syntax:
START /w sc \\ipaddress stop SnortSvc
sc \\ipaddress start SnortSvc
It is located on the remote machine (so I don't have to have them all on my computer) and does execute on my computer and works OK.
[/QUOTE]
| resek wrote
4. How do I set the Sensor ID to the new sensor? The only ones that show up are the ones that are already present.
|
Snort is kind of finiky about how it creates sensor id's. Because of this you have to wait until one is created by snort. The only thing that you will not have is the link between the events and policy. once the first event is created you can set this. but... now that we don't use sensor ID's and we use the sensor name, we might be able to get around this without much difficulty. I will look into this.
|
So, as soon as Snort picks something up and writes to the MySQL database, it will appear (what I entered in the database output plugin)? That'll work.
Thanks for the quick responses,
Ray