Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Ive got a Dedicated Server with 2 Public IP Adresses and would like to route all eth0:1 traffic to a KVM Guest via iproute2 or even iptables. Outgoing Traffic should also be routed to eth0:1 - eth0 and eth0:1 are assigned in different Subnets.

Setup is/should be as following: eth0:1 <-> br1, gateway for tap1 <-> KVM Guest

share|improve this question

2 Answers 2

This seems way too complex. Just bridge the VM and set the IP address in the guest.

share|improve this answer

it actually was surprisingly simple:

-A PREROUTING -d -j DNAT --to-destination
-A POSTROUTING -s -j SNAT --to-source

thanks anyway!

share|improve this answer
Yeah, and now you have completely unnecessary NAT which is going to make your life more difficult later. :) – Michael Hampton Oct 21 '12 at 16:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.