|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Server with 2 NICs. DomU as Router
On 05/18/2016 01:21 PM, John Pearson wrote: Hi John,I do something similar. In domain0 set up as many bridges as you need. To remind me of what they are I give mine names like WAN, LAN, SND, etc. In my case my domain0 is attached to LAN using a tap device. domain0's IP is on the LAN, *not* on the tap, and domain0's default route is via LAN. Domain0 has no IPs on any of the other bridges. In your router VM create a vif that is attached to the bridge your domain0's IP is on and in your interfaces file give that vif an IP on the same network as your domain0. That becomes your domain0's gateway IP. e.g. On domain0: ip r a default via ro.ut.er.IP dev LAN. In domain0 setup your firewall to only accept EST,REL in iptable's filter's INPUT chain. For testing you may also want to allow ICMP. Xen will automatically add the vifs to the FORWARD chain. With this setup there is no physical ethernet connection to domain0 and nobody can initiate a connection *to* it but it can get out as far as the router. From there everything is controlled by your router's firewall and routing table. Try not to over think it. Once you have it working with a tap you can use "/sbin/ip" to create whatever type of interface you want or you can use a physical if you need a hardware connection. Hope that makes sense, Mike Wright _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |