About this list Date view Thread view Subject view Author view Attachment view

From: Dariush Pietrzak (eyck_at_ghost.anime.pl)
Date: Wed 12 Nov 2003 - 22:05:42 GMT


> writing a simple test application/scenario
> which show this specific issue in a way I
> can reproduce ... (proftpd isn't an option,
> as this works for me too ;)
No problem, here goes:

The problem:

usr:/home# perl -le 'use
IO::Socket::INET;$s=IO::Socket::INET->new(Proto=>"tcp",Listen=>5,LocalAddr=>"192.168.168.168");print
$s;print $s->sockport()'

Can't call method "sockport" on an undefined value at -e line 1.

The workaround:
usr:/home# chbind --ip 192.168.168.168 perl -le 'use
IO::Socket::INET;$s=IO::Socket::INET->new(Proto=>"tcp",Listen=>5,LocalAddr=>"192.168.168.168");print
$s;print $s->sockport()'
ipv4root is now 62.233.189.138
IO::Socket::INET=GLOB(0x81f38e4)
57749

voile'a.
And a probable solution as to why muddleftpd and other ftpds are working
fine in this situation - They are buggy!
 proftpd opens socket for a client only on IP on which that client came
 from, if they open socket on ALL IPs, vserver reacts as expected:

usr:/home# perl -le 'use
IO::Socket::INET;$s=IO::Socket::INET->new(Proto=>"tcp",Listen=>5);print
$s;print $s->sockport()'
IO::Socket::INET=GLOB(0x81f3830)
58418

although I initially filed a bug against proftpd for that, it seems like
there's some problem in vserver/ctx, and another one in muddleftpd.

I think I just written something that qualifies for vserver regress
testing;)

-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
Namagumi namagomi namagoroshi
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 12 Nov 2003 - 22:06:43 GMT by hypermail 2.1.3