This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_snort [2024/05/09 10:41] val [Сервис SNORT] |
сервис_snort [2024/05/11 11:15] val [Debian/Ubuntu] |
||
---|---|---|---|
Line 17: | Line 17: | ||
</code><code> | </code><code> | ||
... | ... | ||
- | DEBIAN_SNORT_INTERFACE="eth2" | + | #DEBIAN_SNORT_INTERFACE="eth0" |
- | #DEBIAN_SNORT_INTERFACE="eth1" | + | |
#DEBIAN_SNORT_INTERFACE="bond1" | #DEBIAN_SNORT_INTERFACE="bond1" | ||
DEBIAN_SNORT_HOME_NET="192.168.0.0/16" | DEBIAN_SNORT_HOME_NET="192.168.0.0/16" | ||
#DEBIAN_SNORT_HOME_NET="any" | #DEBIAN_SNORT_HOME_NET="any" | ||
... | ... | ||
- | </code><code> | + | </code> |
+ | |||
+ | * [[https://serverfault.com/questions/554713/snort-not-detecting-outgoing-traffic|Snort not detecting outgoing traffic]] | ||
+ | * [[https://forum.netgate.com/topic/55909/snort-enable_xff|inside of ssl termination proxies we need to get X-Forwarded-For]] | ||
+ | * [[http://manual-snort-org.s3-website-us-east-1.amazonaws.com/node17.html|2.2 Preprocessors (snort_manual)]] | ||
+ | |||
+ | <code> | ||
root@server:~# cat /etc/snort/snort.conf | root@server:~# cat /etc/snort/snort.conf | ||
</code><code> | </code><code> | ||
+ | ... | ||
+ | # Configure IP / TCP checksum mode | ||
+ | config checksum_mode: none | ||
+ | ... | ||
+ | preprocessor http_inspect_server: server default \ | ||
+ | ... | ||
+ | enable_xff \ | ||
+ | webroot no | ||
... | ... | ||
#################################################################### | #################################################################### | ||
Line 45: | Line 58: | ||
# tail -f /var/log/auth.log | grep Red | # tail -f /var/log/auth.log | grep Red | ||
+ | |||
+ | # u2spewfoo /var/log/snort/snort.alert | ||
+ | |||
+ | # stdbuf -i0 -o0 u2spewfoo <(tail -c +1 -f /var/log/snort/snort.alert) | logger -t snort -p auth.info | ||
</code> | </code> | ||