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

From: Rik Bobbaers <rik_at_enzoverder.be>
Date: Fri 19 Feb 2010 - 13:07:26 GMT
Message-ID: <49688.85.91.175.222.1266584846.squirrel@www.enzoverder.be>

solution of course ;)
Rik Bobbaers

-- http://harry.enzoverder.be
linux/unix/system/network/security/hardware admin
infrastructure architect

> 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
>
>
>
>
Received on Fri Feb 19 13:08:23 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 19 Feb 2010 - 13:08:25 GMT by hypermail 2.1.8