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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Networking - Whitelist ports does not work as expected

Networking - Whitelist ports does not work as expected

Scheduled Pinned Locked Moved Solved Support
firewall
12 Posts 4 Posters 3.9k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by girish
    #2

    @BrutalBirdie Whoops, the filename is wrong. The correct filename is /home/yellowtent/boxdata/firewall/ports.json.

    # cat /home/yellowtent/boxdata/firewall/ports.json
    {
        "allowed_tcp_ports": [ 10050 ]
    }
    
    # systemctl restart cloudron-firewall
    # iptables -L -n | grep -i 10050
    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp multiport dports 10050
    
    BrutalBirdieB D 2 Replies Last reply
    3
    • girishG girish

      @BrutalBirdie Whoops, the filename is wrong. The correct filename is /home/yellowtent/boxdata/firewall/ports.json.

      # cat /home/yellowtent/boxdata/firewall/ports.json
      {
          "allowed_tcp_ports": [ 10050 ]
      }
      
      # systemctl restart cloudron-firewall
      # iptables -L -n | grep -i 10050
      ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp multiport dports 10050
      
      BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by BrutalBirdie
      #3

      @girish said in Networking - Whitelist ports does not work as expected:

      @BrutalBirdie Whoops, the filename is wrong. The correct filename is /home/yellowtent/boxdata/firewall/ports.json.

      # cat /home/yellowtent/boxdata/firewall/ports.json
      {
          "allowed_tcp_ports": [ 10050 ]
      }
      
      # systemctl restart cloudron-firewall
      # iptables -L -n | grep -i 10050
      ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp multiport dports 10050
      

      Now it's working as intended.
      I will create a PR for the docs.

      edit:
      https://git.cloudron.io/cloudron/docs/-/commit/fd7c5d31f5fbd02e65589e06d5f9ee50322269eb
      Has been done already, because it's not live yet I thought I could do that.

      Thanks 👍

      Like my work? Consider donating a drink. Cheers!

      1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #4

        This only works for TCP right now.

        Conscious tech

        1 Reply Last reply
        0
        • girishG girish

          @BrutalBirdie Whoops, the filename is wrong. The correct filename is /home/yellowtent/boxdata/firewall/ports.json.

          # cat /home/yellowtent/boxdata/firewall/ports.json
          {
              "allowed_tcp_ports": [ 10050 ]
          }
          
          # systemctl restart cloudron-firewall
          # iptables -L -n | grep -i 10050
          ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp multiport dports 10050
          
          D Offline
          D Offline
          drml
          wrote on last edited by
          #5

          @girish How would be the syntax to open several ports? I'd need RStudio server (8787) and Geoserver (8080).

          Is it comma separated, semicolon separated or a line per port?

          Thanks a lot for the support!

          girishG 1 Reply Last reply
          0
          • D drml

            @girish How would be the syntax to open several ports? I'd need RStudio server (8787) and Geoserver (8080).

            Is it comma separated, semicolon separated or a line per port?

            Thanks a lot for the support!

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #6

            @drml It's JSON, so it would be something like

            {
                "allowed_tcp_ports": [ 8787, 8080 ]
            }
            
            robiR 1 Reply Last reply
            0
            • girishG girish

              @drml It's JSON, so it would be something like

              {
                  "allowed_tcp_ports": [ 8787, 8080 ]
              }
              
              robiR Offline
              robiR Offline
              robi
              wrote on last edited by
              #7

              @girish are udp ports added to Cloudron 6.x?

              Conscious tech

              girishG 1 Reply Last reply
              0
              • robiR robi

                @girish are udp ports added to Cloudron 6.x?

                girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #8

                @robi No, we haven't added it. What is the use case for UDP ports?

                robiR BrutalBirdieB 2 Replies Last reply
                0
                • girishG girish

                  @robi No, we haven't added it. What is the use case for UDP ports?

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #9

                  @girish mosh, video streams, etc any other app using udp

                  Conscious tech

                  1 Reply Last reply
                  0
                  • girishG girish

                    @robi No, we haven't added it. What is the use case for UDP ports?

                    BrutalBirdieB Offline
                    BrutalBirdieB Offline
                    BrutalBirdie
                    Partner
                    wrote on last edited by
                    #10

                    I would also enjoy UDP being supported this way.
                    Since I can still just do it manual via iptables why not give the user a easier way.

                    Like my work? Consider donating a drink. Cheers!

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      @robi @BrutalBirdie done! https://git.cloudron.io/cloudron/box/-/commit/4287642308081d27dcc160f845fd5dedb27eb481

                      BrutalBirdieB 1 Reply Last reply
                      2
                      • girishG girish

                        @robi @BrutalBirdie done! https://git.cloudron.io/cloudron/box/-/commit/4287642308081d27dcc160f845fd5dedb27eb481

                        BrutalBirdieB Offline
                        BrutalBirdieB Offline
                        BrutalBirdie
                        Partner
                        wrote on last edited by
                        #12

                        @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. ♥

                        Like my work? Consider donating a drink. Cheers!

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search