LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tsocks in fedora 17 64bit (https://www.linuxquestions.org/questions/linux-newbie-8/tsocks-in-fedora-17-64bit-4175467133/)

sumeet inani 06-24-2013 01:08 AM

tsocks in fedora 17 64bit
 
I am using
Code:

#  uname -a
Linux CSG.localdomain 3.3.4-5.fc17.x86_64 #1 SMP Mon May 7 17:29:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
#  cat /etc/fedora-release
Fedora release 17 (Beefy Miracle)

I hav tor browser up & running
My tsocks configuration is
Code:

#  cat /etc/tsocks.conf
server = 127.0.0.1
server_type = 5
server_port = 9050

Still I get
Code:

]$  tsocks wget www.google.com
--2013-06-24 11:38:44--  http://www.google.com/
Resolving www.google.com... 173.194.36.116, 173.194.36.112, 173.194.36.113, ...
Connecting to www.google.com|173.194.36.116|:80... 11:38:44 libtsocks(29791): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to www.google.com|173.194.36.112|:80... 11:38:44 libtsocks(29791): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to www.google.com|173.194.36.113|:80... 11:38:44 libtsocks(29791): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to www.google.com|173.194.36.114|:80... 11:38:44 libtsocks(29791): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to www.google.com|173.194.36.115|:80... 11:38:44 libtsocks(29791): Error 111 attempting to connect to SOCKS server (Connection refused)
failed: Connection refused.
Connecting to www.google.com|2404:6800:4002:803::1012|:80... failed: Network is unreachable.

Where am I going wrong ?

evo2 06-24-2013 01:34 AM

Hi,

how did you (or whoever) make the proxy you are trying to use? It looks like it doesn't exist.

Evo2.

sumeet inani 06-24-2013 01:36 AM

I found out that vidalia control panel > message log says
Jun 24 11:52:26.039 [Notice] Socks listener listening on port 43318.

So editing server_port to 43318 worked.


Thank you.

sumeet inani 06-24-2013 03:26 AM

Still , how can I find via command prompt the port on which tor server is running
I tried
Code:

