Compare commits

..

19 Commits

Author SHA1 Message Date
40a4064ddb
add graph-easy dependency 2025-03-25 22:44:59 +01:00
763748322a
note recutils package required 2025-03-25 22:44:59 +01:00
fdb9cf9514
add record info to network.rec 2025-03-25 22:44:59 +01:00
1d35d54af1
embiggen recutils examples 2025-03-25 22:44:58 +01:00
452970261e
create check target 2025-03-25 22:44:58 +01:00
12644b80da
autogenerate map from network info 2025-03-25 22:44:58 +01:00
4b9dae9b3a
give example of inserting record 2025-03-25 22:44:58 +01:00
85479ec6ed
note recutils example command 2025-03-25 22:44:58 +01:00
9ff9633bc4
fix container and host names 2025-03-25 22:44:58 +01:00
37b3d56676
rework routers 2025-03-25 22:44:58 +01:00
0ecdda7302
names and places 2025-03-25 22:44:57 +01:00
f08d2838e3
expand network db 2025-03-25 22:44:57 +01:00
0f58a26e60
basic network db 2025-03-25 22:44:57 +01:00
76e9650abe
[Doc] added wiki link to ssh 2025-03-25 20:51:32 +01:00
624e8d2bfd
remove suggested username from ssh FAQ 2025-03-25 20:32:16 +01:00
c8282c82c5
Merge branch 'master' of ssh://gitea.dmz.rs:2222/Decentrala/dmzconf 2025-03-22 12:21:02 +01:00
c81ef26f4e [scripts] added generate random pass script 2025-03-22 05:02:51 +01:00
dbd7f3dfd4 [kralizec] updated readme for wireguard 2025-03-22 04:21:53 +01:00
547ef14a31 [kralizec] added readme for wireguard 2025-03-22 04:11:41 +01:00
5 changed files with 70 additions and 1 deletions

View File

@ -1,3 +1,5 @@
---
VMID: 114
---
[wiki page](https://wiki.dmz.rs/en/sysadmin/ssh)

View File

@ -0,0 +1,58 @@
---
VMID: 103
---
[Wireguard VPN quickstart](https://www.wireguard.com/quickstart)
Check dmzadmin for `wireguard.gpg` to know who to contact for access
---
### Server config
New user/client needs to provide their wireguard `publickey` and new ip on the network needs to be assigned (`x`)
add next lines to the bottom of the conf file - `/etc/wireguard/wg0.conf`
```conf
[Peer]
PublicKey = <client_public_key>
AllowedIPs = 192.168.164.x/32
```
---
### Client config
client conf example
`x` is the assinged on the server as peer
```conf
[Interface]
Address = 192.168.164.x/32
DNS = 1.1.1.1
MTU = 1420
SaveConfig = true
ListenPort = 51820
FwMark = 0xca6c
PrivateKey = <your_private_wg_key>
[Peer]
PublicKey = JP2FTHLUujkevz1kUymciLImsx1OX9ViUko7oPAIoiA=
AllowedIPs = 192.168.164.0/24, 192.168.1.0/24
Endpoint = 77.105.27.232:51820
PersistentKeepalive = 21
```
---
Command to resolve ip clashing with current and wireguard network
```shell
ip route add <ip> dev <wg0>
```
- `ip` you want to resove -> for wireguard vm 192.168.1.10
- `wg0` name of the wireguard conf

View File

@ -0,0 +1,5 @@
---
VMID: 100
---
[wiki page](https://wiki.dmz.rs/en/sysadmin/ssh)

5
scripts/generatepass.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
echo $(shuf shared/english.txt | head) | sed "s/ //g"

View File

@ -56,7 +56,6 @@ Now all the files have 'read, write, and execute', but only for `$USER`.
Host soft
HostName soft.dmz.rs
Port 2222
User ghost
IdentityFile ~/.ssh/id rsa
Host dmz
HostName dmz.rs