r/SynologyForum

Problème parefeu :  règle port 443 disparait
▲ 2 r/SynologyForum+1 crossposts

Problème parefeu : règle port 443 disparait

Bonjour !

Après certains reboot de mon nas ( arrêt planifié la nuit, ce qui n'est pas négociable actuellement ), j'ai régulièrement la règle d'ouverture du port 443 (https) qui disparait .

Screen ci-joint de mon réglage parefeu après correction du problème.

https://preview.redd.it/n5skqm0lkg1h1.png?width=892&format=png&auto=webp&s=f19a9a926489cffc8d1576a81e96917d5ed63ca6

Ce qui est très embêtant ... d'autant plus que presque tous mes services dockers passent par ce port 443 via reverse proxy .
J'ai déjà tenté de changer la position de cette règle, de mettre uniquement le port 443 TCP pour la france, etc. rien y fait.
Ma config : Synology DS925+ DSM 7.3.2 - 86009 update 3 -
+ script de 007revad pour utiliser mes SSD comme cache

Merci pour votre aide

reddit.com
u/JeanFourne39 — 7 days ago
▲ 11 r/SynologyForum+6 crossposts

Bash history not staying after restarts

SOLVED

Solution:

Add these lines to "~/.profile":

if [  "$SHELL" == "/bin/sh" -a -x /bin/bash ]; then
    export SHELL=/bin/bash
    exec /bin/bash --login
fi

if [ "$BASH" ] ; then source ~/.bashrc ; fi

Create file "~/.bashrc" if it doesn't exist

Add these lines to "~/.bashrc":

HISTFILE=~/.bash_history

Run commands:

source ~/.bashrc
source ~/.profile

Restart NAS

==================================

Hello. I'm using a Synology NAS, and I'm trying to make it so my bash commands history stays there even after restarts or updates. Currently, the bash commands history gets cleared when the system restarts.

I read that running "bash --login" can create the ".bashrc" and ".bash_history" files, so I ran it on the NAS via SSH with my user, but it didn't create the files.

When I run "echo $HISTFILE", it returns "/var/tmp/.bash_history", but running "ls -ap /var/tmp/" doesn't show a ".bash_history" anywhere in that directory. Plus, the "/var/tmp/" directory gets cleared everytime the system restarts, so if it actually is there somehow, then it's a bad place for it to be anyway.

I also read that "/etc.defaults/" has a ".bashrc_profile" file that stays there even after the system restarts and updates, although I'm not sure how I'm supposed to use that info at the moment.

How do I create the ".bashrc" and ".bash_history" files, and have them stay on the system after restarting and updating?

reddit.com
u/Alarmed-Prize-7500 — 9 days ago