浏览代码

Unencrypted IRC ports

Bob Mottram 10 年前
父节点
当前提交
54ab6e9191
共有 1 个文件被更改,包括 9 次插入8 次删除
  1. 9
    8
      beaglebone.txt

+ 9
- 8
beaglebone.txt 查看文件

1250
 iptables -A INPUT -p tcp --destination-port 2000:2001 -j DROP
1250
 iptables -A INPUT -p tcp --destination-port 2000:2001 -j DROP
1251
 iptables -A INPUT -p tcp --destination-port 12345 -j DROP
1251
 iptables -A INPUT -p tcp --destination-port 12345 -j DROP
1252
 iptables -A INPUT -p tcp --destination-port 32771:32774 -j DROP
1252
 iptables -A INPUT -p tcp --destination-port 32771:32774 -j DROP
1253
-iptables -A INPUT -p tcp --destination-port 6665:6669 -j DROP
1254
 iptables -A INPUT -p tcp --destination-port 4000 -j DROP
1253
 iptables -A INPUT -p tcp --destination-port 4000 -j DROP
1255
 iptables -A INPUT -p tcp --destination-port 119 -j DROP
1254
 iptables -A INPUT -p tcp --destination-port 119 -j DROP
1256
 iptables -A INPUT -p tcp --destination-port 137 -j DROP
1255
 iptables -A INPUT -p tcp --destination-port 137 -j DROP
1316
 iptables -A INPUT -p tcp --match multiport --dports 5222:5223,5269,5280:5281 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT
1315
 iptables -A INPUT -p tcp --match multiport --dports 5222:5223,5269,5280:5281 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT
1317
 
1316
 
1318
 # Limit IRC connections
1317
 # Limit IRC connections
1318
+iptables -A INPUT -p tcp --dport 6665:6669 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT
1319
 iptables -A INPUT -p tcp --dport 6697 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT
1319
 iptables -A INPUT -p tcp --dport 6697 -m limit --limit 3/minute --limit-burst 1 -j ACCEPT
1320
 
1320
 
1321
 # Limit gopher connections
1321
 # Limit gopher connections
3328
 So the file should looks like:
3328
 So the file should looks like:
3329
 
3329
 
3330
 #+BEGIN_SRC: bash
3330
 #+BEGIN_SRC: bash
3331
-1# ...
3332
-2# Some useful stuff to edit here.
3333
-3# Beware: TOPICLEN may not exceed 390.
3334
-4NICKLEN = 15
3335
-5TOPICLEN = 350
3336
-6MAXCLIENTS = 200
3337
-7USE_OPENSSL = 1
3331
+# ...
3332
+# Some useful stuff to edit here.
3333
+# Beware: TOPICLEN may not exceed 390.
3334
+NICKLEN = 15
3335
+TOPICLEN = 350
3336
+MAXCLIENTS = 200
3337
+USE_OPENSSL = 1
3338
 8# ...
3338
 8# ...
3339
 #+END_SRC
3339
 #+END_SRC
3340
 
3340
 
7320
 | HTTP          |         80 |
7320
 | HTTP          |         80 |
7321
 | HTTPS         |        443 |
7321
 | HTTPS         |        443 |
7322
 | IMAP          |        143 |
7322
 | IMAP          |        143 |
7323
+| IRC           | 6665..6669 |
7323
 | IRC SSL       |       6697 |
7324
 | IRC SSL       |       6697 |
7324
 | SIP           | 5060..5061 |
7325
 | SIP           | 5060..5061 |
7325
 | SMTP          |     25,587 |
7326
 | SMTP          |     25,587 |