On 02/17/2016 10:38 PM, Michael Rash wrote:
> 
> 
> On Feb 17, 2016, at 10:02 AM, xrak en <xra...@gmail.com
> <mailto:xra...@gmail.com>> wrote:
> 
>> Hi, I'm trying to run fwknopd on a tomato router. I got the package
>> from Entware-ng. As soon as I start the service my logs get filled
>> with these 2 repeated messages:
>>
>> Feb 17 09:32:46 rtrtom daemon.err fwknopd[5908]: delete_all_chains()
>> Error -7 from cmd:'/opt/sbin/iptables -t filter -X FWKNOP_INPUT':
>> Feb 17 09:32:46 rtrtom daemon.err fwknopd[5909]: run_extcmd(): could
>> not fdopen() pipe output file descriptor.
>>
> 
> If you able to run a quick test, could you recompile fwknop with the
> --disable-execvpe argument to the configure autoconf script?  This may
> fix the issue, and allow me to do some additional investigation on the
> underlying cause.

I'd guess that he just got the binaries from Entware-ng, and doesn't
have a toolchain to compile it himself.  If he could recompile, it would
certainly be helpful to test that.

My thought is that there might be a problem with running the modern code
on the old Tomato firmware (last release was something like 2010).
Looking at the code of fwknop, it looks like it's dying on just the
fdopen() call.  Unfortunately we aren't actually catching the error from
fdopen, just that it is returning null.

That fdopen() call is acting on pipe_fd[0].  I don't see that pipe_fd[0]
is ever given a value after being defined.  I haven't dove deep in this
code yet, but that looks suspect, at least.

xrak, what device are you running this on, the WRT54g?  It might just be
a simple memory exhaustion problem if it's one of the old routers with
only 16 megs of ram.

--Jonathan

> 
> Thanks,
> 
> Mike
> 
> 
>> Can anyone let me know what could be causing this problem?
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Fwknop-discuss mailing list
>> Fwknop-discuss@lists.sourceforge.net
>> <mailto:Fwknop-discuss@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
> 
> 
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> 
> 
> 
> _______________________________________________
> Fwknop-discuss mailing list
> Fwknop-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fwknop-discuss
> 


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Fwknop-discuss mailing list
Fwknop-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fwknop-discuss

Reply via email to