Browse Source

Block NetBIOS

Bob Mottram 11 years ago
parent
commit
2219eba217
1 changed files with 5 additions and 7 deletions
  1. 5
    7
      beaglebone.txt

+ 5
- 7
beaglebone.txt View File

518
 iptables -A INPUT -p tcp --destination-port 12345 -j DROP
518
 iptables -A INPUT -p tcp --destination-port 12345 -j DROP
519
 iptables -A INPUT -p tcp --destination-port 32771:32774 -j DROP
519
 iptables -A INPUT -p tcp --destination-port 32771:32774 -j DROP
520
 iptables -A INPUT -p tcp --destination-port 4000 -j DROP
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
 iptables -A INPUT -p udp --destination-port 1 -j DROP
523
 iptables -A INPUT -p udp --destination-port 1 -j DROP
522
 iptables -A INPUT -p udp --destination-port 7 -j DROP
524
 iptables -A INPUT -p udp --destination-port 7 -j DROP
523
 iptables -A INPUT -p udp --destination-port 109:111 -j DROP
525
 iptables -A INPUT -p udp --destination-port 109:111 -j DROP
537
 iptables -A INPUT -p udp --destination-port 32771:32774 -j DROP
539
 iptables -A INPUT -p udp --destination-port 32771:32774 -j DROP
538
 iptables -A INPUT -p udp --destination-port 4000 -j DROP
540
 iptables -A INPUT -p udp --destination-port 4000 -j DROP
539
 iptables -A INPUT -p udp --destination-port 119 -j DROP
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
 # Make sure NEW incoming tcp connections are SYN packets
544
 # Make sure NEW incoming tcp connections are SYN packets
542
 iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
545
 iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
947
 emacs ~/.procmailrc
950
 emacs ~/.procmailrc
948
 #+END_SRC
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
 #+BEGIN_SRC: sh
955
 #+BEGIN_SRC: sh
953
 MAILDIR=$HOME/Maildir
956
 MAILDIR=$HOME/Maildir
974
 :0
977
 :0
975
   * ^X-Spam-Level: \*\*
978
   * ^X-Spam-Level: \*\*
976
 .spam/
979
 .spam/
977
-
978
-# mail addressed to me
979
-:0
980
-  * ^TOusername
981
-$MAILDIR/new
982
 #+END_SRC
980
 #+END_SRC
983
 
981
 
984
 Save and exit.
982
 Save and exit.
1148
 chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
1146
 chown -R $MYUSERNAME:$MYUSERNAME $LISTDIR
1149
 echo "" >> $PM
1147
 echo "" >> $PM
1150
 echo ":0" >> $PM
1148
 echo ":0" >> $PM
1151
-echo "  * ^Subject:.*[$SUBJECTTAG]" >> $PM
1149
+echo "  * ^Subject:.*()\[$SUBJECTTAG\]" >> $PM
1152
 echo "$LISTDIR/new" >> $PM
1150
 echo "$LISTDIR/new" >> $PM
1153
 chown $MYUSERNAME:$MYUSERNAME $PM
1151
 chown $MYUSERNAME:$MYUSERNAME $PM
1154
 if [ ! -f "$MUTTRC" ]; then
1152
 if [ ! -f "$MUTTRC" ]; then