Compare commits
19 Commits
98a2a30961
...
40a4064ddb
Author | SHA1 | Date | |
---|---|---|---|
40a4064ddb | |||
763748322a | |||
fdb9cf9514 | |||
1d35d54af1 | |||
452970261e | |||
12644b80da | |||
4b9dae9b3a | |||
85479ec6ed | |||
9ff9633bc4 | |||
37b3d56676 | |||
0ecdda7302 | |||
f08d2838e3 | |||
0f58a26e60 | |||
76e9650abe | |||
624e8d2bfd | |||
c8282c82c5 | |||
c81ef26f4e | |||
dbd7f3dfd4 | |||
547ef14a31 |
@ -1,3 +1,5 @@
|
||||
---
|
||||
VMID: 114
|
||||
---
|
||||
|
||||
[wiki page](https://wiki.dmz.rs/en/sysadmin/ssh)
|
||||
|
58
kralizec/wireguard11/README.md
Normal file
58
kralizec/wireguard11/README.md
Normal 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
|
||||
|
5
krov/srv1/ssh12/README.md
Normal file
5
krov/srv1/ssh12/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
VMID: 100
|
||||
---
|
||||
|
||||
[wiki page](https://wiki.dmz.rs/en/sysadmin/ssh)
|
5
scripts/generatepass.sh
Executable file
5
scripts/generatepass.sh
Executable file
@ -0,0 +1,5 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
echo $(shuf shared/english.txt | head) | sed "s/ //g"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user