Discussion:
-n flag does not work
Edgars M.
2014-04-07 13:15:12 UTC
Permalink
Hi

It looks like -n flag does not work when I create socket on server:

/usr/local/bin/spiped -d -s '[0.0.0.0]:1081' -t '[10.10.1.20]:1080' -k
~/danteproxy.key -n 1000
usage: spiped {-e | -d} -s <source socket> -t <target socket> -k <key file>
[-DfFj] [-n <max # connections>] [-o <connection timeout>] [-p
<pidfile>]
[{-r <rtime> | -R}]

OS: CentOS 6.5 x86_64
spiped: 1.3.1

Am I missing something?

BR
Edgars
Peter Pentchev
2014-04-07 15:41:22 UTC
Permalink
Post by Edgars M.
Hi
/usr/local/bin/spiped -d -s '[0.0.0.0]:1081' -t '[10.10.1.20]:1080' -k
~/danteproxy.key -n 1000
usage: spiped {-e | -d} -s <source socket> -t <target socket> -k <key file>
[-DfFj] [-n <max # connections>] [-o <connection timeout>] [-p
<pidfile>]
[{-r <rtime> | -R}]
OS: CentOS 6.5 x86_64
spiped: 1.3.1
Am I missing something?
In the source code there is a check that the parameter to the -n option
should be more than 0 and less than 500. This does not seem to be
documented in the manual page or in the usage message :) But that's
the reason for your troubles. Try with 500, things should work better.

G'luck,
Peter
--
Peter Pentchev ***@ringlet.net ***@FreeBSD.org ***@storpool.com
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
I've heard that this sentence is a rumor.
Colin Percival
2014-04-07 20:05:15 UTC
Permalink
Post by Peter Pentchev
Post by Edgars M.
Hi
/usr/local/bin/spiped -d -s '[0.0.0.0]:1081' -t '[10.10.1.20]:1080' -k
~/danteproxy.key -n 1000 usage: spiped {-e | -d} -s <source socket> -t
<target socket> -k <key file> [-DfFj] [-n <max # connections>] [-o
<connection timeout>] [-p <pidfile>] [{-r <rtime> | -R}]
OS: CentOS 6.5 x86_64 spiped: 1.3.1
Am I missing something?
In the source code there is a check that the parameter to the -n option
should be more than 0 and less than 500. This does not seem to be
documented in the manual page or in the usage message :) But that's the
reason for your troubles. Try with 500, things should work better.
Good catch, I've added this to the man page and added an error message
for out-of-range -n parameters to replace the usage message.
--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
Edgars M.
2014-04-08 07:08:51 UTC
Permalink
Hi

Thanks, it works with -n 500

Edgars
Post by Peter Pentchev
Post by Edgars M.
Hi
/usr/local/bin/spiped -d -s '[0.0.0.0]:1081' -t '[10.10.1.20]:1080' -k
~/danteproxy.key -n 1000
usage: spiped {-e | -d} -s <source socket> -t <target socket> -k <key
file>
Post by Edgars M.
[-DfFj] [-n <max # connections>] [-o <connection timeout>] [-p
<pidfile>]
[{-r <rtime> | -R}]
OS: CentOS 6.5 x86_64
spiped: 1.3.1
Am I missing something?
In the source code there is a check that the parameter to the -n option
should be more than 0 and less than 500. This does not seem to be
documented in the manual page or in the usage message :) But that's
the reason for your troubles. Try with 500, things should work better.
G'luck,
Peter
--
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
I've heard that this sentence is a rumor.
Loading...