Skip to content

Utilities to facilitate configuration on a Tunlr-Clone server.

Notifications You must be signed in to change notification settings

twelve17/tunlr-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tunlr-utils

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.

Installation

Download 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

Configure Sudoers

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

Configure Command-Only SSH Key

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 

Run From Client

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

About

Utilities to facilitate configuration on a Tunlr-Clone server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published