Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread David Poulsen
hi m,
did you use the docs about Part 3:

https://community.torproject.org/relay/setup/guard/debianubuntu/updates/

3. Automatically reboot

If you want to automatically reboot add the following at the the end of the 
file /etc/apt/apt.conf.d/50unattended-upgrades:

Unattended-Upgrade::Automatic-Reboot "true";

- or do i misunderstand something?

Regards
David

Sent with ProtonMail Secure Email.

‐‐‐ Original Message ‐‐‐
On Thursday, January 23, 2020 2:19 PM, Mario Costa  
wrote:

> Hello,
>
> I started a new relay at home. I was really surprised to see it gain a Guard 
> flag in about a week since it first came online. My first relay (on a VPS) 
> became a Guard well over a month after I set it up. How can I assess what was 
> different this time?
>
> Also, I’m wondering what will happen when the dynamic IP changes. Sooner or 
> later I’ll have a power outage or restart the modem. Last time my IP changed 
> it happened overnight for no evident reason. Will this relay lose its flags? 
> Is a really with a dynamic IP address useful at all?
>
> Cheers,
>
> -m
>
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread mpan
> Is a really with a dynamic IP address useful at all?
  I’m running a node like that for over 5 years. Currently it is a guard
too. The IP address is relatively stable and the major interruptions are
due to kernel/tor upgrades or modem losing connection without the
address change. Even after those it recovers pretty fast. Unless you are
expecting to see downtime a few times a week, go ahead. The node is also
useful even if it is not having the guard flag yet.

  However, if you’re planning to run a node from your home, consider a
few things. Forget about running an exit node: you will experience a
heavy overblocking and hostility. And any node will bring some level of
harassment, because ignorance is widespread. A second thing is that from
time to time someone is trying to DoS nodes. In those 5 years I’ve seen
a few of those, so I assume the average is like once per year of
operation. Just accept the inevitable reality of running a node at home:
there will be a day or a week in which you will observe thousands
connections coming to your PC, all cores suddenly running at 100%
without no apparent reason &c. Treat it as a way to gain experience.



signature.asc
Description: OpenPGP digital signature
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] Trying to write a script to auto update tor expert bundle on Windows 10

2020-01-27 Thread David Poulsen
An bundle you want to autoupdate in Windows 10, is really a bad idea! Or are 
you such an expert, which can handle the traffic you have allowed to/from 
Windows Servers?

Regards
David

