1# $OpenBSD: dynamic-forward.sh,v 1.2 2003/07/03 08:21:46 markus Exp $
| 1# $OpenBSD: dynamic-forward.sh,v 1.3 2004/02/28 12:16:57 dtucker Exp $
|
2# Placed in the Public Domain. 3 4tid="dynamic forwarding" 5 6PORT=4242 7FWDPORT=4243 8DATA=/bin/ls${EXEEXT} 9
| 2# Placed in the Public Domain. 3 4tid="dynamic forwarding" 5 6PORT=4242 7FWDPORT=4243 8DATA=/bin/ls${EXEEXT} 9
|
10if have_prog nc && nc -h 2>&1 | grep "x proxy address" >/dev/null; then
| 10if have_prog nc && nc -h 2>&1 | grep "proxy address" >/dev/null; then
|
11 proxycmd="nc -x 127.0.0.1:$FWDPORT -X" 12elif have_prog connect; then 13 proxycmd="connect -S 127.0.0.1:$FWDPORT -" 14else 15 echo "skipped (no suitable ProxyCommand found)" 16 exit 0 17fi 18trace "will use ProxyCommand $proxycmd"
--- 29 unchanged lines hidden --- | 11 proxycmd="nc -x 127.0.0.1:$FWDPORT -X" 12elif have_prog connect; then 13 proxycmd="connect -S 127.0.0.1:$FWDPORT -" 14else 15 echo "skipped (no suitable ProxyCommand found)" 16 exit 0 17fi 18trace "will use ProxyCommand $proxycmd"
--- 29 unchanged lines hidden --- |