LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2008, 07:19 PM   #16
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31

I not urge for help but i have already run out of idea.
PLease help me. A billion thanks for your help.
 
Old 01-10-2008, 08:01 PM   #17
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
You haven't given us much to work with here. unSpawn asked you to post some config and log files, but you haven't. Forget about Squid for now. You say that when you use Privoxy no DNS resolution takes place, but this is exactly what is supposed to happen when you use it with Tor. If DNS resolution was done then your ISP (and anyone between you and them) would be able to know what sites you are visiting. DNS resolution occurs at the other end of the Tor network. Please post the outputs of these commands so we can get a better understanding of where you are at:
Code:
iptables -an --inet | grep LISTEN
Code:
iptables -nvL
Code:
ifconfig
Code:
cat /etc/privoxy/config | grep -v ^# | grep -v ^$
Code:
cat /etc/tor/torrc | grep -v ^# | grep -v ^$
Code:
cat /etc/tor/tor-tsocks.conf | grep -v ^# | grep -v ^$
Please don't cherry-pick which outputs to post - post them all.
 
Old 01-15-2008, 03:36 AM   #18
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
I thought this incident related to config. Sorry for any inconvenience.

I not able to post output of iptables because i not using iptables. I uisng pf firewall.
ifconfig
Quote:

rl0: 192.168.1.2 Gateway : 192.168.1.1
ral0: 192.168.2.1 Gateway 192.168.2.1 Broadcast : 192.168.2.255
/etc/privoxy/config | grep -v ^# | grep -v ^$
Quote:
configdir /etc/privoxy
logdir /var/log/privoxy
actionsfile standard, default, user
filter file default.filter
debug 1, 4016, 8192
logfile logfile
jarfile jarfile
listen-address 192.168.2.1:811
toggle 1
enable remote-toggle 1
enable edit-options 1
buffer limit 4096
forward-socks4a / 127.0.0.1:9050
/etc/torrc
Quote:
SocksPort 9050
SokcListen Address 127.0.0.1
Log notice file /usr/local/var/log/tor/noticelog
RunasDaemon 1
Nickname PeterTor
BandwidthRate 10kb
BandwidthBurst 10kb
ContactInfo Peter <peterapiit@gmail.com>
ExitPolicy accept *:6660-6667, reject *:*
ExitPolicy aceept *:119
reject *:*
/etc/tor-tsocks.conf
Quote:
server = 127.0.0.1
server_port = 9050
local = 127.0.0.0/255.128.0.0
local = 127.128.0.0/255.192.0.0
By the way, i have check netstat -rn | less for the LISTEN server for localhost only.

A billion thanks for your help. You all are brilliant guys who willing to help others.
 
Old 01-16-2008, 01:48 AM   #19
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Peter_APIIT View Post
I not able to post output of iptables because i not using iptables. I uisng pf firewall.
Right, I forgot.

Quote:
rl0: 192.168.1.2 Gateway : 192.168.1.1
ral0: 192.168.2.1 Gateway 192.168.2.1 Broadcast : 192.168.2.255
Your second NIC has it's own IP set as the gateway?

Quote:
listen-address 192.168.2.1:811
This would normally be a "8118" instead of an "811".

Make sure you actually intended to use port 811.

Quote:
forward-socks4a / 127.0.0.1:9050
Is there a particular reason why you are still omitting the "no HTTP forwarding" dot here?

Quote:
SocksPort 9050
SokcListen Address 127.0.0.1
Log notice file /usr/local/var/log/tor/noticelog
RunasDaemon 1
Nickname PeterTor
BandwidthRate 10kb
BandwidthBurst 10kb
ContactInfo Peter <peterapiit@gmail.com>
ExitPolicy accept *:6660-6667, reject *:*
ExitPolicy aceept *:119
reject *:*
I don't think you ever mentioned you wanted to set up Tor as a server.

