🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #207274

Re: Tor Exit Policy Questions

#207274
From: Zax
Date: Thu, 13 Jul 2006 10:58
63 lines
3140 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Thu, 13 Jul 2006 00:59:45 +0100 (BST), Anonymous wrote in
Message-Id: <c020809277894bd8532b5cd065570dd1@anon.mixmaster.mixmin.net>:

> If I were to run a Tor server and want to limit its exit policy to only 
> certain hosts/ports, is it possible to use the hostname rather than the IP?
>
> e.g.
> accept my.destination.com:123
>
> rather than
>
> accept 123.4.5.678:123

Don't think so, the format is described as:
accept|reject ADDR[/MASK][:PORT]

> Also, if I wanted to limit the exit policy to only a few hostnames/ports 
> and no others, what would the proper syntax be?

You would need to replace the default exit policy rather than appending
to it.  You do this by ending the policy with a catch-all:
reject *:*
or
accept *:*

Tor accepts the first match it sees working from the top down.  The
reject *:* tells it to reject anything that isn't explicitly defined.
Because you are replacing the default policy, I would recommend
explicitly stating localhosts and private LAN's.  You should end up with
something like this:-

reject 0.0.0.0/8
reject 169.254.0.0/16
reject 127.0.0.0/8
reject 192.168.0.0/16
reject 10.0.0.0/8
reject 172.16.0.0/12
accept 123.4.5.678:128 # Accept an explicit IP on port 128
accept 100.4.5.678/29:128 # Accept a little subnet on port 128
accept *:80 # Allow web browsing (if you want to)
accept *:443 # As above
reject *:* # None shall pass

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iQEVAwUBRLYnQGoLu9HNUqmMAQq29Af/SyCijWg9ffQ2MyvwiG/IBo5rUbR+YV2m
wO2GofT3Dnd0OzB6lWpuykCAYOaOZFBRs2bzE5lmEJXsVTA+DHmev9MtIc3QTV9n
RTQNUXgENtgsH/l97LYy2Du+KOe15ivAIiG0ZPerPwdW4g+u5qdA2x/X/6FBRUK3
cX5XK96MY4L1JvuEG0wQWTxfdVxrqcV9OsjFLkwCEPW8zBvHckxpQ9A0iDY7hSXM
8mViWKggJVZgHFDmfcd4q31CzslGzycysJZhi/TdUeFDNZvlzOLIgJUX6Ah2JrFG
Mfyq4zDrfY604x1nuNaQKaGUMCrXO9NKoZZLX7TJWwiOdG2//YrETA==
=Ldx9
-----END PGP SIGNATURE-----

-- 
pub  1024D/8ED57743 2003-07-08 Bananasplit Operator
     Key fingerprint = 796F 67E0 E890 A0BB BDAE  EBB4 94A6 7A09 8ED5 7743
uid                            Admin <admin.bananasplit.info>
Technical Details
Message-ID: <e95900$u66$1@bananasplit.info>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feed.xsnews.nl!feeder.xsnews.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.wiretrip.org!news.bananasplit.info!not-for-mail
References: <c020809277894bd8532b5cd065570dd1@anon.mixmaster.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <e95900$u66$1@bananasplit.info>
Subject: Re: Tor Exit Policy Questions
Date: Thu, 13 Jul 2006 10:58:08 +0000
From: Zax <fleegle@bananasplit.info>
References: <c020809277894bd8532b5cd065570dd1@anon.mixmaster.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feed.xsnews.nl!feeder.xsnews.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news.wiretrip.org!news.bananasplit.info!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Bananasplit
Lines: 63
X-Complaints-To: abuse@bananasplit.info
NNTP-Posting-Date: Thu, 13 Jul 2006 10:58:08 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)
X-PGP-KeyID: 0x8ED57743