User Tools

Site Tools


wireguard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wireguard [2026/08/02 10:14] baumiwireguard [2026/08/02 10:15] (current) baumi
Line 95: Line 95:
 </code> </code>
  
-===== Fallback systemd Service to call PreDown Script =====+===== Fallback systemd service to call PreDown script =====
 <code> <code>
-root@hostb #cat << EOF > /etc/systemd/system/wg0-shutdown-fallback.service+root@hostb # cat << EOF > /etc/systemd/system/wg0-shutdown-fallback.service
 [Unit] [Unit]
 Description=WireGuard wg0 shutdown fallback Description=WireGuard wg0 shutdown fallback
Line 114: Line 114:
  
 ExecStart=/bin/true ExecStart=/bin/true
-ExecStop=/usr/local/sbin/wg0-down.sh+ExecStop=/usr/local/sbin/wg0-PreDown.sh
  
 TimeoutStopSec=30 TimeoutStopSec=30
Line 121: Line 121:
 WantedBy=multi-user.target WantedBy=multi-user.target
 EOF EOF
-root@hostb #systemctl daemon-reload +root@hostb # systemctl daemon-reload 
-root@hostb #systemctl enable wg0-shutdown-fallback.service +root@hostb # systemctl enable wg0-shutdown-fallback.service 
-root@hostb #systemctl start wg0-shutdown-fallback.service+root@hostb # systemctl start wg0-shutdown-fallback.service
 </code> </code>
  
  
 {{tag>kb linux}} {{tag>kb linux}}
wireguard.1785658486.txt.gz · Last modified: by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki