|
@@ -518,6 +518,8 @@ iptables -A INPUT -p tcp --destination-port 2000:2001 -j DROP
|
518
|
518
|
iptables -A INPUT -p tcp --destination-port 12345 -j DROP
|
519
|
519
|
iptables -A INPUT -p tcp --destination-port 32771:32774 -j DROP
|
520
|
520
|
iptables -A INPUT -p tcp --destination-port 4000 -j DROP
|
|
521
|
+iptables -A INPUT -p tcp --destination-port 119 -j DROP
|
|
522
|
+iptables -A INPUT -p tcp --destination-port 137 -j DROP
|
521
|
523
|
iptables -A INPUT -p udp --destination-port 1 -j DROP
|
522
|
524
|
iptables -A INPUT -p udp --destination-port 7 -j DROP
|
523
|
525
|
iptables -A INPUT -p udp --destination-port 109:111 -j DROP
|
|
@@ -537,6 +539,7 @@ iptables -A INPUT -p udp --destination-port 12345 -j DROP
|
537
|
539
|
iptables -A INPUT -p udp --destination-port 32771:32774 -j DROP
|
538
|
540
|
iptables -A INPUT -p udp --destination-port 4000 -j DROP
|
539
|
541
|
iptables -A INPUT -p udp --destination-port 119 -j DROP
|
|
542
|
+iptables -A INPUT -p udp --destination-port 137 -j DROP
|
540
|
543
|
|
541
|
544
|
# Make sure NEW incoming tcp connections are SYN packets
|
542
|
545
|
iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
|
|
@@ -947,7 +950,7 @@ exit
|
947
|
950
|
emacs ~/.procmailrc
|
948
|
951
|
#+END_SRC
|
949
|
952
|
|
950
|
|
-The text should look like the following. Replace /username/ with your username.
|
|
953
|
+The text should look like the following.
|
951
|
954
|
|
952
|
955
|
#+BEGIN_SRC: sh
|
953
|
956
|
MAILDIR=$HOME/Maildir
|
|
@@ -974,11 +977,6 @@ LOGABSTRACT=all
|
974
|
977
|
:0
|
975
|
978
|
* ^X-Spam-Level: \*\*
|
976
|
979
|
.spam/
|
977
|
|
-
|
978
|
|
-# mail addressed to me
|
979
|
|
-:0
|
980
|
|
- * ^TOusername
|
981
|
|
-$MAILDIR/new
|
982
|
980
|
#+END_SRC
|
983
|
981
|
|
984
|
982
|
Save and exit.
|
|
@@ -1148,7 +1146,7 @@ fi
|
1148
|
1146
|
chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
|
1149
|
1147
|
echo "" >> $PM
|
1150
|
1148
|
echo ":0" >> $PM
|
1151
|
|
-echo " * ^Subject:.*[$SUBJECTTAG]" >> $PM
|
|
1149
|
+echo " * ^Subject:.*()\[$SUBJECTTAG\]" >> $PM
|
1152
|
1150
|
echo "$LISTDIR/new" >> $PM
|
1153
|
1151
|
chown $MYUSERNAME:$MYUSERNAME $PM
|
1154
|
1152
|
if [ ! -f "$MUTTRC" ]; then
|