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
  • 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 | 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 2.0k 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 Do not disturb
    girishG Do not disturb
    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 Do not disturb
            girishG Do not disturb
            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 Do not disturb
                girishG Do not disturb
                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 Do not disturb
                      girishG Do not disturb
                      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
                        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