$ cat Makefile
XTERM=/usr/bin/xterm
SSH=/usr/bin/ssh
GEOMETRY=169x39-0-0
IPv6_LOCALHOST=::1
PROXY_PORT=1080
SSH_PORT?=22
IPv4_PROXY=127.128.129.130
IPv6_PROXY=${IPv6_LOCALHOST}
IPv4_REMOTE?=127.126.125.124
IPv6_REMOTE=${IPv6_LOCALHOST}
IPv4_BIND=127.127.127.127
IPv6_BIND=${IPv6_LOCALHOST}
proxy:
${XTERM} -geometry ${GEOMETRY} -iconic -T "IPv4 proxy" \
-e ${SSH} -v -x -n -N -b $(IPv4_BIND) -p ${SSH_PORT} \
-D ${IPv4_PROXY}:${PROXY_PORT} ${IPv4_REMOTE} &
${XTERM} -geometry ${GEOMETRY} -iconic -T "IPv6 proxy" \
-e ${SSH} -v -x -n -N -b $(IPv6_BIND) -p ${SSH_PORT} \
-D [${IPv6_PROXY}]:${PROXY_PORT} ${IPv6_REMOTE} &
$ make proxy
XTERM=/usr/bin/xterm
SSH=/usr/bin/ssh
GEOMETRY=169x39-0-0
IPv6_LOCALHOST=::1
PROXY_PORT=1080
SSH_PORT?=22
IPv4_PROXY=127.128.129.130
IPv6_PROXY=${IPv6_LOCALHOST}
IPv4_REMOTE?=127.126.125.124
IPv6_REMOTE=${IPv6_LOCALHOST}
IPv4_BIND=127.127.127.127
IPv6_BIND=${IPv6_LOCALHOST}
proxy:
${XTERM} -geometry ${GEOMETRY} -iconic -T "IPv4 proxy" \
-e ${SSH} -v -x -n -N -b $(IPv4_BIND) -p ${SSH_PORT} \
-D ${IPv4_PROXY}:${PROXY_PORT} ${IPv4_REMOTE} &
${XTERM} -geometry ${GEOMETRY} -iconic -T "IPv6 proxy" \
-e ${SSH} -v -x -n -N -b $(IPv6_BIND) -p ${SSH_PORT} \
-D [${IPv6_PROXY}]:${PROXY_PORT} ${IPv6_REMOTE} &
$ make proxy
--
= ^ . ^ =
No comments:
Post a Comment