• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Remote access with Caddy, Duckdns vs Tailscale for security?

     
    • 0 Vote(s) - 0 Average

    Remote access with Caddy, Duckdns vs Tailscale for security?

    Duvel
    Offline

    Member

    Posts: 69
    Threads: 9
    Joined: 2023 Jul
    Reputation: 3
    Country:Belgium
    #21
    2025-04-10, 03:14 PM (This post was last modified: 2025-04-10, 03:19 PM by Duvel. Edited 2 times in total.)
    (2025-04-10, 12:34 PM)Balinus Wrote: On my bouncers list, there is another one listed, can't remember if I installed that or not. Is there a way to "test" this bouncer?

    To check if the firewall bouncer is active, first check your iptables with sudo iptables -L
    You should find something like this:

    Code:
    Chain INPUT (policy ACCEPT)
    target    prot opt source              destination       
    DROP      all  --  anywhere            anywhere            match-set crowdsec-blacklists src

    So your LAPI is maintaining a list of blacklisted IPs, that are sourced from Crowdec servers, and also get feed by your LAPI decisions.
    And that rules on your firewall tells to DROP all traffic from all the IPs in that list

    to see the IPs in that crowdsec-blacklist, use :
    Code:
    sudo ipset list crowdsec-blacklists


    To see if it get correctly fed by your LAPI, you should have decisions and alerts triggered by your Caddy Bouncer

    To list the decisions use the command : cscli decisions list

    Code:
    tom@cerbere:/opt/caddy$ sudo docker exec crowdsec cscli decisions list
    +----------+----------+-----------------+----------------------------+--------+---------+---------------------------+--------+------------+----------+
    |    ID    |  Source  |  Scope:Value  |          Reason          | Action | Country |            AS            | Events | expiration | Alert ID |
    +----------+----------+-----------------+----------------------------+--------+---------+---------------------------+--------+------------+----------+
    | 35622305 | crowdsec | Ip:45.148.10.90 | crowdsecurity/http-probing | ban    | NL      | 48090 Techoff Srv Limited | 11    | 2h21m25s  | 5108    |
    +----------+----------+-----------------+----------------------------+--------+---------+---------------------------+--------+------------+----------+
    1 duplicated entries skipped

    To list the alerts use the command : cscli alerts list

    Code:
    +------+-------------------+---------------------------------------+---------+---------------------------+-----------+-----------------------------------------+
    |  ID  |      value      |                reason                | country |            as            | decisions |                created_at              |
    +------+-------------------+---------------------------------------+---------+---------------------------+-----------+-----------------------------------------+
    | 5108 | Ip:45.148.10.90  | crowdsecurity/http-probing            | NL      | 48090 Techoff Srv Limited | ban:1    | 2025-04-10 13:02:36.862627355 +0000 UTC |
    | 5107 | Ip:45.148.10.90  | crowdsecurity/http-sensitive-files    | NL      | 48090 Techoff Srv Limited | ban:1    | 2025-04-10 13:02:36.912274326 +0000 UTC |
    | 5098 | Ip:45.148.10.35  | crowdsecurity/http-crawl-non_statics  | NL      | 48090 Techoff Srv Limited | ban:1    | 2025-04-10 07:34:41.401018012 +0000 UTC |
    | 5097 | Ip:45.148.10.35  | crowdsecurity/http-probing            | NL      | 48090 Techoff Srv Limited | ban:1    | 2025-04-10 07:34:41.40102972 +0000 UTC  |

    If everything works you should see the IPs alerted in the crowdsec-blacklists.
    You can quickly check that using
    Code:
    sudo ipset list crowdsec-blacklists | grep <the_ip_adress_tocheck>

    Note that if you dont have any ongoing alerts, you can also trigger one yourself, its always funny :-)
    An easy way to test is to trigger the http probing detection. That scenario should be installed, otherwise install it : https://app.crowdsec.net/hub/author/crow...tp-probing
    And then, using your smartphone, and preferably behind a VPN, visit in a row URL of your domain that doesnt exists :
    https://your-domain.tld/thatdoesntexist1
    https://your-domain.tld/thatdoesntexist2
    https://your-domain.tld/thatdoesntexist3
    https://your-domain.tld/thatdoesntexist4
    https://your-domain.tld/thatdoesntexist5

    The bouncer should block you after a dozen of attempts.
    If you got blocked without using a VPN, you will have to learn how to remove the alerted IP using cscli commands ;-)
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-06, 09:31 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-06, 09:49 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-06, 11:38 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by TheDreadPirate - 2025-04-07, 12:27 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-07, 01:51 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by TheDreadPirate - 2025-04-07, 12:06 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-07, 12:27 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-07, 12:57 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-08, 01:20 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-08, 04:07 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by InTrusta - 2025-04-08, 09:57 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-08, 07:34 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-08, 07:46 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-08, 08:08 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-08, 08:27 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 12:12 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-10, 07:14 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by TheDreadPirate - 2025-04-10, 12:45 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 12:34 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-10, 02:15 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 03:19 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-10, 03:14 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 05:46 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode