Tor server crashes on a Linksys WRT54GL
Hello I am experimenting with a tor server on my Linux router, but it starts 5 processes and hogs all my CPU before crashing. I am using a Linksys WRT54GL with OpenWRT (White Russian RC6). An nmap scan did not show the port open (I have opened TCP ports 9001 and 9030 on my firewall). Any tips so I can get this working? I would like to donate more bandwidth during the night, and think I could start/stop the tor server with a different torrc config file. If someone has a better idea how to do this, then please also let me know. Thanks for any help or pointers, Regards Mark DETAILS ** uname -a ** Linux OpenWrt 2.4.30 #1 Mon Nov 6 17:35:21 PST 2006 mips unknown ** top output: shows CPU hogging. After about 5 mins it seems to crash, during the worst stage DHCP and connections freeze. ** Mem: 11020K used, 3276K free, 0K shrd, 556K buff, 3400K cached Load average: 0.12, 0.07, 0.02 (State: S=sleeping R=running, W=waiting) PID USER STATUS RSS PPID %CPU %MEM COMMAND 563 root R 256 560 1.3 1.7 top 559 root S 264 538 0.3 1.8 dropbear 3 root SWN 0 1 0.1 0.0 ksoftirqd_CPU0 752 tor S 3048 1 0.0 21.3 tor 755 tor S 3048 753 0.0 21.3 tor 754 tor S 3048 753 0.0 21.3 tor 756 tor S 3048 753 0.0 21.3 tor 753 tor S 3048 752 0.0 21.3 tor 757 tor S 3048 753 0.0 21.3 tor 565 root S 380 564 0.0 2.6 ash 530 nobody S 336 1 0.0 2.3 dnsmasq 547 root S 312 1 0.0 2.1 crond 512 root S 312 1 0.0 2.1 udhcpc 564 root S 264 538 0.0 1.8 dropbear 94 root S 252 1 0.0 1.7 syslogd 441 root S 132 1 0.0 0.9 wifi 1 root S 96 0 0.0 0.6 init 560 root S 72 559 0.0 0.5 ash 543 root S 68 1 0.0 0.4 httpd **My torrc (with removed blanks and comments) ** SocksPort 0 AllowUnverifiedNodes middle,rendezvous RunAsDaemon 1 DataDirectory /tmp/tor nickname toerricht Address toerricht.dyndns.org ContactInfo E5066067/7725 75E4 AC6F 8233 D85E 20B2 938B EB06 E506 6067 [NAME REMOVED] ORPort 9001 ExitPolicy reject *:* # middleman only -- no exits allowed BandwidthRate 20 KB BandwidthBurst 20 KB User tor Group tor PidFile /var/run/tor.pid
Re: Tor server crashes on a Linksys WRT54GL
On Wed, Mar 14, 2007 at 07:57:24AM +0100, Mark Furner wrote: > I am experimenting with a tor server on my Linux router, but it starts 5 > processes and hogs all my CPU before crashing. Try the 0.1.2.10-rc release -- it will start only 2 processes and then hog all your cpu. ;) > I am using a Linksys WRT54GL > with OpenWRT (White Russian RC6). How much ram does your linksys have? I hear they have been selling them with less and less ram to discourage people from using them for anything, so the newer it is the less likely it will run Tor (or heck, Linux) well. > An nmap scan did not show the port open (I > have opened TCP ports 9001 and 9030 on my firewall). Any tips so I can get > this working? nmap won't scan all the ports. It is the wrong tool for that purpose. Try netstat instead. > I would like to donate more bandwidth during the night, and think I could > start/stop the tor server with a different torrc config file. If someone has > a better idea how to do this, then please also let me know. You may find http://wiki.noreply.org/noreply/TheOnionRouter/CronBandwidthLimit or http://wiki.noreply.org/noreply/TheOnionRouter/BandwidthLimitChangeController helpful. > Thanks for any help or pointers, Good luck, --Roger
Re: Tor server crashes on a Linksys WRT54GL
Hi Roger The WRT54GL has about 16MB RAM. I was using an OpenWRT package of TOR version, 0.1.0.17. There is no gcc etc. on the box, and I doubt whether the thing could be compiled on it: will TOR run on such as puny system? Thanks for the tips about bandwidth changes. If I ever get this thing working, I could donate more bandwidth when I ought be sleeping... BTW nmap can scan higher port nos if you set with a port range (-p1-65535 ) but I take your point about netstat (on the box itself). Thanks for the tips Mark On Wednesday 14 March 2007 08:20, Roger Dingledine (Roger Dingledine <[EMAIL PROTECTED]>) may have written: > On Wed, Mar 14, 2007 at 07:57:24AM +0100, Mark Furner wrote: > > I am experimenting with a tor server on my Linux router, but it starts 5 > > processes and hogs all my CPU before crashing. > > Try the 0.1.2.10-rc release -- it will start only 2 processes and then > hog all your cpu. ;) > > > I am using a Linksys WRT54GL > > with OpenWRT (White Russian RC6). > > How much ram does your linksys have? I hear they have been selling them > with less and less ram to discourage people from using them for anything, > so the newer it is the less likely it will run Tor (or heck, Linux) well. > > > An nmap scan did not show the port open (I > > have opened TCP ports 9001 and 9030 on my firewall). Any tips so I can > > get this working? > > nmap won't scan all the ports. It is the wrong tool for that purpose. > Try netstat instead. > > > I would like to donate more bandwidth during the night, and think I could > > start/stop the tor server with a different torrc config file. If someone > > has a better idea how to do this, then please also let me know. > > You may find > http://wiki.noreply.org/noreply/TheOnionRouter/CronBandwidthLimit > or > http://wiki.noreply.org/noreply/TheOnionRouter/BandwidthLimitChangeControll >er helpful. > > > Thanks for any help or pointers, > > Good luck, > --Roger -- x-x-x-x-x-x-x-x-x-x-x-x-x Mark Furner, PhD Lärchenstr. 39 CH 8400 Winterthur Switzerland T. 0041 (0)78 641 15 92 E. [EMAIL PROTECTED]
Re: Tor server crashes on a Linksys WRT54GL
On Wed, Mar 14, 2007 at 03:20:15AM -0400, Roger Dingledine wrote: > > I am using a Linksys WRT54GL with OpenWRT (White Russian RC6). > How much ram does your linksys have? I hear they have been selling > them with less and less ram to discourage people from using them for > anything, so the newer it is the less likely it will run Tor (or heck, > Linux) well. Newer WRT54GS and similar models have less RAM because they run a proprietery embedded OS rather than Linux. However, Linksys are aware that many people bought their models for homebrew hacking, so they released the WRT54GL which has more RAM for Linux hacking. Dave -- Dave Page <[EMAIL PROTECTED]> Jabber: [EMAIL PROTECTED]
Re: Tor server crashes on a Linksys WRT54GL
Well what you could do is remote-debugging. Follow instructions to build gdb-sever for OpenWRT: http://forum.openwrt.org/viewtopic.php?pid=29712 Install gdb-server Run gdb-server on your WRT: # gdb-server $ip:12345 /path/to/tor $myoptions (Tor won't start immediately but will wait for a "cont" on the remote-debugger) Set ulmits and run gdb an another machine on the network: $ ulimit -c unlimited # or whatever you consider a sane value $ gdb (gdb) target remote $ip:12345 # connect to WRT (gdb) cont # run Tor ...wait for crash and note output... (Note: In the referenced URL above are more architecture-specific notes for the WRT. I haven't tried this myself) No idea if that will result in anything, but it might give some information about what's really going on - like if it's a memory-issue or something else. If the programm crashes with a SEGFAULT or something, type "bt" in the remote gdb-session to show the backtrace. Will be a lot of work, but maybe it's worth it. HTH, cheers, Alex. On 3/14/07, Mark Furner <[EMAIL PROTECTED]> wrote: Hi Roger The WRT54GL has about 16MB RAM. I was using an OpenWRT package of TOR version, 0.1.0.17. There is no gcc etc. on the box, and I doubt whether the thing could be compiled on it: will TOR run on such as puny system? Thanks for the tips about bandwidth changes. If I ever get this thing working, I could donate more bandwidth when I ought be sleeping... BTW nmap can scan higher port nos if you set with a port range (-p1-65535 ) but I take your point about netstat (on the box itself). Thanks for the tips Mark On Wednesday 14 March 2007 08:20, Roger Dingledine (Roger Dingledine <[EMAIL PROTECTED]>) may have written: > On Wed, Mar 14, 2007 at 07:57:24AM +0100, Mark Furner wrote: > > I am experimenting with a tor server on my Linux router, but it starts 5 > > processes and hogs all my CPU before crashing. > > Try the 0.1.2.10-rc release -- it will start only 2 processes and then > hog all your cpu. ;) > > > I am using a Linksys WRT54GL > > with OpenWRT (White Russian RC6). > > How much ram does your linksys have? I hear they have been selling them > with less and less ram to discourage people from using them for anything, > so the newer it is the less likely it will run Tor (or heck, Linux) well. > > > An nmap scan did not show the port open (I > > have opened TCP ports 9001 and 9030 on my firewall). Any tips so I can > > get this working? > > nmap won't scan all the ports. It is the wrong tool for that purpose. > Try netstat instead. > > > I would like to donate more bandwidth during the night, and think I could > > start/stop the tor server with a different torrc config file. If someone > > has a better idea how to do this, then please also let me know. > > You may find > http://wiki.noreply.org/noreply/TheOnionRouter/CronBandwidthLimit > or > http://wiki.noreply.org/noreply/TheOnionRouter/BandwidthLimitChangeControll >er helpful. > > > Thanks for any help or pointers, > > Good luck, > --Roger -- x-x-x-x-x-x-x-x-x-x-x-x-x Mark Furner, PhD Lärchenstr. 39 CH 8400 Winterthur Switzerland T. 0041 (0)78 641 15 92 E. [EMAIL PROTECTED] -- "I am tired of all this sort of thing called science here... We have spent millions in that sort of thing for the last few years, and it is time it should be stopped." -- Simon Cameron, U.S. Senator, on the Smithsonian Institute, 1901.