33 lines
631 B
Markdown
33 lines
631 B
Markdown
# Postgresql für andere im Netz zugänglich machen
|
|
|
|
im Ordner ``PostgreSQL/16/data`` in die Datei ``pg_hba.conf`` einfügen, folgendes einfügen:
|
|
|
|
```
|
|
host all all IP/MASK scram-sha-256
|
|
|
|
# Wireguard VPN
|
|
host all all 10.7.0.1/24 scram-sha-256
|
|
|
|
```
|
|
|
|
In Datei postgresql.conf folgende Zeile anpassen:
|
|
```
|
|
listen_addresses = '*' # what IP address(es) to listen on;
|
|
```
|
|
|
|
---
|
|
## VPN (Wireguard)
|
|
|
|
Prüfen ob VPN Netzwerk Privat ist
|
|
```
|
|
Get-NetConnectionProfile
|
|
```
|
|
|
|
VPN Netzwerk zu Private machen
|
|
```
|
|
Set-NetConnectionProfile -InterfaceAlias "OpenMediaVault" -NetworkCategory Private
|
|
```
|
|
|
|
|
|
|