This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
unix:networking:openwrt_routing [2014/04/30 05:29] ben [Port-forward Script] |
unix:networking:openwrt_routing [2014/08/14 06:34] ben [Transmission Update Script] |
||
---|---|---|---|
Line 51: | Line 51: | ||
down /opt/etc/scripts/vpnroutedown.sh | down /opt/etc/scripts/vpnroutedown.sh | ||
</code> | </code> | ||
+ | |||
+ | Two files are necessary: | ||
Contents of pia.txt is VPN username on first line, password on second line. | Contents of pia.txt is VPN username on first line, password on second line. | ||
+ | Contents of pia_client_id is a random string: ''head -n 100 /dev/urandom | md5 > pia_client_id'' | ||
===== VPN Scripts ===== | ===== VPN Scripts ===== | ||
Line 157: | Line 160: | ||
</code> | </code> | ||
+ | <note important>Fix needed: There's actually a logical flaw here- if the router goes down then the new port won't match and the sed match there will fail, not updating the port.</note> | ||
===== Scheduled port forward update ===== | ===== Scheduled port forward update ===== | ||