david_1234
Posts: 194
Joined: Mon Jan 01, 2018 2:14 pm

Question - Can PI be a http\https web proxy?

Sun Jun 23, 2019 7:46 am

I want to make a proxy server as a project for school .
so I will be monitor all https+https traffic and also will be able to change \block all kind of things and push information to the users.
for example :
block jpg images
rotate img file
block website
redirect known websites
**** this is just an example for what I wnat to do....

I saw this project
https://www.dinofizzotti.com/blog/2019- ... erry-pi-3/

but as I understadn I need to use the PI WIFi , I don't want to

Thanks ,

ankith26
Posts: 103
Joined: Mon Mar 25, 2019 11:08 am
Location: Earth
Contact: Website

Re: Question - Can PI be a http\https web proxy?

Sun Jun 23, 2019 9:17 am

I am not getting your question... Could you be more precise
My website is at https://pratt.ml
Hope it runs (which it wont)

Andyroo

Re: Question - Can PI be a http\https web proxy?

Sun Jun 23, 2019 12:15 pm

Also a bit baffled but you could add a USB to Ethernet adapter to the Pi and use eth0 and eth1 as the ports.

Concern I have is this is not a simple project and if you are struggling to understand the changes needed for two Ethernet links compared to WiFi and Ethernet there is not a lot more I could aid you with.

Good luck.

david_1234
Posts: 194
Joined: Mon Jan 01, 2018 2:14 pm

Re: Question - Can PI be a http\https web proxy?

Thu Jun 27, 2019 9:18 am

I think you totally misunderstand me :-)

I want to make the pi work as https web server inside my netwrok

this all I want to do...

how can I do this?

Andyroo

Re: Question - Can PI be a http\https web proxy?

Thu Jun 27, 2019 12:04 pm

Your first post is not a web server.

If you want a basic web server then here are two guides https://www.raspberrypi.org/documentati ... /README.md

david_1234
Posts: 194
Joined: Mon Jan 01, 2018 2:14 pm

Re: Question - Can PI be a http\https web proxy?

Sun Jun 30, 2019 1:33 pm

I don't understand how what you wrote help me :-)

I know I can install this - but how to make the pi to be a https proxy server ?
this is what I wnat to know and do

Thanks,

User avatar
rpdom
Posts: 15363
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Question - Can PI be a http\https web proxy?

Sun Jun 30, 2019 1:49 pm

Perhaps look at Squid http://www.squid-cache.org which is available in Raspbian.

"Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more."

Timescale
Posts: 24
Joined: Wed Jun 26, 2019 5:09 pm

Re: Question - Can PI be a http\https web proxy?

Sun Jun 30, 2019 2:01 pm

From your original post and the link you provided, I assume you still want a proxy server and not just a local web server. I only have experience with Squid and that is from some years ago.

You actually do not need to use 2 interfaces. 1 is enough. the 2 interface setup is used to separate the local network from the network that has a direct connection to the internet. In most cases this setup makes to most sense as it provides the most secure setup, but using a proxy server inside the local network is perfectly fine.

After all, a proxy is just another service. (squid running on port 3128 by default). You can simply configure your browser to use that service.

First step is to get a proxy (like Squid) installed and configured. There are plenty of manuals to guide you on that. When you got this working by testing it on a browser on another machine in the network, you can start thinking about filters.

david_1234
Posts: 194
Joined: Mon Jan 01, 2018 2:14 pm

Re: Question - Can PI be a http\https web proxy?

Mon Jul 01, 2019 10:00 am

OK
I read and did some configuration
but I think I did something wrong
I have added in the squid.conf this line in the

Code: Select all

 http_access allow all
 #http_access deny all
and added this line in the end

Code: Select all

acl blocksite1 dstdomain yahoo.com
acl blocksite2 dstdomain www.rediff.com
http_access deny blocksite1
http_access deny blocksite2

acl blockkeyword1 url_regex gmail
http_access deny blockkeyword1

but the service didn't came up
then I did this :

Code: Select all

acl blocksite1 dstdomain yahoo.com
acl blocksite2 dstdomain www.rediff.com
#http_access deny blocksite1
#http_access deny blocksite2
and the service is up but I can't go anywere
no metter which website Im trying I get connection time-out

does someone know what is worng?

I can see the router is connected to the squid
Thanks,

Return to “Beginners”