wg show
on server after setting up interface.
This commit is contained in:
parent
956304a78e
commit
79a2d1124b
@ -129,6 +129,9 @@ exec_sudo ip link set mtu 1420 up dev "${INTERFACE_NAME}"
|
||||
exec_sudo iptables -A FORWARD -i "${INTERFACE_NAME}" -j ACCEPT
|
||||
exec_sudo iptables -A FORWARD -o "${INTERFACE_NAME}" -j ACCEPT
|
||||
exec_sudo iptables -t nat -A POSTROUTING -s "${CLIENT_ADDR}" -o "\${DEFAULT_IFACE}" -j MASQUERADE
|
||||
|
||||
echo
|
||||
sudo wg show "$INTERFACE_NAME"
|
||||
END
|
||||
|
||||
if [ "$?" -ne 0 ]; then
|
||||
@ -159,7 +162,7 @@ sleep 1
|
||||
echo
|
||||
sudo wg show "${INTERFACE_NAME}"
|
||||
echo
|
||||
echo "Connected! Interrupt or press Enter to disconnect and stop server."
|
||||
echo "Connected! SIGINT or Enter to disconnect and stop server."
|
||||
|
||||
# clear sensitive variables from memory
|
||||
PSK=
|
||||
|
Loading…
Reference in New Issue
Block a user