From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerry Reno Subject: Re: fwknop: use with Fedora? Date: Sun, 23 Sep 2007 12:26:57 -0400 Message-ID: <46F693D1.2060909@verizon.net> References: <46F5B7F8.2060502@verizon.net> <46F5C161.7090908@verizon.net> <46F5CF0C.3060004@verizon.net> <20070923043058.GA2940@minastirith> <46F65D0E.6050005@verizon.net> <46F65EBE.30502@verizon.net> <46F66A11.5000901@verizon.net> <46F66E89.1000809@verizon.net> <46F6755D.9070407@verizon.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <46F6755D.9070407@verizon.net> Sender: netfilter-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@vger.kernel.org Gerry Reno wrote: > Just trying to get port knock working first... > > When I run the client I see this error: > > $ ./knocklogin > ++ fwknop --Server-mode knock -A tcp/12345 -s -r --offset 55500 -D > XXX.XXX.XXX.XXX > [+] Starting fwknop client. > [+] Enter an encryption key. This key must match a key in the file > /etc/fwknop/access.conf on the remote system. > > Encryption Key: > [*] Must specify port to open. at /usr/bin/fwknop line 761, > line 1. <------ I thought this is what the -A argument did???? > ++ ssh -p 12345 user@XXX.XXX.XXX.XXX > ssh: connect to host XXX.XXX.XXX.XXX port 12345: Connection refused > ++ set +x > Ok, I have not been able to get port knock working at all. This problem refuses to go away: [*] Must specify port to open. at /usr/bin/fwknop line 761, line 1. even if I declare the client command like so: fwknop --Server-mode knock -A tcp/12345 -s -r --offset 55500 -D XXX.XXX.XXX.XXX <------ this version should open the port given by -A as long as there is a PERMIT_CLIENT_PORTS: Y; in /etc/fwknop/access.conf on the server. fwknop --Server-mode knock -s -r --offset 55500 -D XXX.XXX.XXX.XXX <------ this version should open the port given by the OPEN_PORT directive in /etc/fwknop/access.conf on the server. So either I'm completely misunderstanding the man pages and articles or there is some kind of bug here. Gerry