- 论坛徽章:
- 0
|
原帖由 dreamice 于 2009-5-12 15:50 发表 ![]()
不是讨论写法的问题,我只是想知道内核是不是支持这个域名匹配了
哦,这个应该早就支持了的,userspace 会自动通过 dns 解析 A 记录,转换成 ID 输出到 kernelspace 中
如果一个 domain 有多个 A 记录,那么很有意思的是会出现多个 -d X.X.X.X
- platinum ~ # iptables -A FORWARD -d [url]www.163.com[/url]
- platinum ~ # iptables -vnL
- Chain INPUT (policy ACCEPT 20 packets, 1528 bytes)
- pkts bytes target prot opt in out source destination
- Chain FORWARD (policy ACCEPT 113K packets, 66M bytes)
- pkts bytes target prot opt in out source destination
- 0 0 all -- * * 0.0.0.0/0 61.135.253.16
- 0 0 all -- * * 0.0.0.0/0 61.135.253.17
- 0 0 all -- * * 0.0.0.0/0 61.135.253.18
- 0 0 all -- * * 0.0.0.0/0 61.135.253.9
- 0 0 all -- * * 0.0.0.0/0 61.135.253.10
- 0 0 all -- * * 0.0.0.0/0 61.135.253.11
- 0 0 all -- * * 0.0.0.0/0 61.135.253.12
- 0 0 all -- * * 0.0.0.0/0 61.135.253.13
- 0 0 all -- * * 0.0.0.0/0 61.135.253.14
- 0 0 all -- * * 0.0.0.0/0 61.135.253.15
- Chain OUTPUT (policy ACCEPT 17 packets, 1628 bytes)
- pkts bytes target prot opt in out source destination
- platinum ~ #
复制代码 |
|