If you only want it to provide anonymity for Privoxy you just need these two lines:
Code:
SocksPort 9050
SocksListenAddress 127.0.0.1
Also, notice how I put in red some typos you made - you should fix them. Also, AFAICT (I've never set-up an exit node) the last two lines in your torrc wouldn't ever get matched, since you have a "reject *:*" above them (which I put in bold). Additionally, the syntax for the bandwidth options seems to be:
Code:
BandwidthRate 10 KB
And not:
Code:
BandwidthRate 10kb
But I'm not sure if it makes a difference or not.

Like I said, I've never set up an exit node, so take what I say with a grain of salt.

Last edited by win32sux; 01-16-2008 at 02:24 AM.
 
Old 01-18-2008, 12:45 AM   #20
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Quote:

listen-address 192.168.2.1:811
This would normally be a "8118" instead of an "811".
This is a typo error and i also have dot(.) behind it. (I 100% sure)

Now, the issue is about why privoxy cannot resolve the
hostname to ip address.

I will read it up for configure Tor as server.

A billion thanks for your help.
 
Old 01-18-2008, 03:44 AM   #21
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Peter_APIIT View Post
Now, the issue is about why privoxy cannot resolve the
hostname to ip address.
Well, like I already said, Privoxy doesn't need to do this when being used with Tor. If it did resolve DNS then it would defeat the purpose of running an anonymity application. I can't really think of what could be causing your problem. Here's a copy of my Privoxy config (which works fine for me) in case it might help:
Code:
user-manual /usr/share/doc/privoxy/user-manual
confdir /etc/privoxy
logdir /var/log/privoxy
actionsfile standard  # Internal purpose, recommended
actionsfile global    # Global default setting for all sites
actionsfile default   # Main actions file
actionsfile user      # User customizations
filterfile default.filter
debug   4096 # Startup banner and warnings
debug   8192 # Errors - *we highly recommended enabling this*
listen-address  127.0.0.1:8118
toggle  1
enable-remote-toggle  0
enable-remote-http-toggle  1
enable-edit-actions 0
buffer-limit 4096
forward-socks4a             /     127.0.0.1:9050 .
forwarded-connect-retries  0

Last edited by win32sux; 01-18-2008 at 03:55 AM.
 
Old 01-18-2008, 07:04 AM   #22
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Is it related to slow internet response time after Tor has connect to longer path and make ny connection slower ?

Or my ISP has blocked it?

Any idea ?

A billion thanks for your help.
 
Old 01-18-2008, 08:48 AM   #23
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Peter_APIIT View Post
Is it related to slow internet response time after Tor has connect to longer path and make ny connection slower ?
Well, response time is naturally slow when using Tor so that shouldn't be an issue.

What error message does your browser generate when you try to surf?

Quote:
Or my ISP has blocked it?
It's possible, but I doubt it.
 
Old 01-20-2008, 06:34 AM   #24
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Error Message is the page cannot be display.

How to check whether my ISP has blocked it ?

Thanks for your help.
 
Old 06-07-2008, 02:22 AM   #25
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Why when i try Privoxy with Tor, it say No such domain and Error 404 is displayed ?

Thanks for your explanation.
 
Old 06-07-2008, 06:40 PM   #26
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Please help me to solve this problem together.
 
Old 06-13-2008, 10:15 PM   #27
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Please help me.
 
Old 06-13-2008, 11:47 PM   #28
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Maybe show us what the Privoxy log files (and more importantly, the Tor ones) look like when the issue manifests itself? It sounds to me like your SOCKS might be the problem.
 
Old 06-16-2008, 02:46 AM   #29
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Please help me. I not hijacked thread but to get help.
 
Old 06-16-2008, 02:16 PM   #30
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Peter_APIIT View Post
Please help me. I not hijacked thread but to get help.
I actually am trying to help you, and haven't accused you of hijacking the thread. But it's impossible to help you if all you post is pleas for help. That's why I asked you to post the relevant log entries for Tor and Privoxy like three days ago.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tor, Squid, Privoxy behind iptables firewall mistersnorfles Linux - Security 7 12-13-2007 04:12 PM
Privoxy and tor dns resolution problem JAKK Linux - Networking 4 02-12-2007 12:31 AM
Squid,Tor,Privoxy gabsik Linux - Networking 1 08-07-2006 10:51 PM
question about tor, privoxy & squid paul_mat Linux - Security 6 04-08-2006 09:22 PM
Privoxy Squid Tor gabsik Linux - Networking 2 01-26-2006 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration