mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Update the Port Knocking article for 5.0
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
0e2a3f7265
commit
4050aa5180
@ -131,13 +131,13 @@ add_rule( $chainref, '-p tcp --dport 1601 -m recent --name
|
|||||||
Internet, add this rule in
|
Internet, add this rule in
|
||||||
<filename>/etc/shorewall/rules</filename>:</para>
|
<filename>/etc/shorewall/rules</filename>:</para>
|
||||||
|
|
||||||
<programlisting>#ACTION SOURCE DEST PROTO DEST PORT(S)
|
<programlisting>#ACTION SOURCE DEST PROTO DPORT
|
||||||
SSHKnock net $FW tcp 22,1599,1600,1601</programlisting>
|
SSHKnock net $FW tcp 22,1599,1600,1601</programlisting>
|
||||||
|
|
||||||
<para>If you want to log the DROPs and ACCEPTs done by SSHKnock, you
|
<para>If you want to log the DROPs and ACCEPTs done by SSHKnock, you
|
||||||
can just add a log level as in:</para>
|
can just add a log level as in:</para>
|
||||||
|
|
||||||
<programlisting>#ACTION SOURCE DEST PROTO DEST PORT(S)
|
<programlisting>#ACTION SOURCE DEST PROTO DPORT
|
||||||
SSHKnock:info net $FW tcp 22,1599,1600,1601</programlisting>
|
SSHKnock:info net $FW tcp 22,1599,1600,1601</programlisting>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
@ -146,8 +146,7 @@ SSHKnock:info net $FW tcp 22,1599,1600,1601<
|
|||||||
206.124.146.178 to internal system 192.168.1.5. In
|
206.124.146.178 to internal system 192.168.1.5. In
|
||||||
/etc/shorewall/rules:</para>
|
/etc/shorewall/rules:</para>
|
||||||
|
|
||||||
<programlisting>#ACTION SOURCE DEST PROTO DEST PORT(S) SOURCE ORIGINAL
|
<programlisting>#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST
|
||||||
# PORT(S) DEST
|
|
||||||
DNAT- net 192.168.1.5 tcp 22 - 206.124.146.178
|
DNAT- net 192.168.1.5 tcp 22 - 206.124.146.178
|
||||||
SSHKnock net $FW tcp 1599,1600,1601
|
SSHKnock net $FW tcp 1599,1600,1601
|
||||||
SSHKnock net loc:192.168.1.5 tcp 22 - 206.124.146.178</programlisting>
|
SSHKnock net loc:192.168.1.5 tcp 22 - 206.124.146.178</programlisting>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user