[tor-bugs] #3374 [Torouter]: Torouter OS and configuration

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Thu Jun 23 16:50:41 UTC 2011


#3374: Torouter OS and configuration
----------------------+-----------------------------------------------------
 Reporter:  runa      |          Owner:  runa
     Type:  task      |         Status:  new 
 Priority:  normal    |      Milestone:      
Component:  Torouter  |        Version:      
 Keywords:            |         Parent:      
   Points:            |   Actualpoints:      
----------------------+-----------------------------------------------------

Comment(by ioerror):

 Here's my current config that nearly runs all services without root:

 {{{
 COMMAND  PID       USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
 pump     959       root    0u  IPv4   1425      0t0  TCP *:bootpc (LISTEN)
 dnsmasq 1044    dnsmasq    5u  IPv4   1514      0t0  UDP *:bootps
 dnsmasq 1044    dnsmasq    6u  IPv4   1520      0t0  TCP
 172.16.23.1:domain (LISTEN)
 dnsmasq 1044    dnsmasq    7u  IPv4   1521      0t0  UDP
 172.16.23.1:domain
 dnsmasq 1044    dnsmasq    8u  IPv4   1522      0t0  TCP 10.23.42.1:domain
 (LISTEN)
 dnsmasq 1044    dnsmasq    9u  IPv4   1523      0t0  UDP 10.23.42.1:domain
 dnsmasq 1044    dnsmasq   10u  IPv4   1524      0t0  TCP 127.0.0.1:domain
 (LISTEN)
 dnsmasq 1044    dnsmasq   11u  IPv4   1525      0t0  UDP 127.0.0.1:domain
 ntpd    1177        ntp   16u  IPv4   1669      0t0  UDP *:ntp
 ntpd    1177        ntp   17u  IPv6   1671      0t0  UDP *:ntp
 ntpd    1177        ntp   18u  IPv4   1682      0t0  UDP 127.0.0.1:ntp
 ntpd    1177        ntp   19u  IPv4   1684      0t0  UDP 10.0.2.102:ntp
 ntpd    1177        ntp   20u  IPv4   1686      0t0  UDP 10.23.42.1:ntp
 ntpd    1177        ntp   21u  IPv4   1688      0t0  UDP 172.16.23.1:ntp
 ntpd    1177        ntp   22u  IPv6   1690      0t0  UDP [::1]:ntp
 ntpd    1177        ntp   23u  IPv6   1767      0t0  UDP
 [fe80::f2ad:4eff:fe00:7aac]:ntp
 ntpd    1177        ntp   24u  IPv6   1769      0t0  UDP
 [fe80::f2ad:4eff:fe00:7aab]:ntp
 sshd    1188       root    3u  IPv4   1715      0t0  TCP *:ssh (LISTEN)
 sshd    1188       root    4u  IPv6   1717      0t0  TCP *:ssh (LISTEN)
 tor     1194 debian-tor    7u  IPv4   1726      0t0  TCP *:9001 (LISTEN)
 tor     1194 debian-tor    8u  IPv4   1727      0t0  TCP 127.0.0.1:9050
 (LISTEN)
 tor     1194 debian-tor    9u  IPv4   1728      0t0  TCP 172.16.23.1:9040
 (LISTEN)
 tor     1194 debian-tor   10u  IPv4   1729      0t0  UDP
 172.16.23.1:domain
 tor     1194 debian-tor   14u  IPv4   1749      0t0  UDP
 10.0.2.102:49953->216.39.139.193:domain
 tor     1194 debian-tor   15u  IPv4   1750      0t0  UDP
 10.0.2.102:58581->8.8.8.8:domain
 tor     1194 debian-tor   17u  IPv4   5566      0t0  TCP
 10.0.2.102:9001->82.94.251.203:51473 (ESTABLISHED)
 tor     1194 debian-tor   18u  IPv4   1816      0t0  TCP
 10.0.2.102:34650->184.105.231.11:https (ESTABLISHED)
 tor     1194 debian-tor   19u  IPv4   1817      0t0  TCP
 10.0.2.102:60306->149.9.0.59:9001 (ESTABLISHED)
 tor     1194 debian-tor   20u  IPv4   1818      0t0  TCP
 10.0.2.102:58241->38.229.70.42:www (ESTABLISHED)
 sshd    1207       root    3r  IPv4   1789      0t0  TCP
 10.0.2.102:ssh->10.0.2.110:49818 (ESTABLISHED)
 }}}

 And here's my process list:
 {{{
 USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
 root         1  0.0  0.1   2016   696 ?        Ss   06:39   0:01 init [2]
 root         2  0.0  0.0      0     0 ?        S    06:39   0:00
 [kthreadd]
 root         3  0.0  0.0      0     0 ?        S    06:39   0:00
 [ksoftirqd/0]
 root         4  0.0  0.0      0     0 ?        S    06:39   0:00
 [watchdog/0]
 root         5  0.0  0.0      0     0 ?        S    06:39   0:00
 [events/0]
 root         6  0.0  0.0      0     0 ?        S    06:39   0:00 [khelper]
 root         9  0.0  0.0      0     0 ?        S    06:39   0:00
 [async/mgr]
 root       132  0.0  0.0      0     0 ?        S    06:39   0:00
 [sync_supers]
 root       134  0.0  0.0      0     0 ?        S    06:39   0:00 [bdi-
 default]
 root       136  0.0  0.0      0     0 ?        S    06:39   0:00
 [kblockd/0]
 root       142  0.0  0.0      0     0 ?        S    06:39   0:00 [ata/0]
 root       143  0.0  0.0      0     0 ?        S    06:39   0:00 [ata_aux]
 root       147  0.0  0.0      0     0 ?        S    06:39   0:00
 [ksuspend_usbd]
 root       152  0.0  0.0      0     0 ?        S    06:39   0:00 [khubd]
 root       155  0.0  0.0      0     0 ?        S    06:39   0:00 [kseriod]
 root       158  0.0  0.0      0     0 ?        S    06:39   0:00 [kmmcd]
 root       168  0.0  0.0      0     0 ?        S    06:39   0:00
 [cfg80211]
 root       179  0.0  0.0      0     0 ?        S    06:39   0:00
 [rpciod/0]
 root       187  0.0  0.0      0     0 ?        S    06:39   0:00
 [khungtaskd]
 root       188  0.0  0.0      0     0 ?        S    06:39   0:00 [kswapd0]
 root       233  0.0  0.0      0     0 ?        S    06:39   0:00 [aio/0]
 root       246  0.0  0.0      0     0 ?        S    06:39   0:00 [nfsiod]
 root       254  0.0  0.0      0     0 ?        S    06:39   0:00 [jfsIO]
 root       255  0.0  0.0      0     0 ?        S    06:39   0:00
 [jfsCommit]
 root       256  0.0  0.0      0     0 ?        S    06:39   0:00 [jfsSync]
 root       257  0.0  0.0      0     0 ?        S    06:39   0:00
 [crypto/0]
 root       432  0.0  0.0      0     0 ?        S    06:39   0:00
 [mtdblockd]
 root       439  0.0  0.0      0     0 ?        S    06:39   0:00
 [orion_spi]
 root       529  0.0  0.0      0     0 ?        S    06:39   0:00
 [usbhid_resumer]
 root       544  0.0  0.0      0     0 ?        S    06:39   0:00
 [scsi_eh_0]
 root       545  0.0  0.0      0     0 ?        S    06:39   0:00 [usb-
 storage]
 root       577  0.0  0.0      0     0 ?        S    06:39   0:00
 [flush-8:0]
 root       578  0.0  0.0      0     0 ?        S    06:39   0:00
 [kjournald]
 root       619  0.0  0.1   2300   688 ?        S<s  06:39   0:00 udevd
 --daemon
 root       658  0.0  0.0      0     0 ?        S    06:39   0:00
 [mv_crypto]
 root       707  0.0  0.1   2296   616 ?        S<   06:39   0:00 udevd
 --daemon
 root       708  0.0  0.1   2296   604 ?        S<   06:39   0:00 udevd
 --daemon
 root       727  0.0  0.0      0     0 ?        S    06:39   0:00
 [scsi_eh_1]
 root       735  0.0  0.0      0     0 ?        S    06:39   0:00
 [bluetooth]
 root       756  0.0  0.0      0     0 ?        S    06:39   0:00
 [uap_main_servic]
 root       757  0.0  0.0      0     0 ?        S    06:39   0:00
 [ksdioirqd/mmc0]
 root       959  0.0  0.1   1924   604 ?        Ss   06:39   0:00 pump -i
 eth0
 dnsmasq   1044  0.0  0.1   2748   876 ?        S    06:39   0:00
 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -7
 /etc/dnsmasq.d,.dpkg-d
 daemon    1117  0.0  0.0   2260   424 ?        Ss   06:40   0:00
 /usr/sbin/atd
 root      1164  0.0  0.1   2416   872 ?        Ss   06:40   0:00
 /usr/sbin/cron
 ntp       1177  0.0  0.3   5368  1948 ?        Ss   06:40   0:02
 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
 root      1188  0.0  0.1   5820   976 ?        Ss   06:40   0:00
 /usr/sbin/sshd
 103       1194  0.4  8.8  57308 45660 ?        Sl   06:40   2:41
 /usr/local/bin/tor
 root      1204  0.0  0.1   1640   528 tty1     Ss+  06:40   0:00
 /sbin/getty 38400 tty1
 root      1205  0.0  0.1   1640   532 ttyS0    Ss+  06:40   0:00
 /sbin/getty -L ttyS0 115200 linux
 root      1207  0.0  0.5   9044  2880 ?        Ss   06:40   0:00 sshd:
 root at pts/0
 root      1210  0.0  0.3   3140  1704 pts/0    Ss   06:40   0:00 -bash
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3374#comment:57>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list