From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Working example needed to extend tor-service with file-like object Date: Wed, 02 Nov 2016 15:31:28 +0000 Message-ID: <87bmxxvqy7.fsf@we.make.ritual.n0.is> References: <877f8p7o8m.fsf@we.make.ritual.n0.is> <87r36ukkzg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1xWJ-0001sS-Jy for help-guix@gnu.org; Wed, 02 Nov 2016 11:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1xWI-0000Lw-JM for help-guix@gnu.org; Wed, 02 Nov 2016 11:32:07 -0400 In-Reply-To: <87r36ukkzg.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 02 Nov 2016 15:35:47 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org Hi, ludo@gnu.org (Ludovic Courtès) writes: > Hi! > > ng0 skribis: > >> Can someone give a working example for the tor-service? >> I volunteer to improve the documentation if I can get something >> out of this. > > I have something like this: Thanks, but there's a misunderstanding in terms what I needed help with I think. Our default config (torrc) is not so pleasant (well, it's intentional minimal). I have torrc values, unrelated to hidden-service, I need to add. Like, exclude certain countries etc. For this I want to understand how a file-like object would look like in the context of (services) in config.scm, so I can be sure I apply the correct thing. > (services (cons* (lsh-service #:root-login? #t > #:interfaces '("127.0.0.1")) > > (tor-hidden-service "ssh" > '((22 "127.0.0.1:22") > (80 "127.0.0.1:80"))) > …)) > > That makes a hidden service to talk to my SSH and HTTP services. > > HTH! > > Ludo’. >