Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • 0 Votes
    14 Posts
    5k Views
    C
    @nebulon Fantastic, thank you!
  • Restrict Dashboard Access - Cloudron v6.1.2

    Support firewall
    5
    0 Votes
    5 Posts
    2k Views
    potemkin_aiP
    @girish said in Restrict Dashboard Access - Cloudron v6.1.2: @potemkin_ai UFW and Docker are not compatible. I haven't looked into the repo you linked yet. I didn't test the solution yet, found it with people referring as a working one, so I have hopes. The idea is to modify /etc/ufw/after.rules to contain: # BEGIN UFW AND DOCKER *filter :ufw-user-forward - [0:0] :ufw-docker-logging-deny - [0:0] :DOCKER-USER - [0:0] -A DOCKER-USER -j ufw-user-forward -A DOCKER-USER -j RETURN -s 10.0.0.0/8 -A DOCKER-USER -j RETURN -s 172.16.0.0/12 -A DOCKER-USER -j RETURN -s 192.168.0.0/16 -A DOCKER-USER -p udp -m udp --sport 53 --dport 1024:65535 -j RETURN -A DOCKER-USER -j ufw-docker-logging-deny -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -d 192.168.0.0/16 -A DOCKER-USER -j ufw-docker-logging-deny -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -d 10.0.0.0/8 -A DOCKER-USER -j ufw-docker-logging-deny -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -d 172.16.0.0/12 -A DOCKER-USER -j ufw-docker-logging-deny -p udp -m udp --dport 0:32767 -d 192.168.0.0/16 -A DOCKER-USER -j ufw-docker-logging-deny -p udp -m udp --dport 0:32767 -d 10.0.0.0/8 -A DOCKER-USER -j ufw-docker-logging-deny -p udp -m udp --dport 0:32767 -d 172.16.0.0/12 -A DOCKER-USER -j RETURN -A ufw-docker-logging-deny -m limit --limit 3/min --limit-burst 10 -j LOG --log-prefix "[UFW DOCKER BLOCK] " -A ufw-docker-logging-deny -j DROP COMMIT # END UFW AND DOCKER Why not just enable 2FA on the dashboard? It's a different security layer. 2FA relies on the code, which is much more complicated, as opposed to network level filtering. What is more complicated could have more issues. So, whenever possible, I close any code from outside access - everything have bugs, some of them are in security space, even if you are OpenBSD Do you believe this could become part of the system? I would really like to deny from all with allow from xxx.xxx.xxx.xxx with periodic firewall disable for let's encrypt.
  • Why does cloudron block ports?

    Solved Support networking firewall
    4
    0 Votes
    4 Posts
    2k Views
    C
    Tha @d19dotca said in Why does cloudron block ports?: @cumpal Cloudron expects to be the only one running on the server, so for security reasons it locks it down unless needed by Cloudron or any of the apps on it. If you need to modify it, I think you can just update the firewall rules manually in Ubuntu, though I've not done that part myself as no need for it yet. but hopefully that at least explains why it's locked down. You may want to review the Cloudron docs on security features too. @girish said in Why does cloudron block ports?: In addition to what @d19dotca said, you can whitelist extra ports using https://docs.cloudron.io/networking/#whitelist-ports . Please use this at your own risk, we don't recommend installing other software alongside cloudron . Thanks for these replies! I got them working.
  • Block access to all IPs, but one + firewall admin problem

    Solved Support networking firewall
    8
    0 Votes
    8 Posts
    3k Views
    robiR
    There is an allow list file, but you have to access it from ssh. It should be in the docs.
  • FW stops workung after update

    Support firewall
    2
    0 Votes
    2 Posts
    748 Views
    girishG
    @chymian-0 Did you whitelist the ports or did you use iptables/ufw directly? We only support https://docs.cloudron.io/networking/#whitelist-ports
  • 2 Votes
    2 Posts
    796 Views
    P
    @robi Wow Robi, this is a great feature request!!! Just yesterday one of my Cloudron instances got a lot of traffic to email for a bruteforce attack. @girish I think this feature have to put on the top of the list to improve safety but also to reduce workload of instances and network traffic... [image: 1610527791540-schermata-2021-01-13-alle-09.49.21-resized.png] This is a statping how network performances was impacted before and later bruteforce. Also, need a robust alert system - email or other - to let us know that something is happens.
  • FYI: arp/ip/ip6tables is no longer available

    Discuss bionic firewall
    2
    0 Votes
    2 Posts
    3k Views
    girishG
    Thanks for the heads up. We don't really use any of these tools but something to keep in mind. We do use ipset for the firewall block list, but it seems to work fine with Ubuntu 20 though.
  • Format for IP Blocking

    Solved Support networking firewall
    3
    0 Votes
    3 Posts
    1k Views
    robiR
    @shai said in Format for IP Blocking: If you are curious, blocking China and Russia came to 19,000 rows. Cloudron didn't stutter. The firewall does. It will take progressively longer to make fw changes as you keep adding IP blocks. Not an issue for one time things, but something to keep in mind.
  • App specific firewall configuration

    Feature Requests firewall
    4
    3 Votes
    4 Posts
    1k Views
    potemkin_aiP
    @mehdi my thoughts / use case exactly. Doing so with ipchains is a pain (thanks Docker's intervention to firewall); and ufw just doesn't handle all of the use cases (thanks Docker again).
  • 5 Votes
    50 Posts
    15k Views
    humptyH
    @necrevistonnezr I was looking in the forum Thank you!
  • Firewall IP blocking: IPv6 not possible

    Solved Support firewall
    12
    0 Votes
    12 Posts
    5k Views
    micmcM
    @girish said in Firewall IP blocking: IPv6 not possible: I guess this post was before we had IPv6 support. IPv6 is supported in the firewall by now. Indeed
  • 0 Votes
    6 Posts
    3k Views
    JOduMonTJ
    I was looking if someone, somehow Cloudron implemented Filtron and apparently not it would be nice to have this, even as a sidekick instance. Otherwise for now; I limit the query via Cloudflare with their ZeroTrust service [image: 1720177308337-screen-shot-2024-07-05-at-07.01.28-resized.png]
  • 0 Votes
    13 Posts
    5k Views
    girishG
    Follow up from the customer: "The issue here turned out to be that in Wordpress, WP Rocket caching plugin was used. This plugin automatically starts to preload the cache of each page once something in the site has been updated. The preload itself causes some stress on the CPU and maybe some other processes. Turning off the plugin, the products were sent for less than 2 mins." They are working with the WP Rocket team to find a workaround.
  • Networking - Whitelist ports does not work as expected

    Solved Support firewall
    12
    1 Votes
    12 Posts
    4k Views
    BrutalBirdieB
    @girish said in Networking - Whitelist ports does not work as expected: @robi @BrutalBirdie done! https://git.cloudron.io/cloudron/box/-/commit/4287642308081d27dcc160f845fd5dedb27eb481 That was fast.
  • 1 Votes
    4 Posts
    1k Views
    girishG
    @malvim said in Feasibility of running cloudron inside a vpn with package redirection: What ports do you think I should be concernet about forwarding packages? Is it just 80, 443 and 25? I've taken a look at cloudron_firewall.sh and there's a bit more stuff going on there, isn't there? Heheh https://docs.cloudron.io/security/#cloud-firewall is the full list. But at the barest minimum port 443 is enough.
  • Unable to pull/push repo over SSH

    Solved Gogs firewall ssh cloudflare
    12
    0 Votes
    12 Posts
    6k Views
    T
    Thanks, now I understand
  • 5 Votes
    3 Posts
    1k Views
    LonkleL
    @girish https://www.ipdeny.com/ipblocks/data/countries/all-zones.tar.gz But I did get that from your blog post for 5.6: https://blog.cloudron.io/cloudron-5-6-released/ so maybe you're looking for better ones?
  • New Firewall Feature issues

    Solved Support firewall
    11
    2
    0 Votes
    11 Posts
    4k Views
    S
    thank youuuuu
  • 0 Votes
    5 Posts
    2k Views
    girishG
    Deployed at https://cloudron.io/documentation/security/#privacy-control
  • SNMP support and iptable settings....

    Support snmp iptables firewall
    6
    0 Votes
    6 Posts
    3k Views
    DanTheManD
    @girish Thanks a lot for this great support and that you want to take a look at it It's not a must have, but it come's very handy for monitoring my Cloudron instance and get warnings if something goes weird or reaches high loads. Netdata is also something i did not think about earlier, so maybe that will workout for me as well. I must say (apart from this topic), i am really 100% satisfied till so far about Cloudron and the active community that's behind it. Many answers to my questions i did already find here in the forums Also a big thanks to the Staff of Cloudron, that picks up problems really quick and solve's them as much as they can. I hope Cloudron will live for a long time in the upcoming future, because it's the solution i was looking for a long time Really glad i came accros all this and thanks to everybody