Re: [vserver] Redirecting a guest lo port to his host

From: Christophe <christophe_at_infra.fr>
Date: Fri 19 Feb 2010 - 12:36:48 GMT
Message-Id: <F45B0323-937D-4052-AAF6-A2F239F74BFD@infra.fr>

Okay.

My goal is to relay the Mysql port from the guest lo interface to the
host lo or eth0 interface.

My problem is that i dont know how to catch paquets comming on the lo
interface of the guest from the host and if there is any way to do it
at all.

For the moment I use ssh -L 3306:host:3306 on the guest to do it.

Chris.

Le 19 févr. 10 à 13:26, Nikolay Kichukov a écrit :

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> depends on your setup once again.
>
> all networking is actually done on the HOST.
>
> I am not able to provide any samples, as I have no idea what your
> setup is.
>
> HTH,
> - -Nik
>
> Christophe wrote:
>> So you're saying that iptables on the host can redirect some
>> information
>> from the guest lo interface to it's own lo interface ?
>>
>> I'm really interressed if you can provide me any sample of iptables
>> chain that would do that...
>>
>> Thanks you,
>> Christophe KINNE.
>>
>> Le 19 févr. 10 à 12:06, Nikolay Kichukov a écrit :
>>
>> Hi, yes, for sure...
>>
>> iptables DNAT should work. Depends on the setup.
>>
>> Cheers,
>> -Nik
>>
>>
>>
>> Christophe wrote:
>>>>> Hello list,
>>>>>
>>>>> I'm currently using SSH to forward a guest mysql local interface
>>>>> port
>>>>> (127.0.0.1:3306) to his host mysql port.
>>>>>
>>>>> Is there a way to do that without SSH, I mean with iptables or
>>>>> something
>>>>> like that ?
>>>>>
>>>>> Thank you,
>>>>>
>>>>> Regards,
>>>>> Christophe KINNE.
>>>
>
>> ------------------------------------------------------------------------
>
>
>
>> 2 rue du Nord - 67800 BISCHHEIM - FRANCE - Tél.: + 33 (0)3 88
>> 19
>> 18 70 - Fax: +33 (0)3 88 19 18 79
>> christophe@infra.fr - www.infra.fr
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQEcBAEBAgAGBQJLfoNuAAoJEDFLYVOGGjgXnYwH/0AKrNZ/Q9AGrnxvMDX1BIat
> HxDg66h/112HCTsS2y4Ztx/NhsZiLee9VAhMew9b15TTrd76y27qd8Ud8XnLZy3L
> XPiTzO5M2DMQr2Ixie4sNlWG7q6xxoA2Z7CUXl6S/pQI81v3VgbLLMb28oaURNBy
> zDnNy9VpCIJsYBRBGTEHN9c/ZAcgtQFXShwMdMoajHbJpI5JyfT0jz9RBBaejAFQ
> t0zggONp7yB+AecZ+jjuJAcgTeBlGAJ6bQGmUr2bsve8q+u7Cqym2w0RuRWxacRO
> X5WacM55pacxGiFVHmEwA2+hPytP6HcwYxdA4bZAN2gy0vZG4XW8lxVfbWi+p68=
> =xsCJ
> -----END PGP SIGNATURE-----
>

2 rue du Nord - 67800 BISCHHEIM - FRANCE - Tél.: + 33 (0)3 88 19
18 70 - Fax: +33 (0)3 88 19 18 79
christophe@infra.fr - www.infra.fr

inconnu.gif
Received on Fri Feb 19 12:37:05 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 19 Feb 2010 - 12:37:07 GMT by hypermail 2.1.8