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 22.214.171.124 1000:2000 -r 3000
This will redirect all connections to port 1000 .. 2000 to Port 3000 (on
address 126.96.36.199). 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.
(OO) -- Bernd_Eckenfels @
( .. ) ecki @
o--o *plush* 2048/93600EFD eckes @
irc +4972573817 BE5-RIPE
(O____O) If privacy is outlawed only Outlaws have privacy