Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2006 16:20:33 -0500 (CDT)
From:      "Doug Poland" <doug@polands.org>
To:        questions@freebsd.org
Subject:   Need help using ssh/netcat to proxy udp
Message-ID:  <55147.69.129.174.18.1154553633.squirrel@email.polands.org>

next in thread | raw e-mail | index | archive | help
Hello,

I'm trying to use ssh and netcat to forward dns queries from a
6.1-STABLE workstation to a remote 6.1-STABLE DNS server.  I was
inspired by the information supplied at:

     http://zarb.org/~gc/html/udp-in-ssh-tunneling.html

The methodology is elegant and simple, but I'm unable to get it
working.  Here's what I've done:

local#  ssh -L 6667:localhost:6667 server.foo.com

server# rndc trace
server# rndc querylog

server# mkfifo /tmp/fifo
server# nc -l -p 6667 < /tmp/fifo | nc -u 127.0.0.1 53 > /tmp/fifo

local# mkfifo /tmp/fifo
local# nc -l -u -p 53 < /tmp/fifo | nc localhost 6667 > /tmp/fifo

local# echo "nameserver 127.0.0.1" > /etc/resolv.conf
local# dig www.freebsd.org

; <<>> DiG 9.3.2 <<>> www.freebsd.org
;; global options:  printcmd
;; connection timed out; no servers could be reached


I see nothing in the server's named.run file and dig reports the
server wasn't reached.  Also, I'm unable to ctrl-C out of either nc
command local or remote.

What am I doing wrong?


--
Regards,
Doug




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55147.69.129.174.18.1154553633.squirrel>