Issue setup Transparent proxy and Gateway using Squid on CentOS 7
Hello,
We are migrating our gateways from CentOS 6 to CentOS 7 and for setting up a transparent proxy using squid and Firewalld i am using below configuration. #Firewalld configurations PHP Code:
PHP Code:
PHP Code:
however we tried disable Firewalld and use iptables instead on CentOS 7 but this setup even not working (even internet not working) Previously gateway was setup on CentOS 6 and was working fine with below configuration and there wasn't any issue like we fare facing as above. #Allow LAN Network in squid.conf [Version 3.1.23] PHP Code:
PHP Code:
|
Ditch firewalld and use iptables directly instead.
Install the iptables-services package and you can set iptables up in systemd to automatically start. firewalld is pretty much a wrapper around iptables anyway and if you're more familiar with iptables (as your post suggests) then just go with it :) |
I tried using iptables on CentOS7 and below iptables rules script but internet is not working. However same is working on CentOS6
PHP Code:
|
Plz help ! i still facing the same issue.
|
Quote:
https://www.linuxquestions.org/quest...nt-4175490846/ ...you have been a Linux administrator for ELEVEN YEARS now. Have you done ANY troubleshooting/diagnostics, or examined and thought about the problem? If it's working on CentOS 6 and *NOT* working on CentOS 7, then there are obviously differences in the software between the two. Start by enabling your iptables rules one at a time, and see when things break. Look at log files. Without further information other than "not working", there's little we can tell you. |
FIXED
Hello @TB0ne
Yes, i troubleshoot it and went through almost all blogs and posts for setting it up. Actually it is working fine when i am going to setup on CentOS 6 as our current gateways are on 6 version. On setting up gateways on CentOS 7 its giving issue as per the setup we have. It didn't say that nothing was working but some things work but some aren't as we are using multiple series in network. Anyway, i posted this as i require help on where i was facing issue but still i troubleshoot and googled and make it working. I disabled NetworkManager and firewalld and use legacy network and iptables to get it working on CentOS7. Firewalld and NetworkManager are kind of wrappers which causes this issue. Now this is fixed and thanks for providing me details. |
FIXED
After modify the squid configuration it get working. Please follow the link for more details.
|
All times are GMT -5. The time now is 12:53 PM. |