LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-02-2017, 09:35 AM   #1
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Rep: Reputation: Disabled
Not able to setup CentOS 7 as gateway [Using squid proxy]


Hello,

Did anyone setup a CentOS7 as a gateway (with squid transparent proxy).
I am trying to do so but not able to setup.

I setup squid [3.5.20], iptables (using it instead of firewalld) and all the necessary IPtables rules but nothing work.

It work previously but access.log of squid not getting updated with the website hits.

Please help me here.

I followed the below links but nothing is working as expected.

https://www.ivankristianto.com/howto...sparent-proxy/
https://www.linuxtricks.fr/wiki/inst...-sous-centos-7
http://www.silverhawk.net/2016/07/ce...-firewall.html
 
Old 09-03-2017, 08:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sunnysthakur View Post
Hello,
Did anyone setup a CentOS7 as a gateway (with squid transparent proxy). I am trying to do so but not able to setup. I setup squid [3.5.20], iptables (using it instead of firewalld) and all the necessary IPtables rules but nothing work.

It work previously but access.log of squid not getting updated with the website hits. Please help me here. I followed the below links but nothing is working as expected.
Read the "Question Guidelines" link in my posting signature. Just saying "nothing is working" tells us absolutely nothing. And it's even more confusing when you start with "It work previously"....if it WAS working, what did you change?? What kind of clients? Did you restart services? What have you done/tried so far???

The first link you posted has a pretty clear tutorial....did you follow ALL the steps? What did you change/modify from when it was working to now? What DO you see in the logs?

Unless you provide details there is nothing we can do to help you.
 
Old 09-03-2017, 12:26 PM   #3
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Original Poster
Rep: Reputation: Disabled
Hello,

I am facing two issues.

1. I setup server by using iptables (disabled firewalld) and the steps mentioned in above links. I observed that internet is working but squid's access log is not being updated with client logs. I checked the permissions and ownership and all is OK.
2. I setup using firewalld but tutorial not mentioning about clear instructions to masquerade the squid proxy. Another one is we are using multiple IP on gateways but tutorial setup to send traffic on specific IP only.

However i will again follow the first link and share the issues on this post.

https://www.ivankristianto.com/howto...sparent-proxy/
 
Old 11-09-2017, 10:41 AM   #4
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Original Poster
Rep: Reputation: Disabled
Hello,
I am able to setup a gateway using https://www.ivankristianto.com/howto...sparent-proxy/ link and is working as expected for now.
 
Old 01-09-2018, 03:09 AM   #5
sunnysthakur
Member
 
Registered: Aug 2012
Posts: 92

Original Poster
Rep: Reputation: Disabled
Cool FIXED

Marked it as fixed.
 
  


Reply

Tags
centos7, squid3



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
how to setup squid transparent proxy in centOS 6.4 Meren Linux - Newbie 5 07-02-2015 02:17 PM
Transparent proxy(squid) on non-gateway system prayag_pjs Linux - Server 8 09-22-2010 01:03 AM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM
Squid Gateway / Proxy Server TheRealDeal Linux - Networking 4 12-09-2004 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:53 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