J
J
J_o_k_e_R2014-08-13 18:21:22
linux
J_o_k_e_R, 2014-08-13 18:21:22

How to make on one bridge (bridge) NAT for ipv4 and direct routing for ipv6?

I raise virtual machines on the server with xen.
I have one ipv4 address and /64 ipv6 addresses.
The task is to make it so that through one bridge interface (bridge) my virtual machines can access the Internet. That being said, I don't want to use NAT for IPv6 (IPv4 only).
br0 is assigned my external ipv4 address and one of the ipv6 addresses.
Now I use two interfaces in virtual machines:
1) Interface for IPv6 (eg vif1.0). On dom0, it is combined into a bridge br0 with enp2s0 (the server's external interface), ipv6 traffic is "bridging" through it (how can I put it humanly?). In virtual machines, this interface has public ipv6 addresses, ipv4 is not assigned to it.
2) Interface for ipv4 (eg vif1.1). Consolidates into a separate xenbr0 bridge that is assigned the address 10.0.1.1. In the virtual machine, an IPv4 address from the 10.0.1.0/24 range is hung on this interface, and on dom0 it is SNAT'ed into my public ipv4.
I tried to combine these two bridges into one, forbidding ipv4 to "bridge" using ebtables as indicated in the example , but the traffic stopped walking altogether.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wrewolf, 2014-08-21
@wrewolf

I'm thinking of digging towards the radvd daemon.
If I understand everything correctly, then in my LAN I have gray ipv4 issued by the router, and white ipv6 issued by the radvd proxy, they work just like that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question