You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metron.apache.org by nickwallen <gi...@git.apache.org> on 2016/06/24 20:49:23 UTC
[GitHub] incubator-metron pull request #176: METRON-259 Using 'any' for Snort's HOME_...
GitHub user nickwallen opened a pull request:
https://github.com/apache/incubator-metron/pull/176
METRON-259 Using 'any' for Snort's HOME_NETWORK
In some cases, Ansible is not yet aware of the 'tap0' interface when the Snort deployment begins. This causes the deployment to fail with this error.
```
ERROR! ERROR! 'dict object' has no attribute u'ansible_tap0
```
It is not really necessary to set the HOME_NETWORK of Snort to the IP address of the sniff interface. This needs to be customized for Snort on a case-by-case basis for production deployments based on the target environment. For demo and development purposes, `any` works just fine and is much simpler.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nickwallen/incubator-metron METRON-259
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-metron/pull/176.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #176
----
commit d3faab46476d163503182702be72e3c6fa12d86b
Author: Nick Allen <ni...@nickallen.org>
Date: 2016-06-24T20:38:53Z
METRON-259 Using 'any' for Snort's HOME_NETWORK
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron issue #176: METRON-259 Using 'any' for Snort's HOME_NETWORK
Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the issue:
https://github.com/apache/incubator-metron/pull/176
I don't agree that using "any" works fine for either general or demonstration/development purposes. If we don't sniff the same interface with all the sensors, we get events that are uncorrelated with the rest of the sensor stack. Additionally, we'll see events that have no pcap backup.
Kind of related - there is a a production use case for the tap0 interface. You can direct all interfaces of interest to to the tap interface and sniff that.
Is there any reason to not investigate making this work using the sniff interface before falling back to "any"?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron issue #176: METRON-259 Using 'any' for Snort's HOME_NETWORK
Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the issue:
https://github.com/apache/incubator-metron/pull/176
@dlyle65535 the code already configures Snort to listen on the `sniff_interface`. See bottom of `metron-deployment/roles/snort/snort.yml`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron pull request #176: METRON-259 Using 'any' for Snort's HOME_...
Posted by nickwallen <gi...@git.apache.org>.
GitHub user nickwallen reopened a pull request:
https://github.com/apache/incubator-metron/pull/176
METRON-259 Using 'any' for Snort's HOME_NETWORK
In some cases, Ansible is not yet aware of the 'tap0' interface when the Snort deployment begins. This causes the deployment to fail with this error.
```
ERROR! ERROR! 'dict object' has no attribute u'ansible_tap0
```
It is not really necessary to set the HOME_NETWORK of Snort to the IP address of the sniff interface. This needs to be customized for Snort on a case-by-case basis for production deployments based on the target environment. For demo and development purposes, `any` works just fine and is much simpler.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nickwallen/incubator-metron METRON-259
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-metron/pull/176.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #176
----
commit ecff69fd26161b8fa4e867808bad0544c48e0a9c
Author: Nick Allen <ni...@nickallen.org>
Date: 2016-06-25T15:10:02Z
METRON-259 Using 'any' for Snort's HOME_NETWORK
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron issue #176: METRON-259 Using 'any' for Snort's HOME_NETWORK
Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the issue:
https://github.com/apache/incubator-metron/pull/176
Ah, that's a good clarification- I guess what we need is two things:
1) HOME_NETWORK to any (which you have done).
2) Configure the snort IFACE to be the sniff_interface.
So I had the corrective action wrong in METRON-247. If I'm not mistaken, after this PR, Snort will still listen on the first interface by default, so we won't see the traffic we expect in many situations. Having looked closer, I think the above 2 would have been the actual fix.
Thoughts?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron issue #176: METRON-259 Using 'any' for Snort's HOME_NETWORK
Posted by james-sirota <gi...@git.apache.org>.
Github user james-sirota commented on the issue:
https://github.com/apache/incubator-metron/pull/176
+1
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron issue #176: METRON-259 Using 'any' for Snort's HOME_NETWORK
Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the issue:
https://github.com/apache/incubator-metron/pull/176
@nickwallen - so it does. Good deal. I'm +1.
Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron pull request #176: METRON-259 Using 'any' for Snort's HOME_...
Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen closed the pull request at:
https://github.com/apache/incubator-metron/pull/176
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron pull request #176: METRON-259 Using 'any' for Snort's HOME_...
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/incubator-metron/pull/176
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron issue #176: METRON-259 Using 'any' for Snort's HOME_NETWORK
Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the issue:
https://github.com/apache/incubator-metron/pull/176
AFAIK, the HOME_NETWORK is used primarily to designate which traffic should be validated against the rule set. If Snort sees traffic where the source or destination is NOT associated with the HOME_NETWORK then it will not alert.
For replaying raw pcap in our demo environment, I want all traffic to be run against the rule set. Setting HOME_NETWORK to 'any' achieves this. What do you think?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-metron issue #176: METRON-259 Using 'any' for Snort's HOME_NETWORK
Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the issue:
https://github.com/apache/incubator-metron/pull/176
The current code base is trying to set the HOME_NETWORK to the IP of the sniff interface. I can't really think of any conditions under which you would want the HOME_NETWORK set to the IP of the sniff interface. Maybe I'm wrong though.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---