diff --git a/vpnerator.sh b/vpnerator.sh index 25371ab..942ce1c 100755 --- a/vpnerator.sh +++ b/vpnerator.sh @@ -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=