From owner-freebsd-questions@FreeBSD.ORG Wed Aug 2 21:20:38 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4249816A4DD for ; Wed, 2 Aug 2006 21:20:38 +0000 (UTC) (envelope-from doug@polands.org) Received: from corinth.polands.org (CPE-72-129-222-120.new.res.rr.com [72.129.222.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4140B43D5A for ; Wed, 2 Aug 2006 21:20:34 +0000 (GMT) (envelope-from doug@polands.org) Received: from email.polands.org (ammon.polands.org [172.16.1.7]) by corinth.polands.org (8.13.6/8.13.6) with ESMTP id k72LKXbK012095 for ; Wed, 2 Aug 2006 16:20:33 -0500 (CDT) (envelope-from doug@polands.org) Received: from 69.129.174.18 (proxying for 192.168.1.6) (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Wed, 2 Aug 2006 16:20:33 -0500 (CDT) Message-ID: <55147.69.129.174.18.1154553633.squirrel@email.polands.org> Date: Wed, 2 Aug 2006 16:20:33 -0500 (CDT) From: "Doug Poland" To: questions@freebsd.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV 0.87/1632/Wed Aug 2 09:46:05 2006 on corinth.polands.org X-Virus-Status: Clean Cc: Subject: Need help using ssh/netcat to proxy udp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 21:20:38 -0000 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