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) |