Sent with [ProtonMail](https://protonmail.com) Secure Email.

‐‐‐ Original Message ‐‐‐
On Friday, January 24, 2020 11:13 PM, Keifer Bly  wrote:

> Hello list,
>
> I am attempting to write a VBscript similar to this one at 
> https://superuser.com/questions/59465/is-it-possible-to-download-using-the-windows-command-line
>
> I am wondering, is there a url to download the tor expert bundle as well as 
> OBFS4 that does not change for newer versions? The bridge I am trying to do 
> this for is here:
>
> Thank you.
>
> [https://metrics.torprojectorg/rs.html#details/386E99371B8CD938248940B754F16AAC54B5712B](https://metrics.torproject.org/rs.html#details/386E99371B8CD938248940B754F16AAC54B5712B)
>
> --Keifer___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread John Csuti
The stable flag refers to your fingerprint being up for long lived circuits. 
Being on a dynamic up won’t change that. So in principle the stable flag means 
that the server is up and reach able for most of the time no matter what the 
address or IP may be.

Thanks,
John Csuti

> On Jan 26, 2020, at 11:37 PM, Jonathan Marquardt  wrote:
> 

___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread Mario Costa
Hey David,

I don’t have unattended upgrades enabled since it’s a server I regularly access 
for other purposes, but I don’t see how this relates to a guardian relay 
running with a dynamic IP. Maybe you replied to the wrong message? :)

-m

> Il giorno 25 gen 2020, alle ore 02:04, David Poulsen  
> ha scritto:
> 
> hi m,
> did you use the docs about Part 3:
> 
> https://community.torproject.org/relay/setup/guard/debianubuntu/updates/
> 
> 3. Automatically reboot
> 
> If you want to automatically reboot add the following at the the end of the 
> file /etc/apt/apt.conf.d/50unattended-upgrades:
> 
>Unattended-Upgrade::Automatic-Reboot "true";
> 
> - or do i misunderstand something?
> 
> Regards
> David
> 
> Sent with ProtonMail Secure Email.
> 
> ‐‐‐ Original Message ‐‐‐
> On Thursday, January 23, 2020 2:19 PM, Mario Costa  
> wrote:
> 
>> Hello,
>> 
>> I started a new relay at home. I was really surprised to see it gain a Guard 
>> flag in about a week since it first came online. My first relay (on a VPS) 
>> became a Guard well over a month after I set it up. How can I assess what 
>> was different this time?
>> 
>> Also, I’m wondering what will happen when the dynamic IP changes. Sooner or 
>> later I’ll have a power outage or restart the modem. Last time my IP changed 
>> it happened overnight for no evident reason. Will this relay lose its flags? 
>> Is a really with a dynamic IP address useful at all?
>> 
>> Cheers,
>> 
>> -m
>> 
>> tor-relays mailing list
>> tor-relays@lists.torproject.org
>> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
> 
> 
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


[tor-relays] How do I get the *current* Tor exit node IP address over the control port?

2020-01-27 Thread Mike
Hello,

How do I get the external IP address of the current Tor exit node (the
one which is in use) without using external services/websites (through
curl or otherwise) but only through the Tor control port functionality
(using bash or python3).

*I have also asked on https://stackoverflow.com/q/59923289
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread Mario Costa
Thanks Jonathan,  mpan and John.

I still don’t understand what happens when the authorities see that my IP is 
dynamic. Will they prevent the relay from becoming a guard?

I didn’t know about the DoS problem, that’s something I didn’t experience yet 
with my other, older relay. Maybe not being and exit helps.

Cheers,

-m


> Il giorno 27 gen 2020, alle ore 02:57, Jonathan Marquardt  
> ha scritto:
> 
> On Thu, Jan 23, 2020 at 03:19:52PM +0100, Mario Costa wrote:
>> Also, I’m wondering what will happen when the dynamic IP changes. Sooner or 
>> later I’ll have a power outage or restart the modem. Last time my IP changed 
>> it happened overnight for no evident reason. Will this relay lose its flags? 
>> Is a really with a dynamic IP address useful at all?
> 
> If your IP address doesn't change every day but only every now and then then 
> yes, it's definitely a useful relay.
> 
> Should the IP address change too often, your relay might loose its "guard" or 
> even "stable" flag but I recommend you just see what will happen.
> 
> I have a relay (6B185DEEB249E4BA6182ECA077530C45E98A6C5F) that's also just 
> running at home with a dynamic IP address and it still has its "Stable" flag.
> -- 
> OpenPGP Key: 47BC7DE83D462E8BED18AA861224DBD299A4F5F3
> https://www.parckwart.de/pgp_key
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


> Il giorno 27 gen 2020, alle ore 07:24, mpan  ha scritto:
> 
>> Is a really with a dynamic IP address useful at all?
>  I’m running a node like that for over 5 years. Currently it is a guard
> too. The IP address is relatively stable and the major interruptions are
> due to kernel/tor upgrades or modem losing connection without the
> address change. Even after those it recovers pretty fast. Unless you are
> expecting to see downtime a few times a week, go ahead. The node is also
> useful even if it is not having the guard flag yet.
> 
>  However, if you’re planning to run a node from your home, consider a
> few things. Forget about running an exit node: you will experience a
> heavy overblocking and hostility. And any node will bring some level of
> harassment, because ignorance is widespread. A second thing is that from
> time to time someone is trying to DoS nodes. In those 5 years I’ve seen
> a few of those, so I assume the average is like once per year of
> operation. Just accept the inevitable reality of running a node at home:
> there will be a day or a week in which you will observe thousands
> connections coming to your PC, all cores suddenly running at 100%
> without no apparent reason &c. Treat it as a way to gain experience.
> 
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays



> Il giorno 27 gen 2020, alle ore 07:46, John Csuti 
>  ha scritto:
> 
> The stable flag refers to your fingerprint being up for long lived circuits. 
> Being on a dynamic up won’t change that. So in principle the stable flag 
> means that the server is up and reach able for most of the time no matter 
> what the address or IP may be.
> 
> Thanks,
> John Csuti
> 
>> On Jan 26, 2020, at 11:37 PM, Jonathan Marquardt  wrote:
>> 
> 
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread torix
Dear Mario,

In almost 2 years I've been running a middle relay from home, I have had about 
15 ip changes.  One time they came and replaced my equipment and it was down 
about 5 hours.  It started back up with about 6 connections, but was back at a 
full 3000 in a few hours.  I've never had a guard flag, even with my current 
3+months tor uptime with the same ip address.  I only run a terabyte a month 
through it, so maybe that's too little, though it does have the fast flag.

The first 6 or 8 months before a new tor version came out, there was a lot more 
traffic than I wanted to handle, just to keep under my ISP's radar, so I had 
the config set up to turn off tor when the daily limit was reached, usually 
between 8 and 10 pm.  Then it would start up again after midnight.  I asked if 
this was still worth it, and the gurus said yes.  So I'd say that a few ip 
changes are going to be small potatoes compared to turning the relay off for 
hours every night.

So glad you are running a relay.  "A chicken in every pot, and a relay in every 
house."

--torix


Sent with ProtonMail Secure Email.

‐‐‐ Original Message ‐‐‐
On Thursday, January 23, 2020 2:19 PM, Mario Costa  
wrote:

> Hello,
>
> I started a new relay at home. I was really surprised to see it gain a Guard 
> flag in about a week since it first came online. My first relay (on a VPS) 
> became a Guard well over a month after I set it up. How can I assess what was 
> different this time?
>
> Also, I’m wondering what will happen when the dynamic IP changes. Sooner or 
> later I’ll have a power outage or restart the modem. Last time my IP changed 
> it happened overnight for no evident reason. Will this relay lose its flags? 
> Is a really with a dynamic IP address useful at all?
>
> Cheers,
>
> -m
>
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] How do I get the *current* Tor exit node IP address over the control port?

2020-01-27 Thread Matt Traudt
On 1/27/20 05:47, Mike wrote:
> Hello,
> 
> How do I get the external IP address of the current Tor exit node (the
> one which is in use) without using external services/websites (through
> curl or otherwise) but only through the Tor control port functionality
> (using bash or python3).
> 
> *I have also asked on https://stackoverflow.com/q/59923289

stem's get_circuits() function on a controller.

https://stem.torproject.org/api/control.html#stem.control.Controller.get_circuits

You'll get a list of circuit objects, which each have a path. For each
circuit that is built for the purpose of carrying your traffic to a
non-onion destination, the last item in the path is an exit node.

It's all in the stem documentation. I would familiarize yourself with
it. Also, this is a mailing list for Tor relay operators to talk about
relay operation stuff. tor-talk@ might have been a better place for this.

Note your misconception that there is only **one** circuit or **one**
exit at a time. Not true. Tor may choose to open new circuits for a wide
variety of reasons. The remainder of this email is a copy/paste response
I use on Reddit when people seem to have this misconception.

The mental model of "Tor gives you a new IP address every 10 minutes" is
very inaccurate. There's a tiny grain of truth, but there's a pile of
reasons it isn't really true.

What you're thinking of is the `MaxCircuitDirtiness` torrc option, which
indeed defaults to 10 minutes. Once you start using circuit A, Tor will
no longer attach new streams to it automatically after 10 minutes.
That's what it means more or less.

