LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-03-2011, 04:51 AM   #1
Angelic_Mew
LQ Newbie
 
Registered: Nov 2007
Posts: 9

Rep: Reputation: 0
Can't connect to certain IP's with Proxy server


Hi all,

I have setup a Squid Transparent Proxy that works and I can connect to most websites and block-list works and yadda yadda yadda.

My problem is that when I try to connect to a certain PC it will not work. A bit more clarity...

[INTERNET]----[DSL-MODEM]----[ROUTER]----[SQUIDSERVER]----[NETWORK]

Connected to the DSL-MODEM is the PC in question that I can't connect to when using Squid. If I bypass the Squid from the Network and go through the router I can connect to the PC.

I want to be able to use the Squid server and still access the PC connected to the Modem and I want to have a Squid SAR report of the Network PC's accessing the PC on the modem.

The Modem/Router/Squid/Network all use the same IP range, but the PC on the modem has a different IP.
Anyone care to help me? I'm probably overlooking the obvious here. I've tried Google and the search here. I have tried some stuff but to no avail.
 
Old 08-04-2011, 06:03 AM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 525

Rep: Reputation: 60
[QUOTE=Angelic_Mew;4432406]but the PC on the modem has a different IP.
[QUOTE]

Ding! Ding! Ding! It sounds like the PC isn't on the same subnet as the rest of the devices on your lan. Why can't that PC be on the LAN with the other devices? DMZ maybe?
 
Old 08-04-2011, 06:14 AM   #3
Angelic_Mew
LQ Newbie
 
Registered: Nov 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Only when going through the Proxy does the connection to that PC not work. If I remove the proxy I can connect with no problems.
The PC has to be outside the network like that. (don't ask, internet isn't long enough to explain)
 
Old 08-04-2011, 04:16 PM   #4
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 525

Rep: Reputation: 60
Quote:
Originally Posted by Angelic_Mew View Post
Only when going through the Proxy does the connection to that PC not work. If I remove the proxy I can connect with no problems.
The PC has to be outside the network like that. (don't ask, internet isn't long enough to explain)
Well, then you've got a routing problem. Wireshark on both ends is the only way to figure out what's going on.
 
Old 08-04-2011, 04:52 PM   #5
Fantasio
Member
 
Registered: Nov 2007
Location: Vinsobres - Drome - France
Distribution: SuSE Linux 11.3
Posts: 152

Rep: Reputation: 19
Squid only listen for FTP and HTTP(S) not all port. Your browser must use the proxy not the other connections.
It's a routing matter. Set a route to your router and in your browser set the proxy or set via iptables a route to the squidserver for port 80, 443 and 20.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to connect to proxy server though wi fi connection active proxy settings ok ncpanicker Linux - Wireless Networking 3 04-11-2011 04:27 AM
How to connect to the internet via a proxy server OlivierJ Linux - Newbie 3 04-07-2008 03:37 PM
how to connect my proxy server with the local LDAP server ankuraggarwal Linux - Software 0 08-31-2007 03:17 AM
Need help to connect a squid proxy to connect to another squid proxy server bellerophon Linux - Newbie 1 02-07-2006 07:52 AM
Can't Connect To Proxy Server RySk8er30 Linux - Networking 3 06-05-2005 10:07 AM


All times are GMT -5. The time now is 03:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration