Chinaunix首页 | 论坛 | 博客
  • 博客访问: 794203
  • 博文数量: 858
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5015
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-29 17:43
文章分类

全部博文(858)

文章存档

2011年(1)

2008年(857)

我的朋友

分类: LINUX

2008-08-29 17:51:04

 
iptables问题求解

CentOS5下用BT下载文件问题?

E文太烂,帮忙给解释下这是什么意思?

iptables-IINPUT-ptcp--dport-jACCEPT
iptables-IINPUT-pudp--dport-jACCEPT

istheportnumberyouhaveusedforportforwarding(Avoid6881-6999,anyfrom49125-65535isfine)

Onceyou''veestablishedtheportisopenyouneedtomakethechangepersistthroughareboot

createafile/etc/init.d/iptables_azureusandaddthelinesbelow
(sleep220
/sbin/iptables-IINPUT-ptcp--dport-jACCEPT
/sbin/iptables-IINPUT-pudp--dport-jACCEPT)&

The(sleep220istheretomakethescriptwaitafewminutestoallowsubsequentfirewallconfigurationscriptstorun.220secondsisalargevalueandyoumaychoosetoconfigurealowervalue.Thekeyisthattheopeningoftheazureusportisnotcountermandedbythefirewallinitialisationwhichrunslater.Attheendisa)&whichallowsthescripttolettherestofthebootcontinue,whilethescriptwaits.

chmod x/etc/init.d/iptables_azureusmakethefileexecutable
update-rc.diptables_azureusstart51S.linksthefileintothestartupsequence

是不是让我创建/etc/init.d/iptables_azureus这个文件,并加入:
sleep220
/sbin/iptables-IINPUT-ptcp--dport-jACCEPT
/sbin/iptables-IINPUT-pudp--dport-jACCEPT
那么your_port_number我到底该添多少?6881行吗?

chmod x/etc/init.d/iptables_azureusmakethefileexecutable是把iptables_azureus变为可执行文件吧。

update-rc.diptables_azureusstart51S.linksthefileintothestartupsequence这个是让iptables_azureus在系统启动是自动运行吧。那么他是怎么实现的呢?
我运行
#update-rc.diptables_azureusstart51S
#commandnotfound
正确命令应该是什么阿?
如果我在启动后执行:
#iptables-IINPUT-pudp--dport6881-jACCEPT
#iptables-IINPUT-ptcp--dport6881-jACCEPT
是不是一样可以起到上面的作用阿?

CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解CentOS5 使用BT下载文件时iptables设置问题求解
阅读(252) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~