Scripts to facilitate configuration of a Tunlr-Clone server configured somewhat like outlined in the Tunlr-Clone project.
They are intended to be run from a remote server (e.g. a router on your home network). For an example, see the tunlr-dyndns branch of the merlin-meo-scripts project.
As root:
cd ~/
git git@github.com:twelve17/tunlr-utils.git
sudo mv tunlr-utils /opt/tunlr-utils
sudo chmod 700 /opt/tunlr-utils
sudo vi /etc/sudoers.d/tunlr-utils
Defaults!/opt/tunlr-utils/bin/tunlr-config.rb env_keep += "SSH_CLIENT SSH_ORIGINAL_COMMAND"
<user> ALL=NOPASSWD: /opt/tunlr-utils/bin/tunlr-config.rb
As a normal user:
vi ~/.ssh/authorized_keys
command="sudo /opt/tunlr-utils/bin/tunlr-config.rb",no-port-forwarding,no-x11-forwarding,no-agent-forwarding ssh-rsa AAAAB.... someone@somehost
Update the provider domains:
ssh -y -i /jffs/configs/ssh/your_key_for_tunlr_utils -l <user> <tunlr_host> sudo /opt/tunlr-utils/bin/tunlr-config.rb providers ip2location.com,pandora.com,...
Update the client IP:
ssh -y -i /jffs/configs/ssh/your_key_for_tunlr_utils -l <user> <tunlr_host> sudo /opt/tunlr-utils/bin/tunlr-config.rb client