But there are so many reasons why you might have more than one circuit
for user traffic, each with a different exit node (or none at all, for
onion service circuits).

- Each unique onion service you visit needs its own circuit.
- Maybe you have some very long lived connections (SSH, IRC, etc.) that
are still hanging around on older circuits while your active browsing is
using a newer one.
- Maybe for whatever reason, Tor doesn't think a connection will work
over the "current" circuit (e.g. the exit's `ExitPolicy` or something
dumb and impossible to explain about Tor's internal logic). If this is
the case, it isn't afraid to build a new one.

And that's just talking about Tor. What about Tor Browser?

Tor Browser intelligently separates both the state you receive from
various websites and the connections you make to websites.

If I have https://facebook.com open in tab 1, 2, and 3, all its state
*regardless of the domain it comes from* goes into a single bucket and
all the connections use one (or more) circuits reserved for this
bucket's traffic. If I have https://amazon.com open in tabs 4, 5, and 6,
all its state goes into a different single bucket and all the
connections use a different circuit(s) for their traffic.

So just by browsing multiple websites at the same time, I have more than
one circuit open, and therefore more than one IP.

-- 
Matt
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread John Csuti
That is exactly what will happen you will become a normal middle relay

Thanks,
John Csuti
‭(216) 236-3309‬
https://www.coolcomputers.info/

> On Jan 27, 2020, at 8:18 AM, Mario Costa  wrote:
> 
> Thanks Jonathan,  mpan and John.
> 
> I still don’t understand what happens when the authorities see that my IP is 
> dynamic. Will they prevent the relay from becoming a guard?
> 
> I didn’t know about the DoS problem, that’s something I didn’t experience yet 
> with my other, older relay. Maybe not being and exit helps.
> 
> Cheers,
> 
> -m
> 
> 
>> Il giorno 27 gen 2020, alle ore 02:57, Jonathan Marquardt 
>>  ha scritto:
>> 
>>> On Thu, Jan 23, 2020 at 03:19:52PM +0100, Mario Costa wrote:
>>> Also, I’m wondering what will happen when the dynamic IP changes. Sooner or 
>>> later I’ll have a power outage or restart the modem. Last time my IP 
>>> changed 
>>> it happened overnight for no evident reason. Will this relay lose its 
>>> flags? 
>>> Is a really with a dynamic IP address useful at all?
>> 
>> If your IP address doesn't change every day but only every now and then then 
>> yes, it's definitely a useful relay.
>> 
>> Should the IP address change too often, your relay might loose its "guard" 
>> or 
>> even "stable" flag but I recommend you just see what will happen.
>> 
>> I have a relay (6B185DEEB249E4BA6182ECA077530C45E98A6C5F) that's also just 
>> running at home with a dynamic IP address and it still has its "Stable" flag.
>> -- 
>> OpenPGP Key: 47BC7DE83D462E8BED18AA861224DBD299A4F5F3
>>https://www.parckwart.de/pgp_key
>> ___
>> tor-relays mailing list
>> tor-relays@lists.torproject.org
>> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
> 
> 
>>> Il giorno 27 gen 2020, alle ore 07:24, mpan  ha 
>>> scritto:
>>> 
>>> Is a really with a dynamic IP address useful at all?
>> I’m running a node like that for over 5 years. Currently it is a guard
>> too. The IP address is relatively stable and the major interruptions are
>> due to kernel/tor upgrades or modem losing connection without the
>> address change. Even after those it recovers pretty fast. Unless you are
>> expecting to see downtime a few times a week, go ahead. The node is also
>> useful even if it is not having the guard flag yet.
>> 
>> However, if you’re planning to run a node from your home, consider a
>> few things. Forget about running an exit node: you will experience a
>> heavy overblocking and hostility. And any node will bring some level of
>> harassment, because ignorance is widespread. A second thing is that from
>> time to time someone is trying to DoS nodes. In those 5 years I’ve seen
>> a few of those, so I assume the average is like once per year of
>> operation. Just accept the inevitable reality of running a node at home:
>> there will be a day or a week in which you will observe thousands
>> connections coming to your PC, all cores suddenly running at 100%
>> without no apparent reason &c. Treat it as a way to gain experience.
>> 
>> ___
>> tor-relays mailing list
>> tor-relays@lists.torproject.org
>> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
> 
> 
> 
>> Il giorno 27 gen 2020, alle ore 07:46, John Csuti 
>>  ha scritto:
>> 
>> The stable flag refers to your fingerprint being up for long lived circuits. 
>> Being on a dynamic up won’t change that. So in principle the stable flag 
>> means that the server is up and reach able for most of the time no matter 
>> what the address or IP may be.
>> 
>> Thanks,
>> John Csuti
>> 
 On Jan 26, 2020, at 11:37 PM, Jonathan Marquardt  wrote:
>>> 
>> 
>> ___
>> tor-relays mailing list
>> tor-relays@lists.torproject.org
>> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] New relay on dynamic IP address

2020-01-27 Thread Mario Costa
Torix,

This is really useful. I forced an IP change and the relay lost the guardian 
flag. I guess that now the authorities know that it’s running on a dynamic IP 
connection and won’t assign a guard flag anymore. I was really surprised when 
the relay became a guard in about a week of uptime.

By the way, I didn’t set a traffic limit. Hope this doesn’t upset my ISP, but 
my little RPi is happily talking with almost 4000 peers :)

-m

> Il giorno 27 gen 2020, alle ore 14:41, to...@protonmail.com ha scritto:
> 
> Dear Mario,
> 
> In almost 2 years I've been running a middle relay from home, I have had 
> about 15 ip changes.  One time they came and replaced my equipment and it was 
> down about 5 hours.  It started back up with about 6 connections, but was 
> back at a full 3000 in a few hours.  I've never had a guard flag, even with 
> my current 3+months tor uptime with the same ip address.  I only run a 
> terabyte a month through it, so maybe that's too little, though it does have 
> the fast flag.
> 
> The first 6 or 8 months before a new tor version came out, there was a lot 
> more traffic than I wanted to handle, just to keep under my ISP's radar, so I 
> had the config set up to turn off tor when the daily limit was reached, 
> usually between 8 and 10 pm.  Then it would start up again after midnight.  I 
> asked if this was still worth it, and the gurus said yes.  So I'd say that a 
> few ip changes are going to be small potatoes compared to turning the relay 
> off for hours every night.
> 
> So glad you are running a relay.  "A chicken in every pot, and a relay in 
> every house."
> 
> --torix
> 
> 
> Sent with ProtonMail Secure Email.
> 
> ‐‐‐ Original Message ‐‐‐
> On Thursday, January 23, 2020 2:19 PM, Mario Costa  
> wrote:
> 
>> Hello,
>> 
>> I started a new relay at home. I was really surprised to see it gain a Guard 
>> flag in about a week since it first came online. My first relay (on a VPS) 
>> became a Guard well over a month after I set it up. How can I assess what 
>> was different this time?
>> 
>> Also, I’m wondering what will happen when the dynamic IP changes. Sooner or 
>> later I’ll have a power outage or restart the modem. Last time my IP changed 
>> it happened overnight for no evident reason. Will this relay lose its flags? 
>> Is a really with a dynamic IP address useful at all?
>> 
>> Cheers,
>> 
>> -m
>> 
>> tor-relays mailing list
>> tor-relays@lists.torproject.org
>> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
> 
> 
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] Trying to write a script to auto update tor expert bundle on Windows 10

2020-01-27 Thread Keifer Bly
I am trying to find a way to cleanly keep tor up to date, thank you.

On Mon, Jan 27, 2020 at 12:45 AM David Poulsen 
wrote:

> An bundle you want to autoupdate in Windows 10, is really a bad idea! Or
> are you such an expert, which can handle the traffic you have allowed
> to/from Windows Servers?
>
> Regards
> David
>
> Sent with ProtonMail  Secure Email.
>
> ‐‐‐ Original Message ‐‐‐
> On Friday, January 24, 2020 11:13 PM, Keifer Bly 
> wrote:
>
> Hello list,
>
>
>
>
>
> I am attempting to write a VBscript similar to this one at
> https://superuser.com/questions/59465/is-it-possible-to-download-using-the-windows-command-line
>
>
>
> I am wondering, is there a url to download the tor expert bundle as well
> as OBFS4 that does not change for newer versions? The bridge I am trying to
> do this for is here:
>
>
>
> Thank you.
>
>
>
>
>
>
>
>
> https://metrics.torprojectorg/rs.html#details/386E99371B8CD938248940B754F16AAC54B5712B
> 
>
>
>
>
>
>
>
>
>
> --Keifer
>
>
>
>
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
>
-- 
--Keifer
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] How do I get the *current* Tor exit node IP address over the control port?

2020-01-27 Thread Mike
Hi Matt,

On Mon, 27 Jan 2020 08:56:32 -0500 Matt Traudt wrote:

> stem's get_circuits() function on a controller.
> 
> https://stem.torproject.org/api/control.html#stem.control.Controller.get_circuits
> 
> You'll get a list of circuit objects, which each have a path. For each
> circuit that is built for the purpose of carrying your traffic to a
> non-onion destination, the last item in the path is an exit node.

Thanks for the reply.

The reference to get_circuits seems to imply the first answer linked in
my S.O. question - a short python code which lists all circuits:

https://stackoverflow.com/a/17130011

To get the IP address of the current Tor exit node (the one which would
be used if I attempt a connection to a non-onion destination) I use one
of these:

(1) torsocks curl https://ipinfo.io/ip
(2) torsocks dig @resolver1.opendns.com ANY myip.opendns.com +short

Both these commands give the same IP address but it is the same as the
last one listed by python script given above (which uses get_curcuits).
Am I doing something wrong?

> It's all in the stem documentation. I would familiarize yourself with
> it.

I am trying to but as I am still new to Python, so it is still beyond
my level.

> Also, this is a mailing list for Tor relay operators to talk about
> relay operation stuff. tor-talk@ might have been a better place for this.

It is the first time I use these lists, so please forgive me. Should I
stop posting here instantly and re-post the original question to
tor-talk?

> Note your misconception that there is only **one** circuit or **one**
> exit at a time. Not true. Tor may choose to open new circuits for a wide
> variety of reasons. The remainder of this email is a copy/paste response
> I use on Reddit when people seem to have this misconception.

Perhaps if I should have clarified my global goal:

I want to be able to receive a new **different** IP address for
different connections which a bash script makes. Suppose (simplified):

--
#!/bin/bash

torsocks curl http://site1.com
get-new-tor-ip
torsocks curl http://site2.com
get-new-tor-ip
...
--

Currently I get-new-tor-ip like this (simplified):

--
oldip=$(torsocks dig @resolver1.opendns.com ANY myip.opendns.com +short)
newip="${oldip}"
while [ "${newip}" == "${oldip}" ]
do
newip= ... # As described in 
http://vt5hknv6sblkgf22.onion/faq.html#how-do-i-request-a-new-identity-from-tor
done
--

I am willing to avoid the call to an external service.

I understand the rest of your explanations but I am afraid I am not
clever enough to find the answer to my goal in them.

Can you help?

Again: if it is inappropriate to ask here, I can repeat the question in
tor-talks. Just let me know please. Thanks.
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays