[Q:][IPv6-NAT]How to let inner-host reach outside by IPv6-NAT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, all
    Recently,I worked on the "IPv6 NAT gateway" based on ip6tables+netfilter.


Question Description:
    - Host A:a machine with an ipv6-A address(could be reached world-globally)
    - Host B: a machine with an ipv6-B address(could not be reached outside)
    -
AIM:
    - I want let Host-B reach outsite-Internet by Host-A ( IPv6-NAT )
Question:
    - I create a ipv6-vxlan tunnel between Host-A and Host-B.
    - And set "forwarding = 1" on A&B
    - and set ip6tables rule like this:
        - ip6tables -t nat -A POSTROUTING -p tcp -s
2400:da00:e006:5e01::/64 -o xgbe1 -j MASQUERADE
    - But:
        - I can find packets on vxlan device on Host-A.(by "tcpdump -i
$vxlan_device_name )
        - but, these packtets Just are lost, and not NATed , and not
routed to POSTROUTING
        - "ip6tables -t nat -nvL" show that there are nothing pkts passed.


what can do for this? I don't kown how to solve it or analyze it.

---
shuchao.max




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux