Re: [Vserver] vserver on webhoster-server

From: Martin Hauptmann <m.hauptmann_at_web.de>
Date: Sat 04 Feb 2006 - 18:43:00 GMT
Message-Id: <1587824874@web.de>

On Sat, February 04, 2006 at 19:02 Herbert Poetzl wrote:
> On Sat, Feb 04, 2006 at 12:58:49PM +0100, Martin Hauptmann wrote:
> > Hi, I have problems configuring internet access for vservers on
> > a server provided by my webhoster.
> >
> > It is a real server with a not-private IP-Address that is connected
> > with the only Network-Card eth0. I can install, start and enter
> > vservers but I cannot reach the internet.
>
> as usual, a bit more of information would be of
> great help here ... but I'm used to "help! it does
> not work! how can I fix it?" mails by now ...

I try not to give unnecessary information but only the information that help. It does not play a role which hardware the host is running on neither is it important which linux-dialect is installed on it or which version the installed vserver has.

The question is about routing.

I tried to give the necessary information and not more. When someone knows how to help and needs more information he would ask specific questions. Maybe I did not give enough information but I did not know which pieces of information else would be necessary.

What else do you want to know?

> if you assign private addresses to your guests, then
> you are probably missing a proper SNAT rule to reach
> the outside ...
>
> (e.g. let's assume your guests have 192.168.0.x)
>
> iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -j SNAT --to 1.2.3.4
>
> (where 1.2.3.4 is your one and only public ip)

YAY! Thanx, you hit it, it works!

(seems I have given enough information [SCNR])

> > How can I virtualize that on my hosted server?
>
> what? the local gateway?

Yess!

> HTH,
> Herbert

It did.

THX

Martin
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Feb 4 21:42:00 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 04 Feb 2006 - 21:42:14 GMT by hypermail 2.1.8