• [echoirlp] Deny List

    From VK4DAK@432:1/101 to echoirlp@groups.io on Sat Mar 5 13:58:38 2022
    Hi all,

    I am having issues with a few stations from a particular country causing constant connections and lockups, on one of my nodes.

    Rather than individually search the logfile for individual callsigns (numerous and slightly varied), I was hoping that I may be able to apply “variables” to the deny list.

    Does the deny list accept or respond to variables (such as *) and could this be
    expanded or narrowed down to country or region specific as required?

    It is my understanding that if a particular call is placed into “allow”, this has priority over “deny” (in the case of a possible working variable)?

    It is obvious that it would be placed temporarily until such stations either move on or give up, but t attempting to place a temporary “deny” would be more helpful than the constant lockups, random connections, discussions in foreign language and disruption. Place the restriction for a week or so, then once the traffic or attempts slow down, remove the variable from the deny list.

    Not ideal, but wishing to see if a variable can be used and altered to suit the
    need?


    -=-=-=-=-=-=-=-=-=-=-=-
    Groups.io Links: You receive all messages sent to this group.
    View/Reply Online (#246): https://groups.io/g/echoirlp/message/246
    Mute This Topic: https://groups.io/mt/89579384/3738798
    Group Owner: echoirlp+owner@groups.io
    Unsubscribe: https://groups.io/g/echoirlp/leave/6882233/3738798/232177168/xyzzy
    [vk_echoirlp@freeway.apana.org.au]
    -=-=-=-=-=-=-=-=-=-=-=-



    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (432:1/101)
  • From WD5M David M.@432:1/101 to echoirlp@groups.io on Sat Mar 5 16:33:41 2022
    The attached echo_inbound_regex.txt file is modified to allow regular expression values in node_deny and node_allow. Rename/backup your current echo_inbound file, found in /home/EchoIRLP/scripts/. Then copy and rename
    the attached file as echo_inbound in its place. Be sure to make the file executable using the command "chmod +x echo_inbound". Also, the file should
    be created as user "repeater". Otherwise use "chown repeater.repeater echo_inbound" to set ownership of the file.

    Be aware that I have not tested this specific modified script file, but I
    use the same method in my custom echo_inbound script. This modified echo_inbound script originated from the latest echoIRLP installation files.

    If you are unfamiliar with regular expression syntax, there are several tutorials online. This script uses grep to match the connecting call sign
    with lines in the node_deny/node_allow files. As an example, if you want to match all callsigns that begin with the letter A and followed by either a letter or number, e.g. matches "AB1CD" or "A1CD", this regular expression
    line in the file should match.

    ^A[A-Z0-9]

    "^" means start of line or value.
    "A" means match the letter A.
    [A-Z0-9] means match any single letter or number digit.
    Any following characters are ignored in the match test.

    Also, yes, matches in node_allow will override matches in node_deny.

    David M.
    WD5M


    On Sat, Mar 5, 2022 at 3:58 PM VK4DAK <vk4dak@bigpond.com> wrote:

    Hi all,

    I am having issues with a few stations from a particular country causing constant connections and lockups, on one of my nodes.

    Rather than individually search the logfile for individual callsigns (numerous and slightly varied), I was hoping that I may be able to apply “variables” to the deny list.

    Does the deny list accept or respond to variables (such as *) and could
    this be expanded or narrowed down to country or region specific as
    required?

    It is my understanding that if a particular call is placed into “allow”, this has priority over “deny” (in the case of a possible working
    variable)?

    It is obvious that it would be placed temporarily until such stations
    either move on or give up, but t attempting to place a temporary “deny” would be more helpful than the constant lockups, random connections, discussions in foreign language and disruption. Place the restriction for a week or so, then once the traffic or attempts slow down, remove the
    variable from the deny list.

    Not ideal, but wishing to see if a variable can be used and altered to
    suit the need?








    -=-=-=-=-=-=-=-=-=-=-=-
    Groups.io Links: You receive all messages sent to this group.
    View/Reply Online (#247): https://groups.io/g/echoirlp/message/247
    Mute This Topic: https://groups.io/mt/89579384/3738798
    Group Owner: echoirlp+owner@groups.io
    Unsubscribe: https://groups.io/g/echoirlp/leave/6882233/3738798/232177168/xyzzy
    [vk_echoirlp@freeway.apana.org.au]
    -=-=-=-=-=-=-=-=-=-=-=-



    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (432:1/101)
  • From VK4DAK@432:1/101 to echoirlp@groups.io on Mon Mar 7 00:04:53 2022
    Thank you greatly Dave!


    -=-=-=-=-=-=-=-=-=-=-=-
    Groups.io Links: You receive all messages sent to this group.
    View/Reply Online (#248): https://groups.io/g/echoirlp/message/248
    Mute This Topic: https://groups.io/mt/89579384/3738798
    Group Owner: echoirlp+owner@groups.io
    Unsubscribe: https://groups.io/g/echoirlp/leave/6882233/3738798/232177168/xyzzy
    [vk_echoirlp@freeway.apana.org.au]
    -=-=-=-=-=-=-=-=-=-=-=-



    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (432:1/101)
  • From WD5M David M.@432:1/101 to echoirlp@groups.io on Mon Mar 7 10:38:16 2022
    You are welcome, Dave.

    Since group messages don't allow attachments, here's the two lines that are changed in the echo_inbound script to enable regular expressions in
    node_deny and node_allow files.

    For node_deny, change:

    if [ `grep -x "$ESCSTR" "$ECHO_CUSTOM/node_deny"` ]; then

    -to-

    if [ `echo "${ESCSTR}" | egrep -x -i -f "$ECHO_CUSTOM/node_deny"` ]; then


    For node_allow, change:

    if [ `grep -x "$ESCSTR" "$ECHO_CUSTOM/node_allow"` ]; then

    -to-

    if [ `echo "${ESCSTR}" | egrep -x -i -f "$ECHO_CUSTOM/node_allow"` ];
    then


    grep notes:

    - The "-x" switch selects only those matches that exactly match the
    whole line. This is a minor edit I forgot to include in the modified file I
    sent to Dave. It ensures a line containing WD5M does not also match WD5MA.
    This also means regex values should include syntax to match the value
    completely. e.g. use "^AA[0-9].*" instead of just "^AA[0-9]".
    - The "-i" switch says the letter case is to be ignored.
    - The "-f" switch says matching (regex) patterns are in the file
    specified.

    This modification will also work the same with preexisting call sign values
    in node_allow or node_deny. Tutorials for regular expression (regex) syntax
    are available online. Use your favorite search engine. regex syntax can
    allow simple or complex value ranges to be matched. For example, the regex value "^WD5M-*[LR]*" will match WD5M or WD5M-R or WD5M-L. One can manually
    test these values using the command line. For example:

    echo "WD5M-L" | egrep -x -i -f "$ECHO_CUSTOM/node_deny"


    If "WD5M-L" is displayed as a result, then it matched a line in the
    node_deny file.

    Any match in node_allow will override a match in node_deny or type_deny, as echo_inbound is currently coded. This allows one to block a type or range
    of values, and then make exceptions in node_allow. Be sure to test expected values completely to be sure it does what you expect, especially with regex values.

    Regards,
    David M.
    WD5M


    -=-=-=-=-=-=-=-=-=-=-=-
    Groups.io Links: You receive all messages sent to this group.
    View/Reply Online (#249): https://groups.io/g/echoirlp/message/249
    Mute This Topic: https://groups.io/mt/89579384/3738798
    Group Owner: echoirlp+owner@groups.io
    Unsubscribe: https://groups.io/g/echoirlp/leave/6882233/3738798/232177168/xyzzy
    [vk_echoirlp@freeway.apana.org.au]
    -=-=-=-=-=-=-=-=-=-=-=-



    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (432:1/101)
  • From VK4DAK@432:1/101 to echoirlp@groups.io on Mon Mar 7 16:18:22 2022
    Greatly appreciated Dave.



    -=-=-=-=-=-=-=-=-=-=-=-
    Groups.io Links: You receive all messages sent to this group.
    View/Reply Online (#250): https://groups.io/g/echoirlp/message/250
    Mute This Topic: https://groups.io/mt/89579384/3738798
    Group Owner: echoirlp+owner@groups.io
    Unsubscribe: https://groups.io/g/echoirlp/leave/6882233/3738798/232177168/xyzzy
    [vk_echoirlp@freeway.apana.org.au]
    -=-=-=-=-=-=-=-=-=-=-=-



    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (432:1/101)
  • From WD5M David M.@432:1/101 to echoirlp@groups.io on Mon Mar 7 20:24:57 2022
    On Mon, Mar 7, 2022 at 6:18 PM VK4DAK <vk4dak@bigpond.com> wrote:

    Greatly appreciated Dave.


    I just made the regex modifications in echo_inbound <https://github.com/wd5m/echoirlp/blob/master/filemirror/scripts/echo_inbound> and echo_call <https://github.com/wd5m/echoirlp/blob/master/filemirror/scripts/echo_call>
    on github under < https://github.com/wd5m/echoirlp/tree/master/filemirror/scripts>. I did NOT update the echoIRLP install tar file. There are links/icons on each github file page to view/copy the raw files or display the last changes. Note that before this change echo_call only checked the node_deny file. With this
    change echo_call will also check type_deny and node_allow for outgoing
    calls, like echo_inbound does for incoming calls.

    David M.
    WD5M


    -=-=-=-=-=-=-=-=-=-=-=-
    Groups.io Links: You receive all messages sent to this group.
    View/Reply Online (#251): https://groups.io/g/echoirlp/message/251
    Mute This Topic: https://groups.io/mt/89579384/3738798
    Group Owner: echoirlp+owner@groups.io
    Unsubscribe: https://groups.io/g/echoirlp/leave/6882233/3738798/232177168/xyzzy
    [vk_echoirlp@freeway.apana.org.au]
    -=-=-=-=-=-=-=-=-=-=-=-



    --- SBBSecho 3.10-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (432:1/101)