Hello,
On Oct 20, Peter da Silva wrote
> > I want to pass DCE's portmap-equiv (called epmapper) so I plug
> > the xxx port. I've restricted DCE to a range of ports (3000-4000)
> > and I need to place 1000 plug-gw's ???
>
> A shortcoming in the Berkeley socket interface. It's hard to wait on
> more than one port from a given process. If anyone has ideas for how
> to handle that cleanly I'd be interested in adding that to plugdaemon.
Well, you can select() on at least 128 Ports. With Linux Port Redirection
feature one can do something like:
ipfwadm -I -i acc -P tcp -S0/0 -D 1.2.3.4 1000:2000 -r 3000
This will redirect all connections to port 1000 .. 2000 to Port 3000 (on
address 1.2.3.4). A Programm running on Port 3000 can get the destination
port by using getsockname(). I think this is brokwn in 2.0.30.
The great advantage of this is, that you only have to wait on one socket.
Greetings
Bernd
--
(OO) -- Bernd_Eckenfels @
Wittumstrasse13 .
76646Bruchsal .
de --
( .. ) ecki @
{inka .
de,linux.de,debian.org} http://home.pages.de/~eckes/
o--o *plush* 2048/93600EFD eckes @
irc +4972573817 BE5-RIPE
(O____O) If privacy is outlawed only Outlaws have privacy
References:
|
|