tcp        0      0 *:sunrpc                *:*                    LISTEN   
tcp        0      0 localhost:58898        *:*                    LISTEN   
tcp        0      0 *:53810                *:*                    LISTEN   
tcp        0      0 CSG.localdomain:domain  *:*                    LISTEN   
tcp        0      0 localhost:43318        *:*                    LISTEN    Nothing special about this
tcp        0      0 *:ssh                  *:*                    LISTEN   
tcp        0      0 localhost:ipp          *:*                    LISTEN   
tcp        0      0 localhost:smtp          *:*                    LISTEN   
tcp6      0      0 [::]:sunrpc            [::]:*                  LISTEN   
tcp6      0      0 [::]:presence          [::]:*                  LISTEN   
tcp6      0      0 [::]:ssh                [::]:*                  LISTEN   
tcp6      0      0 localhost:ipp          [::]:*                  LISTEN   
tcp6      0      0 [::]:60986              [::]:*                  LISTEN   
unix  2      [ ACC ]    STREAM    LISTENING    29951    /run/user/cdot/keyring-B2XM1t/ssh
unix  2      [ ACC ]    STREAM    LISTENING    16858    @ISCSIADM_ABSTRACT_NAMESPACE
unix  2      [ ACC ]    STREAM    LISTENING    20999    /var/run/rpcbind.sock
unix  2      [ ACC ]    STREAM    LISTENING    16005    /tmp/.X11-unix/X0
unix  2      [ ACC ]    STREAM    LISTENING    7955    /run/systemd/private
unix  2      [ ACC ]    STREAM    LISTENING    19480    /var/run/libvirt/libvirt-sock
unix  2      [ ACC ]    STREAM    LISTENING    19482    /var/run/libvirt/libvirt-sock-ro
unix  2      [ ACC ]    STREAM    LISTENING    11035    /dev/gpmctl
unix  2      [ ACC ]    STREAM    LISTENING    11042    /var/run/abrt/abrt.socket
unix  2      [ ACC ]    STREAM    LISTENING    20179    /tmp/.ICE-unix/3839
unix  2      [ ACC ]    STREAM    LISTENING    215442  /tmp/OSL_PIPE_1000_SingleOfficeIPC_1bb3741983bccbddfd086f82f6c4d8f
unix  2      [ ACC ]    STREAM    LISTENING    17460    /var/run/mcelog-client
unix  2      [ ACC ]    STREAM    LISTENING    29397    @/tmp/dbus-0NHJGOAKAz
unix  2      [ ACC ]    STREAM    LISTENING    29958    /tmp/.esd-1000/socket
unix  2      [ ACC ]    STREAM    LISTENING    29960    /home/cdot/.pulse/f7e4e3b7d1e4bf339dab353100000010-runtime/native
unix  2      [ ACC ]    STREAM    LISTENING    29961    /home/cdot/.pulse/f7e4e3b7d1e4bf339dab353100000010-runtime/dbus-socket
unix  2      [ ACC ]    STREAM    LISTENING    16852    @ISCSID_UIP_ABSTRACT_NAMESPACE
unix  2      [ ACC ]    STREAM    LISTENING    16004    @/tmp/.X11-unix/X0
unix  2      [ ACC ]    STREAM    LISTENING    18553    /var/run/sdp
unix  2      [ ACC ]    STREAM    LISTENING    10201    @/tmp/gdm-session-GduyRkwQ
unix  2      [ ACC ]    STREAM    LISTENING    15512    /var/run/rpcbind.sock
unix  2      [ ACC ]    SEQPACKET  LISTENING    8100    /run/udev/control
unix  2      [ ACC ]    STREAM    LISTENING    15523    /var/run/avahi-daemon/socket
unix  2      [ ACC ]    STREAM    LISTENING    26543    /run/user/cdot/keyring-B2XM1t/control
unix  2      [ ACC ]    STREAM    LISTENING    16559    /var/run/acpid.socket
unix  2      [ ACC ]    STREAM    LISTENING    8110    /run/systemd/journal/stdout
unix  2      [ ACC ]    STREAM    LISTENING    15535    /var/run/cups/cups.sock
unix  2      [ ACC ]    STREAM    LISTENING    15546    /var/run/pcscd/pcscd.comm
unix  2      [ ACC ]    STREAM    LISTENING    15558    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]    STREAM    LISTENING    10195    /var/run/setroubleshoot/setroubleshoot_server
unix  2      [ ACC ]    STREAM    LISTENING    20195    /run/user/cdot/keyring-B2XM1t/pkcs11
unix  2      [ ACC ]    STREAM    LISTENING    20178    @/tmp/.ICE-unix/3839
unix  2      [ ACC ]    STREAM    LISTENING    29949    /run/user/cdot/keyring-B2XM1t/gpg


evo2 06-24-2013 03:29 AM

Hi,

you could do a port scan:
Code:

nmap localhost
Evo2.

sumeet inani 06-24-2013 04:02 AM

I tried
Code:

#  netstat -tulpn | grep -i tor
tcp        0      0 127.0.0.1:58898        0.0.0.0:*              LISTEN      30146/tor         
tcp        0      0 127.0.0.1:43318        0.0.0.0:*              LISTEN      30146/tor

Also
Code:

#  nmap  localhost

Starting Nmap 5.51 ( http://nmap.org ) at 2013-06-24 14:30 IST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000050s latency).
Other addresses for localhost (not scanned): 127.0.0.1
Not shown: 995 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
25/tcp  open  smtp
111/tcp  open  rpcbind
631/tcp  open  ipp
5298/tcp open  presence

Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds



All times are GMT -5. The time now is 02:14 PM.