diff --git a/bin/ben b/bin/ben new file mode 100755 index 0000000..f54dea4 --- /dev/null +++ b/bin/ben @@ -0,0 +1,9 @@ +#!/bin/sh +ITF=usb0 +if [ "$1" = -i ]; then + ITF=$2 + shift 2 +fi +# ben is 192.168.254.101 +echo 1 >/proc/sys/net/ipv4/ip_forward +ifconfig ${ITF_BEN:-$ITF} 192.168.254.100 up && ssh 192.168.254.101 "$@" diff --git a/bin/jlime b/bin/jlime new file mode 100755 index 0000000..e6a9f93 --- /dev/null +++ b/bin/jlime @@ -0,0 +1,9 @@ +#!/bin/sh +ITF=usb0 +if [ "$1" = -i ]; then + ITF=$2 + shift 2 +fi +# ben is 192.168.1.202 +echo 1 >/proc/sys/net/ipv4/ip_forward +ifconfig ${ITF_JLIME:-$ITF} 192.168.1.200 up && ssh 192.168.1.202 "$@"