• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Problem Firewall Proxmox

    Scheduled Pinned Locked Moved
    General Problems
    3
    5
    436
    Loading More Posts
    • 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.
    • F
      FCCL-Vandoeuvre
      last edited by

      Hello,

      For a few days I’ve been trying to secure a virtualized Fog server using the firewall built into the Proxmox virtualizer.

      I’ve allocated two ip addresses to the Fog server:

      • a public one (00.00.00.00) for which I’ve left ports 22, 80 and 443 for Fog-client, which seems to work.
      • a private one (192.168.10.112) which opens the ports needed for image capture and deployment. When the firewall on the internal network is deactivated, it works, but when I activate the rules, I get the error Starting sshd: touch: cannot touch ‘/var/lock/sshd’ : No such file or directory.

      I’ve modified the /etc/default/nfs-kernel-server file, to replace RPCMOUNTDOPTS=--manage-gids with RPCMOUNTDOPTS=-p 20048

      There’s a subtlety that escapes me, can you take a look at the following firewall screenshot?

      Configuration du par-feu Fog sur Proxmox

      Axel.

      JJ FullmerJ F 2 Replies Last reply Reply Quote 0
      • JJ FullmerJ
        JJ Fullmer Testers @FCCL-Vandoeuvre
        last edited by

        @FCCL-Vandoeuvre what are you doing or. Trying to do when you get the sshd lock error?
        Where are you seeing the error exactly?

        Have you tried the FogApi powershell module? It's pretty cool IMHO
        https://github.com/darksidemilk/FogApi
        https://fogapi.readthedocs.io/en/latest/
        https://www.powershellgallery.com/packages/FogApi
        https://forums.fogproject.org/topic/12026/powershell-api-module

        F 1 Reply Last reply Reply Quote 0
        • F
          fogcloud @FCCL-Vandoeuvre
          last edited by fogcloud

          @FCCL-Vandoeuvre This sounds identical to the issue I had. Basically during the imaging process, it would stop and show Starting sshd: touch: cannot touch ‘/var/lock/sshd’ : No such file or directory along with starting deployment scripts. I knew it was firewall related because when I disabled the firewall rules, it would work.

          It turned out the solution was to configure NFS mountd to use the static port of 20048. You mentioned doing something similar, but I modified a different file than the one you mentioned (nfs.conf). Below is a link to the forum post I made and the solution.

          https://forums.fogproject.org/topic/17604/what-ports-does-fog-use/2?_=1724085771324

          F 1 Reply Last reply Reply Quote 0
          • F
            FCCL-Vandoeuvre @JJ Fullmer
            last edited by

            @JJ-Fullmer Hello,

            Sorry for the late reply, but we’ve put the project on hold from September to meet operating requirements.

            Here are three screenshots:

            • The error initially indicated in the subject line

            text alternatif

            • The process starts after a few minutes of waiting,

            text alternatif

            • A new error.

            text alternatif

            Sincerely, Axel.

            1 Reply Last reply Reply Quote 0
            • F
              FCCL-Vandoeuvre @fogcloud
              last edited by

              @fogcloud Hello,

              Thanks for the info. I tested the cloning after modifying the nfs.conf file. It doesn’t work. I haven’t found any specific resource on this subject.

              Is this the modification that was made?

              /etc/nfs.conf

              [nfsd]
              port=20048
              

              Sincerely, Axel.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post

              212

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project