Sie sind auf Seite 1von 1

Schlagwort sollte

Charly’s
hierColumn
stehen :FM<IJKFIP
JPJ8;D@E

K_\jpjX[d`eËj[X`cp^i`e[1J`e^c\$gXZb\kXlk_\ek`ZXk`fe

B<P<OG<I@<E:<
Conventional, woodpecker-style

port knocking is open to sniffing

and brute force knocking attacks.

Sending an encrypted packet with

an access request to the server is

safer and more modern. Learn

more about Firewall Knock

Operator, a.k.a. Fwknop.

BY CHARLY KÜHNAST

: onventional port knocking,


which I described last month
[1], protects you against attack-
ers who routinely scan whole networks
looking for “low-hanging fruit.” A
=`^li\(1K_\Zc`\ekbefZb`e^fek_\[ffif]gfik))`jXccfn\[kfgXjjY\ZXlj\`kgfjj\jj\j
k_\i`^_kb\p%

Besides the normal build tools, the in-


stallation requires Perl, the libpcap-dev
tween the server and the client because
if the difference is too big, fwknopd will
cracker who takes more time and logs package, and the CPAN Net::Pcap mod- ignore the knocking client.
communications can also identify ule. After installing all of these re- The entries in /etc/fwknop/access.conf
knocking signals because the sequences sources, installing Fwknop is a breeze define how fwknopd responds to a client
will repeat. thanks to the Perl-based installer. knocking. The secret key that the client
In theory, you might consider using uses to identify itself is stored here. The
lists of one-off knocking signals that be- DXkZ_`e^BefYj SOURCE line can be used to restrict the
come obsolete after use. Unfortunately, Fwknop comprises the fwknopd server networks from which the daemon ac-
this is really complex. Besides, if the ad- and the fwknop client. By editing two cepts knocking. To set the port that the
ministrator is not creative enough, an at- files below /etc/fwknop/, you can config- system opens on successful knocking –
tacker could just try out popular knock- ure the server; fwknop.conf contains the for example, tcp/22 for SSH – you can
ing sequences (port 7000, 8000, 9000, basic configuration. Initially, you will use OPEN_PORTS. Figure 1 shows a suc-
…) to gain access. just need to change a couple of parame- cessful attempt. The fwknop client picks
Single-Packet Authentication (SPA) is ters, which are tagged __CHANGEME__. up the key from its own /etc/fwknop/
one possible solution. The knocking sys- The other knobs you could tweak here access.conf.
tem sends a single packet containing the have very sensible defaults. Note that If the SSH connection doesn’t open
encrypted authentication credentials – you need to synchronize the time be- quickly enough, the FW_ACCESS_TIME-
typically a pass phrase – and the client OUT on the server triggers. This time is
request to open a specific port. An SPA Charly Kühnast is a normally set to 30 seconds, but I went
implementation that works really well is Unix operating sys- for twice that – never rush an admin on
Firewall Knock Operator, or Fwknop [2]. tem administrator the job! p
THE AUTHOR

at the Data Center


SYSADMIN in Moers, Germany. INFO
His tasks include
Security Lessons . . . . . . . . . . . .60 firewall and DMZ [1] “Knock-Knock” by Charly Kühnast,
Are your systems vulnerable to DNS Linux Magazine, September 2008,
security and availability. He divides
attacks? http://www.linux-magazine.com/
his leisure time into hot, wet, and
issues/2008/94/knock_knock
Systat. . . . . . . . . . . . . . . . . . . . . .62 eastern sectors, where he enjoys
Monitor your systems with the Sysstat cooking, fresh water aquariums, [2] Fwknop: http://www.cipherdyne.
tool collection. and learning Japanese, respectively. org/fwknop/

OCTOBER 2008 ISSUE 95 59

Das könnte Ihnen auch gefallen