LinuxQuestions.org
Visit Jeremy's Blog.
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 04-18-2017, 05:05 AM   #1
barani_pd
LQ Newbie
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: RHEL, Fedora, Ubuntu
Posts: 26
Blog Entries: 1

Rep: Reputation: 0
Unable to Start Squid-4 in Fedora 25 fresh install


Hi,
Yesterday I installed Fedora 25. After installing I installed Squid-4.0.17 (default). My external ip is w.x.y.z/28 on enp4s0 and and internal ip is a.b.c.d/22 on enp2s0. The firewalld is configured as below:

internal (active)
target: default
icmp-block-inversion: no
interfaces: enp2s0
sources: a.b.0.0/22
services: ssh mdns samba-client dhcpv6-client squid samba ftp http https pop3 pop3s smtp smtps
ports:
protocols:
masquerade: no
forward-ports: port=80roto=tcp:toport=3128:toaddr=a.b.c.d
source-ports:
icmp-blocks:
rich rules:

external (active)
target: default
icmp-block-inversion: no
interfaces: enp4s0
sources:
services: ssh
ports:
protocols:
masquerade: yes
forward-ports:
source-ports:
icmp-blocks:
rich rules:

Now when starting squid with http_port 3128 sans intercept it starts and works fine. But intercept is added and restart / start it fails to start.

Can someone help me, please. If I failed to provide any further information for clarity, please ask.
 
Old 04-18-2017, 10:43 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I don't really know what you are asking. See this page: https://www.linux.com/learn/weekend-...hing-web-proxy
 
Old 04-19-2017, 04:23 AM   #3
barani_pd
LQ Newbie
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: RHEL, Fedora, Ubuntu
Posts: 26

Original Poster
Blog Entries: 1

Rep: Reputation: 0
I am sorry AwesomeMachine. Thanks for your reply.

In my case Squid 4 version is installed in Fedora 25. After configuring firewalld and squid, it works well without intercept mode, i.e. with
Quote:
http_port 3128
But in intercept mode squid fails to start, i.e. with
Quote:
http_port 3128 intercept

Last edited by barani_pd; 04-19-2017 at 04:25 AM.
 
Old 04-20-2017, 09:52 AM   #4
barani_pd
LQ Newbie
 
Registered: Sep 2009
Location: Bangalore, India
Distribution: RHEL, Fedora, Ubuntu
Posts: 26

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Squid occasionally needs to generate URLs for clients to fetch supplementary content. Images in error pages or FTP and Gopher indexes, cache digests, NetDB, cache manager API, etc.

In order to produce a valid URL Squid requires a port configured to receive normal forward-proxy traffic. The standard well-known port assigned for this is port 3128.

This error occurs when port 3128 has been incorrectly altered into a interception port.

So I left
Quote:
http_port 3128
and added another line
Quote:
http_port 3127 intercept
Voila! The squid started and is working. Thanks to all you guys there.
 
  


Reply

Tags
fedora 25, firewalld, squid


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 boot to fresh Fedora 22 Beta Installation Vypr Fedora - Installation 3 05-25-2015 03:39 AM
How to start squid command when computer start fedora rajunetha LinuxQuestions.org Member Intro 6 10-01-2009 01:48 AM
Fedora 10, Fresh Install , "Could not start Kstartupconfig4" mickeyboa Fedora 1 04-02-2009 03:55 AM
Fedora 8 won't start after fresh install Ab3n Fedora 6 11-29-2007 10:54 PM
FC6 fresh install won't start from XP CD to install XP 2nd ask_save Fedora 2 11-17-2006 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:37 AM.

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