systemctl halt
может помочь. Из руководства:
halt
Shut down and halt the system. This is mostly equivalent to
systemctl start halt.target --job-mode=replace-irreversibly
--no-block, but also prints a wall message to all users. This
command is asynchronous; it will return after the halt operation is
enqueued, without waiting for it to complete. Note that this
operation will simply halt the OS kernel after shutting down,
leaving the hardware powered on. Use systemctl poweroff for
powering off the system (see below).
Вам нужно правило брандмауэра, чтобы скрыть машину S за общедоступным IP-адресом вашей машины M:
iptables -t nat -A POSTROUTING -o ppp+ -j MASQUERADE
Если это работает для вас, я добавлю несколько инструкций, чтобы это загружалось при загрузке в системе Debian.
Причина, по которой вам это не нужно на вашем интерфейсе wlan0, заключается в том, что беспроводной маршрутизатор уже сделает это за вас.