- 論壇徽章:
- 0
|
本帖最后由 helloiac 于 2014-10-15 09:16 編輯
捕獲.png (56.31 KB, 下載次數(shù): 40)
下載附件
2014-10-14 17:38 上傳
說明:
1.局域網(wǎng)內有大量的windows destkop 40~50臺,使用outlook 或者foxmail 等 3分鐘自動連接郵件服務器收件或者不定時發(fā)送郵件
2.局域網(wǎng)內有部分linux 內網(wǎng)服務器,偶爾連接郵件服務器進行發(fā)件
3.整個局域網(wǎng)連接外網(wǎng)都nat 成同一個公網(wǎng)ip ccc ,router C 本身也是一臺linux 主機開啟轉發(fā)
問題概述:
1.局域網(wǎng)內windows 主機telnet 郵件服務器A 一般都沒有問題 但是使用局域網(wǎng)內的部分linux 主機telnet 時常會連接不上,不管是什么端口(22,25.443,995)都是一樣的情況
2.外網(wǎng)linux 服務器B telnet 郵件服務器A 一般也都沒有問題
在郵件服務器上抓包,服務器有收到syn 但是服務器沒有返回包
以443端口為例
使用一臺內網(wǎng)Fedora 19 telnet 服務器443端口,服務器上的抓包情況- 15:16:55.144222 IP xxx.xxx.xxx.xxx.46989 > xxx.xxx.xxx.xxx.https: Flags [S], seq 939563650, win 29200, options [mss 1460,sackOK,TS val 23633360 ecr 0,nop,wscale 7], length 0
- 15:17:03.160282 IP xxx.xxx.xxx.xxx.46989 > xxx.xxx.xxx.xxx.https: Flags [S], seq 939563650, win 29200, options [mss 1460,sackOK,TS val 23641376 ecr 0,nop,wscale 7], length 0
復制代碼 使用一臺window7 telnet 服務器443端口,服務器上的抓包情況
(window7 與Fedora19 位于同一臺hub 上)- 15:20:54.484991 IP xxx.xxx.xxx.xxx.49218 > xxx.xxx.xxx.xxx.https: Flags [S], seq 31344922, win 8192, options [mss 1460,nop,wscale 2,nop,nop,sackOK], length 0
- 15:20:54.485034 IP xxx.xxx.xxx.xxx.https > xxx.xxx.xxx.xxx.49218: Flags [S.], seq 1361958840, ack 31344923, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
- 15:20:54.485558 IP xxx.xxx.xxx.xxx.49218 > xxx.xxx.xxx.xxx.https: Flags [.], ack 1, win 4380, length 0
- 15:20:55.685554 IP xxx.xxx.xxx.xxx.https > xxx.xxx.xxx.xxx.49218: Flags [S.], seq 1361958840, ack 31344923, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 7], length 0
- 15:20:55.686359 IP xxx.xxx.xxx.xxx.49218 > xxx.xxx.xxx.xxx.https: Flags [.], ack 1, win 4380, options [nop,nop,sack 1 {0:1}], length 0
- 15:21:05.122927 IP xxx.xxx.xxx.xxx.49218 > xxx.xxx.xxx.xxx.https: Flags [F.], seq 1, ack 1, win 4380, length 0
- 15:21:05.123193 IP xxx.xxx.xxx.xxx.https > xxx.xxx.xxx.xxx.49218: Flags [F.], seq 1, ack 2, win 115, length 0
- 15:21:05.123813 IP xxx.xxx.xxx.xxx.49218 > xxx.xxx.xxx.xxx.https: Flags [.], ack 2, win 4380, length 0
復制代碼 服務器上sysctl -a 關于syn的
fs.quota.syncs = 0
net.netfilter.nf_conntrack_tcp_timeout_syn_sent = 120
net.netfilter.nf_conntrack_tcp_timeout_syn_recv = 60
net.ipv4.tcp_syn_retries = 5
net.ipv4.tcp_synack_retries = 5
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_max_syn_backlog = 10240
net.ipv6.conf.all.max_desync_factor = 600
net.ipv6.conf.default.max_desync_factor = 600
net.ipv6.conf.lo.max_desync_factor = 600
net.ipv6.conf.eth0.max_desync_factor = 600
net.ipv6.conf.eth1.max_desync_factor = 600
net.ipv6.conf.eth2.max_desync_factor = 600 |
-
捕獲.PNG
(56.31 KB, 下載次數(shù): 38)
下載附件
2014-10-14 17:37 上傳
|