免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1586 | 回复: 2
打印 上一主题 下一主题

[OpenBSD] pf也会影响havp的运行结果---ob中调试havp [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-01-04 15:48 |只看该作者 |倒序浏览
本帖最后由 ioerr 于 2012-01-05 22:16 编辑

ob中调试havp,碰到各种问题,其中一个就是网络死慢,原来是规则顺序闹得,答案见后。

---------搜到的一个类似情况---------------

配置havp中,碰上了一些的问题,搜到一个老外他解决了,但是iptables,我用OB的pf,不知道这些规则什么意思,哪位帮我解释下,我想借用下思路,谢谢。


thanks my problem has been solved .

I added following line to iptables output chain table:

######################$ dns output $######################
/sbin/iptables -A OUTPUT -p udp -m multiport --dport 53 -j ACCEPT

and added the following line to iptables input chain table:

######################$ dns input $######################
/sbin/iptables -A INPUT -p udp -m multiport --sport 53 -j ACCEPT

and added the following lines to iptables forward chain table:
######################$ dns $######################
/sbin/iptables -A FORWARD -s 192.168.0.0/24 -o WAN1 -p udp -m multiport --dport 53 -j ACCEPT
######################$ reversedns $######################
/sbin/iptables -A FORWARD -d 192.168.0.0/24 -o WAN2 -p udp -m multiport --sport 53 -j ACCEPT
havp doesn't have any problem with DNS...

论坛徽章:
0
2 [报告]
发表于 2012-01-05 22:13 |只看该作者
pass out quick on $ext_if from any to any nat-to $ext_if
pass  quick on $int_if
pas out quick on $ext_if

使用这样的规则,没事了,看来我是把nat放到后面闹得。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP