Delivery-Date: Mon, 20 Oct 2014 11:52:35 -0400
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	RP_MATCHES_RCVD autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id A1A4C1E0864;
	Mon, 20 Oct 2014 11:52:32 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 8549230EE7;
	Mon, 20 Oct 2014 15:52:27 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 4F92C308F8
 for <tor-talk@lists.torproject.org>; Mon, 20 Oct 2014 15:52:24 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at eugeni.torproject.org
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 4UQxjzdlrPu7 for <tor-talk@lists.torproject.org>;
 Mon, 20 Oct 2014 15:52:24 +0000 (UTC)
Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com
 [209.85.223.177])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id 32C4220911
 for <tor-talk@lists.torproject.org>; Mon, 20 Oct 2014 15:52:21 +0000 (UTC)
Received: by mail-ie0-f177.google.com with SMTP id rd18so4754425iec.8
 for <tor-talk@lists.torproject.org>; Mon, 20 Oct 2014 08:52:18 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:date:message-id:subject:from:to
 :content-type;
 bh=itDzrFDZJY5jpOkwHwU3FQK8D+QWhYVrnGoHf9J84EA=;
 b=ZDJF8AaVIkTxYlO1tyNMxhqVAevEB5czVLvZ4I19g2m3x9efkUMaPs9oFYT8fPud27
 h91/1xxtr9EVgIuTbhCU7rMdW1+82h5VE+IZoLQ2nIj/PyDw5epXAjAIaAZB0D50Dul7
 qmt7U6piGDZssw6sH9rR4q9b0sdioG7YZsGfRwwfw+8YtacOh4iQqD0uAXK7+Fr7nZGQ
 Z4EPd1mLsA4tuYlg2QCjPK7PTCT/lx2vN7tX8o1tuZ7kOIa1ReJoEnPgOY2IMmXf0Jew
 MjdxNy20ra6FUFFfmq3dubFSVf2S2r2kvNRbwY53NUwIKYCI+xcF2q39aMX5vDh7Uz9n
 m/Zg==
X-Gm-Message-State: ALoCoQmI95CdVhw00DKrBj5rtQ9LJatiHeAsiSRkhRCOFLfQKP3Be5/kBBJfcRmjAhlMZMVihE6A
MIME-Version: 1.0
X-Received: by 10.43.140.198 with SMTP id jb6mr27495514icc.34.1413820338761;
 Mon, 20 Oct 2014 08:52:18 -0700 (PDT)
Received: by 10.64.246.75 with HTTP; Mon, 20 Oct 2014 08:52:18 -0700 (PDT)
Date: Mon, 20 Oct 2014 08:52:18 -0700
Message-ID: <CADoG9xnqVT6A5aGrkamNhoz+=qLTVk2jS10KU2Z0S=_r0S8osg@mail.gmail.com>
From: Robert Watson <robert@gillecaluim.com>
To: tor-talk@lists.torproject.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [tor-talk] iptables rules
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

could someone please clarify a question I have about configuring tor &
iptables.  I'm using a dual nic centos server with squid/privoxy/tor behind
a ISP router.  My internet nic (eth0) gets a dhcp address so I wasn't sure
how to set SocksBindAddress to the eth0 address?  Is there a
SocksBindAdapter setting available?
My tor.conf:
*SocksPort 9150  #privoxy socks5 port*

*SocksBindAddress 127.0.0.1*
*SocksPolicy accept 127.0.0.1*
*SocksPolicy reject **
*AllowUnverifiedNodes middle,rendezvous*
*Log notice syslog*
*RunAsDaemon 1*
*User tor*
*CircuitBuildTimeout 30*
*NumEntryGuards 6*
*KeepalivePeriod 60*
*NewCircuitPeriod 15*
*DataDirectory /var/lib/tor*
*PidFile /var/run/tor/tor.pid*
*Log notice file /var/log/tor/tor.log*

I was thinking I would have to forward eth0:9050 to lo:9050 with these
rules:
*-A FORWARD -i lo -o eth0 -p tcp --dport 9050  -j ACCEPT*
*-A FORWARD -i eth0 -o lo -m state --state ESTABLISHED,RELATED -j ACCEPT*

Any advice would be appreciated.
Robert
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

