mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-28 17:51:22 +00:00
fobfob12
This commit is contained in:
parent
d603430f88
commit
120091b2c4
@ -123,14 +123,10 @@ Name | Private (Peer) | Public
|
|||||||
cmd_net_init_print_info()
|
cmd_net_init_print_info()
|
||||||
{
|
{
|
||||||
echo -en "\
|
echo -en "\
|
||||||
Port : ${Y}$WG_PORT${N}
|
Port : ${Y}$WG_PORT${N}
|
||||||
Portsecret: ${Y}$PORTSECRET${N}
|
Portsecret: ${Y}$PORTSECRET${N}
|
||||||
Private : ${Y}$WG_PRIVATE${N}
|
Private : ${Y}$WG_PRIVATE${N}
|
||||||
Name : ${Y}$WT_NAME${N}
|
Name : ${Y}$WT_NAME${N}
|
||||||
Bring up the Interface:
|
|
||||||
${C}curl rpc/net/up -d name=${WT_NAME}${N}
|
|
||||||
Show status:
|
|
||||||
${C}curl rpc/net/show${N}
|
|
||||||
|
|
||||||
To connect with ${M}Wiretap${N} use this command on the remote host:
|
To connect with ${M}Wiretap${N} use this command on the remote host:
|
||||||
${C}wiretap serve --private ${WT_PRIVATE} \\
|
${C}wiretap serve --private ${WT_PRIVATE} \\
|
||||||
@ -147,6 +143,8 @@ PublicKey = ${WG_PUBLIC}
|
|||||||
AllowedIPs = 0.0.0.0/0, ::/0
|
AllowedIPs = 0.0.0.0/0, ::/0
|
||||||
EndPoint = ${SF_FQDN}:${WG_PORT}
|
EndPoint = ${SF_FQDN}:${WG_PORT}
|
||||||
PersistentKeepalive = 25${N}
|
PersistentKeepalive = 25${N}
|
||||||
|
|
||||||
|
Thereafter execute ${C}curl rpc/net/up -d name=${WT_NAME}${N} to exit via this peer.
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user