KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
Zeile 12: | Zeile 12: | ||
{{var | neu--wireguard export | {{var | neu--wireguard export | ||
| [[#wireguard export|wireguard export]] | | [[#wireguard export|wireguard export]] | ||
| | | [[#wireguard export|wireguard export]] }} | ||
{{var | neu--wireguard ping | {{var | neu--wireguard ping | ||
| [[#wireguard ping|wireguard ping]] | | [[#wireguard ping|wireguard ping]] | ||
| | | [[#wireguard ping|wireguard ping]] }} | ||
{{var | Neu im Wiki | {{var | Neu im Wiki | ||
| Neu im Wiki: | | Neu im Wiki: | ||
Zeile 32: | Zeile 32: | ||
{| class="sptable2 sortable pd5 table-hover" | {| class="sptable2 sortable pd5 table-hover" | ||
! class=mw14| {{#var:Befehl}} !! class=mw12| | ! class=mw14| {{#var:Befehl}} !! class=mw12| Parameter !! class=mw12| {{#var:desc}} !! {{#var:Beispiel}} | ||
|- | |- | ||
| {{h3|wireguard}} {{h4|wireguard update}} '''wireguard''' update | | {{h3|wireguard}} {{h4|wireguard update}} '''wireguard''' update | ||
Zeile 43: | Zeile 43: | ||
| {{#var:wireguard get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | | {{#var:wireguard get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class="sptable" | {| class="sptable" | ||
! {{#var: | ! {{#var:val}} !! {{#var:desc}} | ||
|- | |- | ||
| interface_id || {{#var:interface_id--desc}} | | interface_id || {{#var:interface_id--desc}} | ||
Zeile 67: | Zeile 67: | ||
| peer_name || {{#var:peer_name--desc}} | | peer_name || {{#var:peer_name--desc}} | ||
|- | |- | ||
| peer_psk || {{#var:peer_psk--desc}} | | peer_psk || '''Optional'''. {{#var:peer_psk--desc}} | ||
|- | |- | ||
| peer_endpoint || {{#var:peer_endpoint--desc}} | | peer_endpoint || {{#var:peer_endpoint--desc}} | ||
Zeile 89: | Zeile 89: | ||
| {{#var:wireguard interface get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | | {{#var:wireguard interface get--desc}} {{Einblenden| {{#var:Details}} | {{#var:hide}} |true|dezent}} | ||
{| class="sptable" | {| class="sptable" | ||
! {{#var: | ! {{#var:val}} !! {{#var:desc}} | ||
|- | |- | ||
| interface_id || {{#var:interface_id--desc}} | | interface_id || {{#var:interface_id--desc}} | ||
Zeile 123: | Zeile 123: | ||
|- | |- | ||
| rowspan="5"| {{h4|wireguard interface set}} wireguard interface set | | rowspan="5" | {{h4|wireguard interface set}} wireguard interface set | ||
| | | | ||
| {{#var:wireguard interface set--desc}} | | {{#var:wireguard interface set--desc}} | ||
| rowspan="5"| {{code|wireguard interface set interface_id "691" interface_listen_port "51820" interface_keyobj_id "689" interface_keyobj_name "Wireguard-Key"}} | | rowspan="5" | {{code|wireguard interface set interface_id "691" interface_listen_port "51820" interface_keyobj_id "689" interface_keyobj_name "Wireguard-Key"}} | ||
|- | |- | ||
| interface_id || {{#var:interface_id--desc}} | | interface_id || {{#var:interface_id--desc}} | ||
Zeile 138: | Zeile 138: | ||
|- | |- | ||
| rowspan="2"| {{h4|wireguard interface delete}} wireguard interface delete | | rowspan="2" | {{h4|wireguard interface delete}} wireguard interface delete | ||
| | | | ||
| {{#var:wireguard interface delete--desc}} | | {{#var:wireguard interface delete--desc}} | ||
| rowspan="2"| {{code|wireguard interface delete interface_id "691"}} | | rowspan="2" | {{code|wireguard interface delete interface_id "691"}} | ||
|- | |- | ||
| interface_id || {{#var:interface_id--desc}} | | interface_id || {{#var:interface_id--desc}} | ||
Zeile 159: | Zeile 159: | ||
| peer_public_keyobj_id || {{#var:peer_public_keyobj_id--desc}} | | peer_public_keyobj_id || {{#var:peer_public_keyobj_id--desc}} | ||
|- | |- | ||
| peer_psk || {{#var:peer_psk--desc}} | | peer_psk || '''Optional'''. {{#var:peer_psk--desc}} | ||
|- | |- | ||
| peer_keepalive || {{#var:peer_keepalive--desc}} | | peer_keepalive || {{#var:peer_keepalive--desc}} | ||
Zeile 171: | Zeile 171: | ||
|- | |- | ||
| rowspan="8"| {{h4|wireguard peer new}} wireguard peer new | | rowspan="8" | {{h4|wireguard peer new}} wireguard peer new | ||
| | | | ||
| {{#var:wireguard peer new--desc}} | | {{#var:wireguard peer new--desc}} | ||
| rowspan="8"| {{code|wireguard peer new peer_name "peer" peer_public_keyobj_id "690" peer_endpoint [ ] peer_keepalive "25" peer_address_list [ 192.168.10.1/24 ] peer_interface_name_list [ wg0 ]}} {{Hinweis-box|{{#var:Syntax korrigiert}}|r|12.6.2|class=small|status=update}} {{info|{{#var:Syntax Korrektur--desc}} }} | | rowspan="8" | {{code|wireguard peer new peer_name "peer" peer_public_keyobj_id "690" peer_endpoint [ ] peer_keepalive "25" peer_address_list [ 192.168.10.1/24 ] peer_interface_name_list [ wg0 ]}} {{Hinweis-box|{{#var:Syntax korrigiert}}|r|12.6.2|class=small|status=update}} {{info|{{#var:Syntax Korrektur--desc}} }} | ||
|- | |- | ||
| peer_name || {{#var:peer_name--desc}} | | peer_name || {{#var:peer_name--desc}} | ||
Zeile 180: | Zeile 180: | ||
| peer_public_keyobj_id || {{#var:peer_public_keyobj_id--desc}} | | peer_public_keyobj_id || {{#var:peer_public_keyobj_id--desc}} | ||
|- | |- | ||
| peer_psk || {{#var:peer_psk--desc}} | | peer_psk || '''Optional'''. {{#var:peer_psk--desc}} | ||
|- | |- | ||
| peer_endpoint || {{#var:peer_endpoint--desc}} | | peer_endpoint || {{#var:peer_endpoint--desc}} | ||
Zeile 192: | Zeile 192: | ||
|- | |- | ||
| rowspan="9"| {{h4|wireguard peer set}} wireguard peer set | | rowspan="9" | {{h4|wireguard peer set}} wireguard peer set | ||
| | | | ||
| {{#var:wireguard peer set--desc}} | | {{#var:wireguard peer set--desc}} | ||
| rowspan="9"| {{code|wireguard peer set peer_name "peer1" peer_public_keyobj_id "706" peer_endpoint [ ] peer_address_list ["192.168.11.1/24"] peer_keepalive "25" peer_interface_id_list ["710"] peer_id "5"}} | | rowspan="9" | {{code|wireguard peer set peer_name "peer1" peer_public_keyobj_id "706" peer_endpoint [ ] peer_address_list ["192.168.11.1/24"] peer_keepalive "25" peer_interface_id_list ["710"] peer_id "5"}} | ||
|- | |- | ||
| peer_name || {{#var:peer_name--desc}} | | peer_name || {{#var:peer_name--desc}} | ||
Zeile 205: | Zeile 205: | ||
| peer_address_list || {{#var:peer_address_list--desc}} | | peer_address_list || {{#var:peer_address_list--desc}} | ||
|- | |- | ||
| peer_psk || {{#var:peer_psk--desc}} | | peer_psk || '''Optional'''. {{#var:peer_psk--desc}} | ||
|- | |- | ||
| peer_keepalive || {{#var:peer_keepalive--desc}} | | peer_keepalive || {{#var:peer_keepalive--desc}} | ||
Zeile 215: | Zeile 215: | ||
|- | |- | ||
| rowspan="2"| {{h4|wireguard peer delete}} wireguard peer delete | | rowspan="2" | {{h4|wireguard peer delete}} wireguard peer delete | ||
| | | | ||
| {{#var:wireguard peer delete--desc}} | | {{#var:wireguard peer delete--desc}} | ||
| rowspan="2"| {{code|wireguard peer delete peer_id "5"}} | | rowspan="2" | {{code|wireguard peer delete peer_id "5"}} | ||
|- | |- | ||
| peer_id || {{#var:peer_id--desc}} | | peer_id || {{#var:peer_id--desc}} | ||
Zeile 231: | Zeile 231: | ||
|- | |- | ||
| rowspan=2 | {{Hinweis-box||gr|status=neu}} {{h4|wireguard ping}} '''wireguard ping''' | | rowspan="2" | {{Hinweis-box||gr|status=neu}} {{h4|wireguard ping}} '''wireguard ping''' | ||
| | | | ||
| {{#var:wireguard ping--desc}} | | {{#var:wireguard ping--desc}} | ||
| rowspan=2 | {{code|wireguard ping peer_id_list "1"}} | | rowspan="2" | {{code|wireguard ping peer_id_list "1"}} | ||
|- | |- | ||
| peer_id_list | | peer_id_list | ||
| {{#var:wireguard ping-peer_id_list--desc}} | | {{#var:wireguard ping-peer_id_list--desc}} | ||
|} | |} |
Aktuelle Version vom 23. Juli 2024, 14:42 Uhr
Syntax des CLI-Befehls wireguard
Letzte Anpassung: 07.2024
Neu im Wiki:
notempty
Dieser Artikel bezieht sich auf eine Resellerpreview
Beispiel: wireguard peer set peer_id "3" peer_psk [ ]
Befehl | Parameter | Beschreibung | Beispiel | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wireguardwireguard updatewireguard update |
– | Nach jedem Wireguard-CLI-Befehl muss dies eingegeben werden, damit diese Befehle abgespeichert werden | wireguard update | ||||||||||||||||||||||||||||||||||||||
wireguard getwireguard get |
– | Auflistung aller Wireguard-Verbindungen
|
wireguard get | ||||||||||||||||||||||||||||||||||||||
wireguard interfacewireguard interface getwireguard interface get |
– | Auflistung aller Wireguard-Interfaces
|
wireguard interface get | ||||||||||||||||||||||||||||||||||||||
wireguard interface newwireguard interface new |
Erstellt ein neues Wireguard-Interface. Zuvor muss ein neues Interface erstellt werden. |
interface new name "wg0" type WIREGUARD | |||||||||||||||||||||||||||||||||||||||
interface_name | Name des Wireguard-Interfaces | wireguard interface new interface_name "wg0" interface_description "wg_server" interface_keyobj_id "689" interface_listen_port "51820" | |||||||||||||||||||||||||||||||||||||||
interface_description | Verbindungsname in der Übersicht | ||||||||||||||||||||||||||||||||||||||||
interface_keyobj_id | ID des Schlüssels für die Wireguard-Verbindung | ||||||||||||||||||||||||||||||||||||||||
interface_listen_port | Port, auf dem die Wireguard-Verbindung entgegen genommen wird | ||||||||||||||||||||||||||||||||||||||||
wireguard interface setwireguard interface set |
Bearbeitung eines Wireguard-Interfaces | wireguard interface set interface_id "691" interface_listen_port "51820" interface_keyobj_id "689" interface_keyobj_name "Wireguard-Key" | |||||||||||||||||||||||||||||||||||||||
interface_id | ID des Wireguard-Interfaces | ||||||||||||||||||||||||||||||||||||||||
interface_listen_port | Port, auf dem die Wireguard-Verbindung entgegen genommen wird | ||||||||||||||||||||||||||||||||||||||||
interface_keyobj_id | ID des Schlüssels für die Wireguard-Verbindung | ||||||||||||||||||||||||||||||||||||||||
interface_keyobj_name | Name des Schlüssels für die Wireguard-Verbindung | ||||||||||||||||||||||||||||||||||||||||
wireguard interface deletewireguard interface delete |
Löscht das Wireguard-Interface | wireguard interface delete interface_id "691" | |||||||||||||||||||||||||||||||||||||||
interface_id | ID des Wireguard-Interfaces | ||||||||||||||||||||||||||||||||||||||||
wireguard peerwireguard peer getwireguard peer get |
– | Auflistung aller Wireguard-Peers
|
wireguard peer get | ||||||||||||||||||||||||||||||||||||||
wireguard peer newwireguard peer new |
Erstellt ein neues Peer für den Wireguard | wireguard peer new peer_name "peer" peer_public_keyobj_id "690" peer_endpoint [ ] peer_keepalive "25" peer_address_list [ 192.168.10.1/24 ] peer_interface_name_list [ wg0 ] notempty Syntax korrigiert Die Parameter der Werte bei peer_address_list und peer_interface_name_list müssen mit Leerzeichen angegeben werden. | |||||||||||||||||||||||||||||||||||||||
peer_name | Name des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_public_keyobj_id | ID des öffentlichen Schlüssels des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_psk | Optional. Pre-Shared Key des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_endpoint | Endpunkt des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_keepalive | Zeit des Keepalive in Sekunden des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_address_list | IP-Adressen die der Peer verwendet | ||||||||||||||||||||||||||||||||||||||||
peer_interface_name_list | Liste der Interfacenamen zum Peer | ||||||||||||||||||||||||||||||||||||||||
wireguard peer setwireguard peer set |
Bearbeitung eines Wireguard-Peers | wireguard peer set peer_name "peer1" peer_public_keyobj_id "706" peer_endpoint [ ] peer_address_list ["192.168.11.1/24"] peer_keepalive "25" peer_interface_id_list ["710"] peer_id "5" | |||||||||||||||||||||||||||||||||||||||
peer_name | Name des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_public_keyobj_id | ID des öffentlichen Schlüssels des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_endpoint | Endpunkt des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_address_list | IP-Adressen die der Peer verwendet | ||||||||||||||||||||||||||||||||||||||||
peer_psk | Optional. Pre-Shared Key des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_keepalive | Zeit des Keepalive in Sekunden des Peers | ||||||||||||||||||||||||||||||||||||||||
peer_interface_id_list | Liste der IDs der Interfaces | ||||||||||||||||||||||||||||||||||||||||
peer_id | ID des Peers | ||||||||||||||||||||||||||||||||||||||||
wireguard peer deletewireguard peer delete |
Löscht einen Peer | wireguard peer delete peer_id "5" | |||||||||||||||||||||||||||||||||||||||
peer_id | ID des Peers | ||||||||||||||||||||||||||||||||||||||||
wireguard exportwireguard export |
Exportiert eine Wireguard Verbindung | wireguard export | |||||||||||||||||||||||||||||||||||||||
wireguard pingwireguard ping |
Pingt alle Peers einer Liste | wireguard ping peer_id_list "1" | |||||||||||||||||||||||||||||||||||||||
peer_id_list | Liste der zu pingenen Peers |