Bob Mottram 11 years ago
parent
commit
41d9636d16
1 changed files with 9 additions and 4 deletions
  1. 9
    4
      beaglebone.txt

+ 9
- 4
beaglebone.txt View File

@@ -462,8 +462,8 @@ Set the following properties:
462 462
 TCP_PORTS="1,7,9,11,15,79,109,110,111,119,138,139,512,513,514,515,540,635,1080,1524,2000,2001,4000,4001,5742,6000,6001,6667,12345,12346,20034,27665,30303,32771,32772,32773,32774,31337,40421,40425,49724,54320"
463 463
 UDP_PORTS="1,7,9,66,67,68,69,111,137,138,161,162,474,513,517,518,635,640,641,666,700,2049,31335,27444,34555,32770,32771,32772,32773,32774,31337,54321"
464 464
 
465
-ADVANCED_EXCLUDE_TCP="113,139,70,80,443,143,6670,5060,5061,25,465,22,5222,5223,5269,5280,5281,8444"
466
-ADVANCED_EXCLUDE_UDP="520,138,137,67,70,80,443,143,6670,5060,5061,25,465,22,5222,5223,5269,5280,5281,8444"
465
+ADVANCED_EXCLUDE_TCP="113,139,70,80,443,143,6670,993,5060,5061,25,465,22,5222,5223,5269,5280,5281,8444"
466
+ADVANCED_EXCLUDE_UDP="520,138,137,67,70,80,443,143,6670,993, 5060,5061,25,465,22,5222,5223,5269,5280,5281,8444"
467 467
 
468 468
 SCAN_TRIGGER="2"
469 469
 
@@ -511,10 +511,14 @@ iptables -A INPUT -p tcp --tcp-flags ALL SYN,RST,ACK,FIN,URG -j DROP
511 511
 # Incoming malformed NULL packets:
512 512
 iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
513 513
 
514
-# limit ssh logins to no more than 3 per min
514
+# drop UDP to used ports
515
+iptables -A INPUT -p udp --match multiport --dports 70,80,443,143,6670,993,5060,5061,25 -j DROP
516
+iptables -A INPUT -p udp --match multiport --dports 465,22,5222,5223,5269,5280,5281,8444 -j DROP
517
+
518
+# limit ssh logins
515 519
 iptables -A INPUT -p tcp --dport 22 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT
516 520
 
517
-# Limit web connections to 20 per min
521
+# Limit web connections
518 522
 iptables -A INPUT -p tcp --dport 80 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT
519 523
 iptables -A INPUT -p tcp --dport 443 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT
520 524
 
@@ -529,6 +533,7 @@ iptables -A INPUT -p tcp --dport 70 -m limit --limit 10/minute --limit-burst 1 -
529 533
 
530 534
 # Limit IMAP connections
531 535
 iptables -A INPUT -p tcp --dport 143 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT
536
+iptables -A INPUT -p tcp --dport 993 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT
532 537
 
533 538
 # Limit SIP connections
534 539
 iptables -A INPUT -p tcp --dport 5060:5061 -m limit --limit 10/minute --limit-burst 1 -j ACCEPT