Bug #3404
Updated by Tobias Brunner 9 months ago
Firstly, thanks for the fantastic project. Love it.
I've encountered an interesting issue while trying to read output from lookip out to a pipe or file, whereby the output of the command when in "--listen-up" or "--listen-down" mode is not visible anywhere.
Even more strangely, the --dump output is also missing from all outputs when piping the result when used with the --listen-* options.
This works
<pre>
$ ipsec lookip --dump
lookup: 10.0.0.1 12.34.56.78 default-conn[23] myusername
</pre>
This works
<pre>
$ ipsec lookip --dump > foo && cat foo
lookup: 10.0.0.1 12.34.56.78 default-conn[23] myusername
</pre>
This works
<pre>
$ ipsec lookip --listen-up --listen-down --dump
lookup: 10.0.0.1 12.34.56.78 default-conn[23] myusername
</pre>
This does not work as expected.
<pre>
$ ipsec lookip --listen-up --listen-down --dump > foo
(foo is always empty, STDOUT is always empty)
</pre>
Using 5.8.4, compiled from source on Ubuntu
<pre>
./configure --prefix=/usr --sysconfdir=/etc \
--enable-farp --enable-openssl --enable-eap-mschapv2 --enable-eap-identity --enable-eap-tls
--enable-ext-auth --enable-lookip --with-routing-table
</pre>
Any suggestions on workarounds or fixes much appreciated!
I've encountered an interesting issue while trying to read output from lookip out to a pipe or file, whereby the output of the command when in "--listen-up" or "--listen-down" mode is not visible anywhere.
Even more strangely, the --dump output is also missing from all outputs when piping the result when used with the --listen-* options.
This works
<pre>
$ ipsec lookip --dump
lookup: 10.0.0.1 12.34.56.78 default-conn[23] myusername
</pre>
This works
<pre>
$ ipsec lookip --dump > foo && cat foo
lookup: 10.0.0.1 12.34.56.78 default-conn[23] myusername
</pre>
This works
<pre>
$ ipsec lookip --listen-up --listen-down --dump
lookup: 10.0.0.1 12.34.56.78 default-conn[23] myusername
</pre>
This does not work as expected.
<pre>
$ ipsec lookip --listen-up --listen-down --dump > foo
(foo is always empty, STDOUT is always empty)
</pre>
Using 5.8.4, compiled from source on Ubuntu
<pre>
./configure --prefix=/usr --sysconfdir=/etc \
--enable-farp --enable-openssl --enable-eap-mschapv2 --enable-eap-identity --enable-eap-tls
--enable-ext-auth --enable-lookip --with-routing-table
</pre>
Any suggestions on workarounds or fixes much appreciated!