Skip to content

Commit

Permalink
network: keep the same MAC on vif interfaces
Browse files Browse the repository at this point in the history
Even when it's veth pair into network namespace doing NAT.

QubesOS/qubes-issues#1143
  • Loading branch information
marmarek committed Oct 31, 2016
1 parent 1c42a06 commit c75b651
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion network/vif-qubes-nat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ if test "$command" == online; then
run ip netns add "$netns"
run ip link set "$netns_appvm_if" netns "$netns"

run ip link add "$netns_netvm_if" type veth peer name "$netvm_if"
# keep the same MAC as the real vif interface, so NetworkManager will still
# ignore it
run ip link add "$netns_netvm_if" type veth peer name "$netvm_if" address fe:ff:ff:ff:ff:ff
run ip link set "$netns_netvm_if" netns "$netns"

netns ip6tables -t raw -I PREROUTING -j DROP
Expand Down

0 comments on commit c75b651

Please sign in to comment.