Problem Firewall Proxmox
-
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
withRPCMOUNTDOPTS=-p 20048
There’s a subtlety that escapes me, can you take a look at the following firewall screenshot?
Axel.
-
@FCCL-Vandoeuvre what are you doing or. Trying to do when you get the sshd lock error?
Where are you seeing the error exactly? -
@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
-
@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
- The process starts after a few minutes of waiting,
- A new error.
Sincerely, Axel.
-
@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.