亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 3374 | 回復(fù): 6
打印 上一主題 下一主題

[FreeBSD] freebsd ipfw+ipnat+dummynet 網(wǎng)速慢 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-10-16 15:09 |只看該作者 |倒序?yàn)g覽
同學(xué)們幫我看看 我做的freebsd7.0 ipfw+ipnat+dummynet  

下面是IPFW的規(guī)則
#add deny log ip from any to any ipoptions rr
#add deny log ip from any to any ipoptions ts
#add deny log ip from any to any ipoptions ssrr
#add deny log ip from any to any ipoptions lsrr
#add deny tcp from any to any in tcpflags syn,fin
#########re1 == WAN
#########re0 == LAN
add divert 8668 ip from any to any via re1  #WAN PORT
#add allow tcp from any to me 80
#add allow tcp from any to me 443
#add allow tcp from any to me 25
#add allow tcp from any to me 110
#######dummynet
pipe 1 config bw 50KByte/s
pipe 2 config bw 50KByte/s
add pipe 1 ip from 192.168.1.191 to any out
add pipe 2 ip from any to 192.168.1.191 in

### 192.168.10.2 # 3-4#
pipe 3 config bw 50KByte/s
pipe 4 config bw 50KByte/s
add pipe 3 ip from 192.168.10.2 to any out
add pipe 4 ip from any to 192.168.10.2 in

### 192.168.10.3 # 5-6#
pipe 5 config bw 50KByte/s
pipe 6 config bw 50KByte/s
add pipe 5 ip from 192.168.10.3 to any out
add pipe 6 ip from any to 192.168.10.3 in
。。。。
。。。。
。。。。
#######private network
add allow all from any to any via lo0
############lan #############
############ dns ###########
add allow udp from any 53 to me in recv x10
add allow udp from any 53 to 124.193.200.70
add allow udp from any to any out
add allow udp from any to any in
############
add check-state
add allow tcp from any to any out setup keep-state
add allow tcp from any to any out
add allow udp from any to any out
add allow gre from any to any out setup keep-state
add allow gre from any to any out
add allow udp from any 53 to any
add allow icmp from any to any
add allow all from any to 192.168.10.0/24
add allow all from 192.168.10.0/24 to any
add 65534 deny all from any to any
#add allow icmp from any to any icmptypes 3,4
#add allow icmp from any to any icmptypes 8 out
#add allow icmp from any to any icmptypes 0,11 in
用公司其他機(jī)器測(cè)試,下載速度在50K左右,但打開某些網(wǎng)頁(yè)速度很慢,而且還有沒限制的機(jī)器上網(wǎng)也很慢,不知道是不是和規(guī)則有關(guān),請(qǐng)高手指點(diǎn)

論壇徽章:
54
2017金雞報(bào)曉
日期:2017-02-08 10:39:42操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-03-08 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-03-07 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-02-22 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-27 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-20 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-06 06:20:0015-16賽季CBA聯(lián)賽之江蘇
日期:2015-12-21 20:00:24操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-12-21 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-17 06:20:002015亞冠之廣州恒大
日期:2015-11-12 10:58:02
2 [報(bào)告]
發(fā)表于 2008-10-16 17:49 |只看該作者
1、都用ipfw了,為什么還要用ipnat?
2、divert natd的兩個(gè)方向最好分開。
3、192.168.10.3和192.168.10.4,192.168.1.191配置基本上差不多,為什么不合到一塊去?
4、限速時(shí),最好指明xmit和recv。
5、內(nèi)網(wǎng)有點(diǎn)亂,估計(jì)65534規(guī)則沒什么用途。因?yàn)榛旧隙糰llow了。
6、內(nèi)網(wǎng)中,就別用keep-state了,對(duì)你的規(guī)則好像沒什么用途。

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2008-10-17 10:38 |只看該作者
用ipnat做內(nèi)網(wǎng)服務(wù)器的端口映射,用ipfw做流量控制和過(guò)濾,但是做了流量控制后延時(shí)增大到50ms左右,特別是當(dāng)打開網(wǎng)站的時(shí)候,網(wǎng)速特別慢,刪除策略后恢復(fù)正常,請(qǐng)問是什么原因?qū)е卵訒r(shí)增大?使用的策略是否有問題?
# ping www.sina.com
PING jupiter.sina.com.cn (202.108.33.32): 56 data bytes
64 bytes from 202.108.33.32: icmp_seq=0 ttl=241 time=45.074 ms
64 bytes from 202.108.33.32: icmp_seq=1 ttl=241 time=45.916 ms
64 bytes from 202.108.33.32: icmp_seq=2 ttl=241 time=47.338 ms
64 bytes from 202.108.33.32: icmp_seq=3 ttl=241 time=45.575 ms
64 bytes from 202.108.33.32: icmp_seq=4 ttl=241 time=45.087 ms

論壇徽章:
54
2017金雞報(bào)曉
日期:2017-02-08 10:39:42操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-03-08 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-03-07 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-02-22 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-27 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-20 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-06 06:20:0015-16賽季CBA聯(lián)賽之江蘇
日期:2015-12-21 20:00:24操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-12-21 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-17 06:20:002015亞冠之廣州恒大
日期:2015-11-12 10:58:02
4 [報(bào)告]
發(fā)表于 2008-10-17 11:20 |只看該作者
限速增大延時(shí)正常,因?yàn)槊總(gè)流量都要通過(guò)一個(gè)管道或隊(duì)列。

網(wǎng)速慢不正常。

看你的ipfw規(guī)則,也用ipfw做nat了,所以哪個(gè)地方肯定出問題。

現(xiàn)在的ipfw nat性能也不錯(cuò),ipnat和ipfw沒有很大的優(yōu)勢(shì),既然用了ipfw,可以考慮不用ipnat了。

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2008-10-17 11:38 |只看該作者
這是我做的NAT 請(qǐng)問在ipfw 里怎么做單獨(dú)的內(nèi)網(wǎng)IP端口映射呀?我不想把整個(gè)IP映射出去
# cat natd.conf
same_ports                      yes
use_sockets                     yes
redirect_port tcp 192.168.10.208:443 124.193.X.X:443
redirect_port tcp 192.168.10.208:25 124.193.X.X:25
redirect_port tcp 192.168.10.208:110 124.193.X.X:110
redirect_port tcp 192.168.10.250:53 124.193.X.X:53
redirect_port udp 192.168.10.250:53 124.193.X.X:53
redirect_port tcp 192.168.10.250:80 124.193.X.X:80
#

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2008-10-17 11:40 |只看該作者
你有MSN嗎? 可以加MSN嗎? robinzhao518@hotmail.com

論壇徽章:
54
2017金雞報(bào)曉
日期:2017-02-08 10:39:42操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-03-08 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-03-07 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-02-22 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-29 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-27 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-20 06:20:00操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-01-06 06:20:0015-16賽季CBA聯(lián)賽之江蘇
日期:2015-12-21 20:00:24操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-12-21 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-17 06:20:002015亞冠之廣州恒大
日期:2015-11-12 10:58:02
7 [報(bào)告]
發(fā)表于 2008-10-17 18:10 |只看該作者
還是看看ipfw的man吧。

http://blog.chinaunix.net/u1/38866/showart_1149636.html

雖然現(xiàn)在流行pf,但是由于我一開始用ipfw,所以也不想換了。
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP