unca_NAS
Explorer
- Joined
- Mar 25, 2012
- Messages
- 87
Been using jailed vpn+transmission for some time now, mostly happy with my current setup.
However lately many popular trackers have started blocking certain vpn-servers completely > you cannot connect to the tracker - period. Of course you can still download stuff but with much slower speeds. Disconnecting the vpn and reconnecting to another server sometimes helps, but this is 'dull manual labor'. And when finding a server that is welcome to most of the trackers, you slowly but eventually get banned, usually within 24 hours.
I've been planning to write (with my very limited FreeNAS scripting skills, I must add) a cron-jobbed script that is to do the following:.
- when ran, jexec the jail
- initiate a make a connection to - say - at least three or four popular trackers, one at a time - via the vpn-tube
- successfull connection adds value of check-out variable with 1
- if after the check-cycle the check-value is three or four, assume that everything is hunky-dory, leave openvpn and trasmission running and exit
- if value is two or less, kill transmission-daemon, kill openvpn, start openvpn connection to a different server (start with different config-file)
- verify that both openvpn and transmission are running (vpn-interface and daemon exist)
- initiate a connection etc
Cron is to run the service again in 30 minutes.
I "might" get this done by myself, but some problems I havent been able to solve
> how the current JID (jail ID) can be extracted to be used with 'jexec N bash /to/stuff'
> whats the best way to verify that udp://im.a.tracker:1234 lets your bt-client to connect (pinging and telnetting have I tried, with no success)
I know, way over my head here, but hey, if you dont try, you never learn anything :)
However lately many popular trackers have started blocking certain vpn-servers completely > you cannot connect to the tracker - period. Of course you can still download stuff but with much slower speeds. Disconnecting the vpn and reconnecting to another server sometimes helps, but this is 'dull manual labor'. And when finding a server that is welcome to most of the trackers, you slowly but eventually get banned, usually within 24 hours.
I've been planning to write (with my very limited FreeNAS scripting skills, I must add) a cron-jobbed script that is to do the following:.
- when ran, jexec the jail
- initiate a make a connection to - say - at least three or four popular trackers, one at a time - via the vpn-tube
- successfull connection adds value of check-out variable with 1
- if after the check-cycle the check-value is three or four, assume that everything is hunky-dory, leave openvpn and trasmission running and exit
- if value is two or less, kill transmission-daemon, kill openvpn, start openvpn connection to a different server (start with different config-file)
- verify that both openvpn and transmission are running (vpn-interface and daemon exist)
- initiate a connection etc
Cron is to run the service again in 30 minutes.
I "might" get this done by myself, but some problems I havent been able to solve
> how the current JID (jail ID) can be extracted to be used with 'jexec N bash /to/stuff'
> whats the best way to verify that udp://im.a.tracker:1234 lets your bt-client to connect (pinging and telnetting have I tried, with no success)
I know, way over my head here, but hey, if you dont try, you never learn anything :)