Advertisement
Guest User

routeup.sh

a guest
Oct 16th, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/bin/sh
  2. #sets script dir as working dir
  3. cd "$(dirname "$0")"
  4. #gives the ip we bind transmission to the wireguard tunnel device so it works.
  5. ip addr add 192.168.168.168 dev oet1
  6.  
  7. #killall transmissiond
  8. #sleep 2
  9. #unused transmission load command for killswitch
  10. #transmissiond --config-dir /opt/transmission/config
  11. #sleep 2
  12.  
  13. #runs script to bind port but also setup firewall for port wireguard wipes the firewall rules when it restarts blocking the port.
  14. ./portforwardbind.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement