logs archiveIRC Archive / Oftc / #tor / 2010 / March / 11 / 1
timo
well, i agree with that too but the default for my debian install made, as far as i know, the default permissions for /var/lib/tor 700 and /var/lib/tor/control_auth_cookie 600 which doesn't allow cookie reads
i know how to fix permissions, so perhaps i shouldn't really have said it's my problem per se but it looks like a problem nonetheless
well, scratch that... adjusting permission of /var/lib/tor and /var/lib/tor/control* to allow debian-tor read still doesn't work... i'm using tork and it's directed to read /var/lib/tor and it doesn't see the cookie
and my user is in fact part of the debian-tor group
i've had to resort to copying the cookie as root over inside the user's homedirectory after each boot
nsa
or: erinn committed revision 21914 (/torbrowser/trunk/src/RelativeLink): don't allow tbb to start if relevant processes are already running, style/cruft cleanups
or: erinn committed revision 21915 (/torbrowser/trunk/build-scripts): fix permissions on tor's data directory to make vidalia happy again
or: erinn committed revision 21916 (/torbrowser/trunk/build-scripts): oops, path problem
arma
timo: CookieAuthFileGroupReadable 0|1|Groupname
from the man page
but you're right, if your datadir is 700, that could pose a problem.
timo
:-P ok... you got it there's more to it than normal permissions it seems... something internal to the cookie
anybody else running debian? confirm the permissions
if you'd like
arma
timo: as for running --hash-password multiple times, that's because tor salts it. i believe that the raw password should match every output of --hash-password.
timo
tor --hash-password timo gives 16:FFA083FD6F153BDE6068A2E1114D0754E82F81A19907B3381BC28689E9 and then next 16:C169DA4F592B0607608D957468142CC23EC82CF0326703B71449CFF997
tor changes the salt each time?
arma
yes. that's what a salt is.
timo
well, i understood a salt as just a string of text that is appended to another string that is variable, in this case the input password
if that's the case, i'd need the salt so used for hashing so i can append it to my password
arma
ah. in my world a salt is used to slow down dictionary attacks
so if there's only 1 kind of salt, it won't slow them down much
no, your password doesn't need to say what the salt was
tor gets the password, looks at the hashed version it has to learn what salt to use, and then compares.
         

timo
ok, so you're saying all i need to do to use the password option is hash my password, put the hash into torrc and the password into tork/vidalia and live happily ever after?
arma
yes.
works for me in vidalia. :)
timo
it doesn't work for me... tor likes to kill itself randomly after a reboot with that setting
arma
kill itself randomly ?
SwissTorExit
hi arma, to have info log level, it is "Log info" ? wjile Log notice info" have crashed
arma
swisstorexit: i wouldn't call it a crash so much as giving you an error and exiting :)
SwissTorExit
or what i must write to have this level info ?
timo
arma: the logs say that it catches a TERM signal... i don't send one, the controllers (i'm splitting btwn vidalia and tork) shouldn't be sending one... could possibly be the controllers saying the password isn't matching, let's kill tor? not sure
arma
write where? in torrc? or on the command line
timo: sounds like the controllers are sending a term signal.
timo: try it just with vidalia for a while, and see if it still happens.
timo
will do
thanks arma! time to go and play some more
SwissTorExit
sorry i was disconnected, yes in torrc
that's what mike told me : if it happens again, info level logs would be nice
but i know that not the info level of voidalia he want, so i would like set it right in my torrc
timo
i was just using tork and it apparently killed tor, log says "Catching signal TERM, exiting cleanly." also there's a lot of "Tor 0.2.1.23 opening log file." for 2 minutes earlier
that is, for 2 minutes, earlier on in the log
(not using a controller now, we'll see if i lose connection again)
arma
swisstorexit: https://wiki.torproject.org/noreply/TheOnionRouter/TorFAQ#Logs
timo: tork is nowhere near as maintained as vidalia is.
timo
good to know
SwissTorExit
thanks very sorry, i was in manual :/
timo
in general a lot of problems can be solved by reading manuals, the problem is knowing exactly where to look... we've all had those problems :-)
SwissTorExit
well that's same as vidalia level but i can't run as info all the time to see when i will have the warn mike will see, it will enourmous :/
thanks anyway, so notice still the better i think
arma
swisstorexit: what is the bug? is it an assert or crash?
if it is, you could run with info going to stdout ("your screen"), and then you'd have the last few hundred lines when it dies
SwissTorExit
it happens if my ISP have problem and i lost my bandwitch: Generated a synthetic timeout LESS than the current timeout: 35390ms vs 60000.000000ms using Xm: 1075 a: 0.470689, q: 0.800000
don't look bad for me but mIke would know more about
arma
ah. yeah. not something you can easily wait for.
         

SwissTorExit
yeah and seem fixed to my ISp, there was a few prblem the last time and this message come after it see that the network is flaky
maybe with cutt off the net it will reprocucte it
bja
Is the network behaving bad, or am i just plainly unlucky?
arma
bja: tell me more?
bja
Lots of lag on irc with some kind of pattern its a few minutes wich nothing happens and suddenly it reaches 240 segs then it drops down.
I'll try to meassure the inbetween times of the lags
arma
are you doing heavy bittorrent downloads in the background? :)
bja
Same site times out on a page and on another one it shows it fine.
No other process on the background
I've been thinking that it might be when circuits are beeing rebuild inside the tor network. But i don't know how to check it
Sebastian
you'd lose your irc connection if your circuit were being rebuilt
timo
arma: tor caught an exit signal without a controller running... something else is going on... looks like some filesystem errors may have gobbled up some data
bja
Sebastian: :58 < bja> Is the network behaving bad, or am i just plainly unlucky?
What is your time stamp on that only minutes are interesting
and after arma's last comments my three following comments where one after the other
The time cycle in between lags is 10 minutes give or take a few seconds
Sebastian
bja: 53
it does seem like your connection is particularly poor, given you have a synchronized clock
bja
Sebastian: Your clock usually has a few seconds difference with mine, 5 mins was the actual lag on that particular moment
Its confirmed, 10 mins give or take a few secs
nsa
or: [ernie/master] 2010-03-10 23:37:32 Karsten Loesing <karsten.loesing@gmx.net>: Set timezone to UTC, stupid.
or: arma committed revision 21917 (/torperf/trunk): make the torperf instructions a bit more cut-and-paste
gen
does anyone know of a control script available for openbsd? i installed tor with the chroot directions and no nice script for starting, stopping, restarting, reloading was included... would be nice to have!
arma
a) does it come with the openbsd tor package?
b) see contrib/tor.sh
gen
a) i don't know
arma
or contrib/torctl.
gen
b) under /usr/port/net/tor?
arma
or debian/tor.init in git
gen
you think it's equilvalent?
arma
in your tarball
gen
ok
arma
equivalent? well, they all might do what you want, depending on what you want.
gen
i just want something i can point at on the command line and tell it to make tor start, stop, reload
so i don't have to kill tor manually
like ps | grep tor... kill ####
pipe
When I can't find any, I just copy another script and modify it
arma
contrib/tor.sh, contrib/torctl, or debian/tor.init will all do that, depending on what your local system looks like.
some are more featureful than others
i'm afraid you'll have to look at them and decide. or you can just use whatever the openbsd tor port gives you.
gen
ok, will investigate
thanks all
pipe
tor will/can write its PID on start, the init script in debian will use that feature
arma
anybody here run a tor exit relay and want to try out a patch?
Manny
i thought installing tor on openbsd voided the warranty
arma
openbsd's warranty, or tor's? :)
Manny
openbsd's
pipe
it comes with warranty?
Manny
it's base install kinda does
so long as you dont install any ports
(i'm poking fun at it, nvm)
So you can always say the same about any port
bja
pipe: it doesn't come with any warranty, they just brag that their base install hasn't been broken in so many years
pipe
ah, sounds more likely
gen
by the way, found the script you mentioned... looks good, had to tweak it and rc.local
timo
hi arma: the suggestion about allowing group access to the control cookie doesn't look like it's working
bja
arma: your png will not open :(
blank page
nsa
or: [tor/master] 2010-03-11 03:43:23 Roger Dingledine <arma@torproject.org>: let people test the RefuseUnknownExits idea
arma
bja: works great for me
sounds like your tor is having some real problems
bja
(Action) looks for some coal and a set of matches, He will have fried onions for supper today
arma
timo: is that because the datadir is group-unreadable?
timo
arma: you mean /var/lib/tor? .... oh, i just checked it again and it's set at 700 BUT I set it to 740 earlier.... something's chmodding it back to 700
arma
tor is.
i believe
timo
seems like a power it shouldn't have
arma
and yet :)
timo
ok, how do i kick tor's butt so it won't do it?
arma
log_warn(LD_FS, "Fixing permissions on directory %s", dirname);
if (chmod(dirname, 0700)) {
in src/common/util.c
timo
oh bummer... i need to rebuild it
arma
and even then, it won't be easy.
it looks like tor didn't intend for you to do what you're trying to do.
actually
CookieAuthFile Path
there we go.
timo
thus it looks like tor didn't intend for people on debian to use cookie authentication
arma
put your cookie somewhere not in your datadir.
timo
i guess so
arma
cookie auth is designed mostly for people running tor and their controller as the same user
really, for debian the answer is to use the controlsocket interface,
not the controlport interface
but that isn't complete.
...want to help finish it? :)
timo
i'm not that great at programming
i'll take a look at the code if you can point me to the specific area
nsa
or: erinn committed revision 21918 (/projects/android/tags): tagging Orbot 0.0.5 release
bja
arma: iceweasel with torbutton will not load the png, wget did download it, any suggestions?
nsa
or: erinn committed revision 21919 (/website/trunk/include): bump Orbot version
arma
bja: what proxy are you using with torbutton and iceweasel?
bja
privoxy
arma
wonder if privoxy thinks it's an ad
might be time to move to a better proxy :)
bja
It should give me the usual banning stuff because of adds. and it just doesn't display anything
arma: polipo?
arma: exit-30d.png (GIF Image, 4x4 pixels) - Iceweasel
we are improving, maybe tomorrow morning it'll get half the image :)
ok i'll install polipo, just tell 'weasel to fix the dependencies of tor so it fetches polipo first instead of privoxy
arma: Polipo solved the isue, thx
gaoyuan__
hi
º
arma
hey
pipe
gaoyuan__: Sorry, I don't think anyone understands chinese here
gaoyuan__
but you do
nsa
or: arma committed revision 21920 (/check/trunk/i18n): make make do mostly what i want. it still creates a
or: 'templates' dir on build install, but i can't figure out how
or: to filter-out the templates string. so be it.
arma
i knew it was chinese because i looked up your ip address :)
pipe
gaoyuan__: No, I don't
xtoaster
uh.. may be i can help translate :-)
gaoyuan__
ahah
xtoaster
ÄÇô õõ¿´ÄãµÄÎÊÌâ
gaoyuan__
*Ûë¡
xtoaster
ok go take a bath and relex
gaoyuan__
rit
ldkfsdk
ls
ilter
Hello. In source codes which function is using to upload relay's router descriptor?
arma
many of them are. what are you wanting to know?
ilter
Hello arma. I want to know when an OR send its own router descriptor? Is it periodically? And if it changes its policy, bw, etc. then does it send its new router descriptor immediately?
I'm investigating what are happening when a client want to be OR. I'm trying to draw a flowdiagram. Is there any docs to help me for this issue?
I thought that if i know the upload router descriptor function i can trace info and debug logs then i can understand it's period.
nsa
or: arma committed revision 21921 (/website/trunk/en): convert the tsocks/dsocks discussion into a gsoc idea
or: remove some items that we never want whenever people claim to
or: have solved them
pipe
ilter: Do you know about tools like cscope and such?
ilter
:( No.
pipe
Take a look, much easier to browse the source. There are probably much better tools too.
arma
see consider_publishable_server()
ilter
Thanks pipe I'm going to search cscope tool.
arma is there any special code for this issue? i.e. directory.c or something else?
I collected all logs when i was starting to be a relay. But i can't find consider_publishable_server() function on these logs. ?
arma
ilter: much of it will be in router.c
ilter: you can't understand what tor does in this case by reading its logs. you must look at the code.
calwig
o/
hi everyone, hows the project to improve tor coming
ilter
Thank you arma. I'm looking consider_publishable_server() function in source codes especially in router.c.
nsa
or: arma committed revision 21922 (/website/trunk/en): some more cleanups on the ideas list
ilter
Hello again. There is an authority flag for authorities. As same as is there any flag for caches?
arma
the dirport is non-zero
ilter
So somebody who want to be a relay and if he/she set a dirPort, can we say this OR is a cache?
arma
yes
« prev 1 2 3 next »