commit message from python script
This commit is contained in:
36
create_wireguard_os_simple/Readme.md
Normal file
36
create_wireguard_os_simple/Readme.md
Normal file
@@ -0,0 +1,36 @@
|
||||
Was will ich machen.
|
||||
|
||||
- erstellen von parametern -c = client -s server
|
||||
- erstellen der Serverconfig über os.popen oder subproess
|
||||
Serverconf gesamt :
|
||||
```
|
||||
[Interface]
|
||||
Address = 10.50.0.1/24
|
||||
ListenPort = 59308
|
||||
PrivateKey = <privtekey server>
|
||||
# Allow routing between clients
|
||||
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT
|
||||
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT
|
||||
[Peer]
|
||||
PublicKey = <publickey Client 1>
|
||||
AllowedIps = 10.50.0.2/32
|
||||
[Peer]
|
||||
PublicKey = <publickey Client 2>
|
||||
AllowedIps = 10.50.0.3/32
|
||||
```
|
||||
- client Config erstellen
|
||||
```
|
||||
[Interface]
|
||||
Address = 10.50.0.3/24
|
||||
PrivateKey = <privatekey client>
|
||||
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT
|
||||
DNS = 10.50.0.3
|
||||
[Peer]
|
||||
PublicKey = <publickey server>
|
||||
AllowedIPs = 10.50.0.0/24
|
||||
Endpoint = schlaubistechtalk.de:59308
|
||||
PersistentKeepalive = 25
|
||||
```
|
||||
- Client und Server Unit erstellen und aktiveren und starten
|
||||
- Eingaben vairbale gestalten, gerne über import
|
||||
- server_key mit Name und publickey dauerhaft speichern Skript Folder
|
||||
1
create_wireguard_os_simple/default_server.py
Normal file
1
create_wireguard_os_simple/default_server.py
Normal file
@@ -0,0 +1 @@
|
||||
#! /usr/bin/env python3
|
||||
Reference in New Issue
Block a user