Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: [Snort-users] Snort Box IP assigned by DHCP |
|---|---|
| Date: | Wed, 19 Apr 2006 09:57:13 -0500 |
Hi there!
Here is the problem. Every time I turn on the box, I have to look at the IP assigned by the ISP, edit snort.conf and, in the HOME_NET variable, I put the DHCP assigned address manually and after that, I start Snort and it works fine.
What I'd like to know is: Is there a way for me to automatically have snort to know what IP has been assigned and work with that IP. I've used both of these variables and it didn't work:
var HOME_NET $eth0_ADDRESS
and
var HOME_NET $eth0
But still... None worked.
Does Linux need some kind of program to make global variables work?
Try this and see if it works: var HOME_NET `ifconfig eth0 | grep inet | awk '{print $2}'`
Like this:
#!/bin/bash
MYIP=`ifconfig eth0 | grep inet | awk '{print $2}'`
export MYIPThen, in snort.conf var HOME_NET $MYIP
-- Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer The University of Texas at Dallas http://www.utdallas.edu/ir/security/
smime.p7s
Description: S/MIME Cryptographic Signature
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Snort-users] Snort duplicate signatures in table, Dirk Geschke |
|---|---|
| Next by Date: | Re: [Snort-users] Snort Box IP assigned by DHCP, Paul Schmehl |
| Previous by Thread: | [Snort-users] Snort Box IP assigned by DHCP, Palula Brasil |
| Next by Thread: | Re: [Snort-users] Snort Box IP assigned by DHCP, Paul Schmehl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |