Skip to content

Commit

Permalink
exlude sample log directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jullrich committed May 7, 2017
1 parent 17e5988 commit 1514f0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ bin/sitecopy.pyc
bin/db_builder.pyc
.lastufw
*.pyc
samplelogs/
2 changes: 1 addition & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ fi

cat >> /etc/network/iptables <<EOF
# log all traffic with original ports
-A PREROUTING -i $interface -j LOG --log-prefix " DSHIELDINPUT "
-A PREROUTING -i $interface -m state --state NEW,INVALID -j LOG --log-prefix " DSHIELDINPUT "
# redirect honeypot ports
-A PREROUTING -p tcp -m tcp --dport 22 -j REDIRECT --to-ports 2222
COMMIT
Expand Down
2 changes: 1 addition & 1 deletion etc/rsyslog.d/dshield.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$template DShieldTemplate,"%timegenerated:::date-unixtimestamp% %HOSTNAME% %syslogtag%%msg%\n"
if $msg contains " INPUT IN=%%interface%%" then /var/log/dshield.log;DShieldTemplate
if $msg contains " DSHIELDINPUT " then /var/log/dshield.log;DShieldTemplate

0 comments on commit 1514f0b

Please sign in to comment.