25-03-2025
This commit is contained in:
84
docs/pi-hole/pi-hole.md
Normal file
84
docs/pi-hole/pi-hole.md
Normal file
@@ -0,0 +1,84 @@
|
||||
# Raspberry pi-hole
|
||||
|
||||
|
||||
|
||||
#### Envoyer un fichier sur le pi depuis le mac:
|
||||
|
||||
```bash
|
||||
cat update_pihole.sh | ssh -p51322 root@192.168.2.116 'cat > /root/update_pihole.sh'
|
||||
|
||||
cat update_pihole.sh | ssh -p51522 root@192.168.2.216 'cat > /root/update_pihole.sh'
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### Récupérer un fichier depuis le pi sur le mac:
|
||||
|
||||
```bash
|
||||
ssh -p51322 root@192.168.2.116 "cat /etc/pihole/lan.list" > lan.list.1
|
||||
|
||||
ssh -p51522 root@192.168.2.216 "cat /etc/pihole/lan.list" > lan.list.2
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### msmtp
|
||||
|
||||
Fichier de config:
|
||||
|
||||
```bash
|
||||
# pihole2
|
||||
|
||||
$ nano /etc/msmtprc
|
||||
|
||||
#Set default values for all accounts.
|
||||
defaults
|
||||
auth login
|
||||
tls on
|
||||
tls_starttls off
|
||||
tls_certcheck on
|
||||
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
logfile /var/log/msmtp.log
|
||||
|
||||
#OVH settings
|
||||
account ovh
|
||||
host ssl0.ovh.net
|
||||
#auth login
|
||||
#tls on
|
||||
#tls_starttls off
|
||||
#tls_certcheck on
|
||||
#tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
from liste@clicclac.info
|
||||
port 465
|
||||
user liste@clicclac.info
|
||||
password 8xnc8Jw47VYjr_yjGzqF
|
||||
|
||||
#Orange settings
|
||||
account orange
|
||||
host smtp.orange.fr
|
||||
protocol smtp
|
||||
#auth login
|
||||
#tls on
|
||||
#tls_starttls off
|
||||
#tls_certcheck on
|
||||
#tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||
from bruno.pesenti@orange.fr
|
||||
maildomain orange.fr
|
||||
port 465
|
||||
user bruno.pesenti
|
||||
#password G!yrgTy8XX9NhXzz
|
||||
passwordeval gpg --no-tty -q -d /root/.msmtp-password.gpg
|
||||
|
||||
#Set a default account
|
||||
account default : ovh
|
||||
```
|
||||
|
||||
|
||||
|
||||
```bash
|
||||
root@PiHole2:~#
|
||||
|
||||
.msmtp-password.gpg
|
||||
.env
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user