Re: [Vserver] chbind: multiple client guest

2006-09-12 Thread Herbert Poetzl
On Tue, Sep 12, 2006 at 02:18:34AM +0200, Guenther Fuchs wrote:
 Hi there,
 
 odd question where I'm not able to find a solution: On the host, it is
 possible in a very simple way to external bind a service or process
 to a specific IP using chbind. Is it - and if, how - possible to have
 such functionality within a guest itself as well?
 
 i.e.: Guest ggg has 2 IPs - I want to start a php script process each
 5 minutes, using each time the other IP. On the host I could easily
 use 2 lines in crontab, each on 10 min rythm and use chbind - how can
 I accomplish this within a guest?

if the _service_ supports binding to a specific IP
(think Listen directive) then you can do the same
inside a guest too, if you intent to use chbind()
functionality for that, this would require support
for nested network namespaces, which is currently
not available ...

HTC,
Herbert

 -- 
 regards 'n greez,
 
 Guenther Fuchs
 (aka muh and powerfox)
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] chbind: multiple client guest

2006-09-12 Thread Guenther Fuchs
Hi there,

on Tuesday, September 12, 2006 at 1:10:15 PM there was posted:

HP if the _service_ supports binding to a specific IP

Do you have an idea, how a usual binding can be accomplished within
a PHP script? Me not ;-/

HP if you intent to use chbind() functionality for that, this would
HP require support for nested network namespaces, which is currently
HP not available ...

So the only possibility you see is using a chbind script call from the
host, am I right?

-- 
regards 'n greez,

Guenther Fuchs
(aka muh and powerfox)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] chbind: multiple client guest

2006-09-12 Thread Daniel Hokka Zakrisson

Guenther Fuchs wrote:

Hi there,

on Tuesday, September 12, 2006 at 1:10:15 PM there was posted:

HP if the _service_ supports binding to a specific IP

Do you have an idea, how a usual binding can be accomplished within
a PHP script? Me not ;-/


socket_bind seems like a good candidate.

--
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] chbind: multiple client guest

2006-09-12 Thread Guenther Fuchs
Hi there,

on Tuesday, September 12, 2006 at 1:57:18 PM there was posted:

GF Do you have an idea, how a usual binding can be accomplished
GF within a PHP script? Me not ;-/

DHZ socket_bind seems like a good candidate.

If sockets are / can be used, yes. Seems a good approach to me,
although I have to switch from fsockopen (now used) to socket_create
(never used before). But that seems my problem, so I'll say thanks for
now and try to understand more of socket's ;-)

-- 
regards 'n greez,

Guenther Fuchs
(aka muh and powerfox)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] chbind: multiple client guest

2006-09-11 Thread Guenther Fuchs
Hi there,

odd question where I'm not able to find a solution: On the host, it is
possible in a very simple way to external bind a service or process
to a specific IP using chbind. Is it - and if, how - possible to have
such functionality within a guest itself as well?

i.e.: Guest ggg has 2 IPs - I want to start a php script process each
5 minutes, using each time the other IP. On the host I could easily
use 2 lines in crontab, each on 10 min rythm and use chbind - how can
I accomplish this within a guest?

-- 
regards 'n greez,

Guenther Fuchs
(aka muh and powerfox)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver