LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't connect to certain IP's with Proxy server (https://www.linuxquestions.org/questions/linux-newbie-8/cant-connect-to-certain-ips-with-proxy-server-895247/)

Angelic_Mew 08-03-2011 03:51 AM

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.

mpapet 08-04-2011 05:03 AM

[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?

Angelic_Mew 08-04-2011 05:14 AM

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)

mpapet 08-04-2011 03:16 PM

Quote:

Originally Posted by Angelic_Mew (Post 4433437)
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.

Fantasio 08-04-2011 03:52 PM

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.


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