LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-03-2021, 02:21 PM   #1
AdamVC
LQ Newbie
 
Registered: Jul 2021
Posts: 1

Rep: Reputation: Disabled
Iptables with Squid Proxy


Hello!
I have created a topology with 3 hosts (clien, squid-proxy and server).

When I try to download any file from server (wget), while squid isn't active everything works fine, but once I forward traffic to squid proxy with command "iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128" on squid-proxy host, the wget command gives ERROR 503: Service Unavailable message.

Interfaces on hosts:
client: eth1 192.168.1.2
squid-proxy: eth1 192.168.30.3, eth2 192.168.31.3
server: eth1 192.168.2.2

When I use tcpdump on server, I can notice the request arrives to server "192.168.31.2.60060 > server.http: Flags [S]" but it doesn't send any response.

Any idea how to fix that?
 
Old 07-06-2021, 09:55 AM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,151

Rep: Reputation: 393Reputation: 393Reputation: 393Reputation: 393
*DELETED*

Forgive me, totally misunderstood the question.

Last edited by jmgibson1981; 07-06-2021 at 09:58 AM.
 
  


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
Squid Proxy(centos):How to configure internet access for a specific IP address to access only YouTube on squid proxy raymond m Linux - Newbie 3 07-26-2017 03:05 PM
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
Need help to connect a squid proxy to connect to another squid proxy server bellerophon Linux - Newbie 1 02-07-2006 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:49 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
Open Source Consulting | Domain Registration