Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #Script to modify the transmission settings to bind to the VPN IP
- #HTPCGuides.com
- #enter the /etc/openvpn directory
- cd /etc/openvpn
- #stop the transmission-daemon
- sudo service transmission-daemon stop
- #Plug the VPN IP into transmission
- sed 's/.*"bind-address-ipv4":.*/ "bind-address-ipv4": '$ifconfig_remote',/' /etc/transmission-daemon/settings.json
- #add PIA DNS servers
- echo "nameserver 209.222.18.222" | sudo tee -a /etc/resolv.conf
- echo "nameserver 209.222.18.218" | sudo tee -a /etc/resolv.conf
- # add routing to retain remote access
- sudo ip rule add from 192.168.1.209 table 128
- sudo ip route add table 128 to 192.168.1.0/24 dev eth0
- sudo ip route add table 128 default via 192.168.1.1
- #start the transmission.daemon
- sudo service transmission-daemon start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement