Hi Guys,<br><br>I am trying to run snort at boot time automatically. Using Ubuntu 8-  Snort, barnyard compiled from source, 3 interfaces in total- 2 interfaces for NIDS and 1 for management. I edited the /etc/rc.local file and added the following lines:<br>

<br><b>Contents of /etc/rc.local</b><br>------------------------------------------------------------------<br>ifconfig eth0 up promisc<br>/usr/local/bin/snort -c /etc/snort.conf -i eth0<br>sudo /usr/local/bin/barnyard2 -c /etc/snort/barn2.conf -G /etc/snort/gen-msg.map -S /etc/snort/sid-msg.map -d /var/log/snort -f snort.log -w /var/log/snort/barnyard.waldo<br>

<br>ifconfig eth1 up promisc<br>
/usr/local/bin/snort -c /etc/snort.conf -i eth1<br>
sudo /usr/local/bin/barnyard2 -c /etc/snort/barnyard2.conf -G
/etc/snort/gen-msg.map -S /etc/snort/sid-msg.map -d /var/log/snort -f
snort.log -w /var/log/snort/barnyard.waldo<br>------------------------------------------------------------------------<br clear="all"><br>When I do ps -aux|grep snort on startup, all I see running is /usr/local/bin/snort -c /etc/snort.conf -i eth0. Why didn't the remaining commands execute? Will appreciate your input. Thanks a bunch.<br>

<br>Ams<br><br><br>