Chinaunix首页 | 论坛 | 博客
  • 博客访问: 145440
  • 博文数量: 22
  • 博客积分: 428
  • 博客等级: 下士
  • 技术积分: 281
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-14 14:28
文章分类

全部博文(22)

文章存档

2013年(7)

2012年(15)

分类: LINUX

2012-05-21 18:44:03

Enable ipv6 multiple route tables in kernel.
Enable ipv6 iptables in kernel and user space.
Enable iproute's ipv6 support.

1. use ip6tables match packet and set the mark at the hook of PREROUTING.

2. add route to route tables. N is route table's index.
#ip -6 route add default via gw dev eth%d table N

3. add rule to map packet to route tables according to skb's mark. M is rule's index.
#ip -6 rule add fwmark X table N prio M
阅读(1590) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~