论坛风格切换切换到宽版
  • 555阅读
  • 0回复

[问题求助]iptables问题求解 [复制链接]

上一主题 下一主题
 
发帖
2041
C币
-198555
威望
419
贡献值
1
银元
-2
铜钱
4716
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
Cent.OS5下用BT下载文件问题?投资

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

iptabl.es -I INPUT -p tcp --dport <you.r_port_number> -j ACCEPT虚拟主机
iptables -I INPUT -p udp --dport <your_por.t_number.> -j ACCEPT--- 印刷

<your_port_number> is. the port number you have .used f.or port forwarding (Avoid 6881-6999, any from 49125-65535 is fine)             电子

Once you've established the port is .open you n.eed to make the change persist throu.gh a reboot           女人

create a file /etc/init.d/.ipta.bles_azureus and add the lines below(广告)
(sleep 220
/sbin/iptables -I INP.UT -p tcp --dport. <your_port_number> -j ACCEPT[成人用品]
/sbin/iptables -I INPUT -p udp --dport <your_port_.number> -j ACCEPT .) &(        游戏          )

The .(sleep 220 is there to make the script. wait .a few minutes to .allow subseque.nt firewall configuration scripts to run. 2.20 seconds is a large. value and you may choose to configure a lower value. The key is that the opening of the azureus port is not countermanded by the fi.rewall .initialisation which runs later. At the end is a ) & which allows the script to let the rest of the boot continue, while the script waits.<性病>

ch.mod +x /etc/init.d/iptables_azureu.s make the file executable.
update.-rc.d i.ptables_azureus start 51 S . links the file into the startup sequ.ence    外汇

是不.是让我创建/etc/.init.d/iptables_azureus这个文件,并加入:.
sleep 220
/sbin/iptables -I IN.PUT -p tcp --dport <your_port_number> -j ACCEPT.          婚庆
/sbin/iptables -I INPUT -.p udp. --dport <your_port_number> -j ACCEPT健康
那么your_port_.numbe.r我到底该添多少?6881行吗?.

chmod +x /etc/init.d/iptables_azureus mak.e the file executable是把i.ptables_azure.us变为可执行文件吧。.

update-rc.d iptables_azureus start 51 S . links the file i.nto the startup sequence这个是让iptables_azure.us在系统启动是自动运行吧。那么他.是怎么实现的呢?           鲜花
我运行
#updat.e-rc.d iptab.les_azureus start 51 S             电子
#command not found.--------------彩票
正确命令应该是什么阿 ?
如果我在启动后执行:
# iptables -I INP.UT. -p udp --dport 6881 -j ACCEPT电脑
# iptables -I INPUT -p. tcp --dport 6881 -j .ACCEPT          婚庆
是不是一样可以起到上面的作用阿. ?服务器
评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个