WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] to access 4 Virtual Hosts from a public IP


You could go the iptables route. This should be easy if your DomU's external access is routed through your Dom0 as a default gw.

For HTTP you could also go the reverse proxy route i.e. http://external/internal1 http://external/internal2

If you don't want to setup iptables and you want a quick fix, you can use socat,



On 10 April 2010 09:53, Grant McWilliams <grantmasterflash@xxxxxxxxx> wrote:

On Fri, Apr 9, 2010 at 11:09 PM, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
I have installed Debian and Xen and 4 Virtual Hosts are up which can
be accessed via doing and SSH to Dom0.
I  have a few questions.
1) I do not want to do an SSH to Dom0 always directly want to access
DomU's how to go for that?
2) Want to have 4 websites running on these 4 virtual hosts but they
should be accessible on a public IP which Dom0 has so how should I go
for it?

Completely depends on your internernal network setup. If you have all of your vifs on the default bridge
then they'll have addresses on the same range as your Dom0 and the public IPs will have to be routed through to the
internal private IPs the same way the Dom0 is.

However, if you've managed to put all the vifs on their own bridge (different than the one that Dom0's peth0 is on) then you need to set up iptables to route between the outside interface and the inside interface.


Grant McWilliams

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>