dntpls
Posts: 30
Joined: Tue Oct 02, 2012 7:38 pm
Location: Coburg

Proxy school server

Sat Jan 19, 2013 12:27 pm

Hi everybody,

There have probably been a lot of posts about it.

At my school we have a proxy.

Now my question:

how can i configure the pi to go to the proxy.

And its not supposed to be just for apt, but for everything.

I know i can configure something similar in the browser, but thats not enough.

Furthermore i want to set up a proxy at home , i am using squid3 ubunt server, but it is not working correctly. please Help!!

thx,

Dntpls

User avatar
StevenP
Posts: 57
Joined: Tue Aug 14, 2012 7:55 pm
Location: Germany / UK

Re: Proxy school server

Thu Jan 24, 2013 10:25 am

I got my Pi working through a proxy server using Dr Thornber's super guide below:

Durham Johnston Comprehensive School
Using a Raspberry Pi in School

http://www.durhamjohnston.org.uk/e-lear ... the-server
(link updated 11/2014)

Best of luck!
Steven
Last edited by StevenP on Mon Nov 17, 2014 8:01 am, edited 2 times in total.
"The time has come," the Walrus said,
"To talk of many things..."

dntpls
Posts: 30
Joined: Tue Oct 02, 2012 7:38 pm
Location: Coburg

Re: Proxy school server

Sun Apr 14, 2013 6:49 pm

StevenP wrote:I got my Pi working through a proxy server using Dr Thornber's super guide below:

Durham Johnston Comprehensive School
Using a Raspberry Pi in School
http://www.durham-johnston.durham.sch.u ... Itemid=183

Best of luck!
Steven
Hey Steven,
i tried the stuff you gave me with the link and it didnt work
i get errors of lines were stuff was expected like ";"


I dont know what i can do to get the pi store to work with the proxy

Piminiuser
Posts: 73
Joined: Wed May 30, 2012 1:15 pm

Re: Proxy school server

Tue Apr 16, 2013 12:54 pm

Maybe a Openvpn server?: http://raspberrypihelp.net/tutorials/1- ... r-tutorial

Or a PPTP vpn?: http://raspberrypihelp.net/tutorials/21 ... spberry-pi

Or a squid proxy server https://www.youtube.com/watch?v=PUGPUYmr4lE


Note: Configure your vpn/proxy with a open port. i guess your school is blocking the most ports.

dntpls
Posts: 30
Joined: Tue Oct 02, 2012 7:38 pm
Location: Coburg

Re: Proxy school server

Tue Apr 16, 2013 4:48 pm

Piminiuser wrote:Maybe a Openvpn server?: http://raspberrypihelp.net/tutorials/1- ... r-tutorial

Or a PPTP vpn?: http://raspberrypihelp.net/tutorials/21 ... spberry-pi

Or a squid proxy server https://www.youtube.com/watch?v=PUGPUYmr4lE


Note: Configure your vpn/proxy with a open port. i guess your school is blocking the most ports.
The Connection to the proxy is the problem.
I want to go to the proxy with the pistore but it doesn't have a proxy.conf
Isnt there one proxy file for all programs in raspbian?
Dntpls

Andresen
Posts: 38
Joined: Tue Aug 14, 2012 10:25 pm

Re: Proxy school server

Wed May 01, 2013 8:47 pm

dntpls wrote: The Connection to the proxy is the problem.
I want to go to the proxy with the pistore but it doesn't have a proxy.conf
Isnt there one proxy file for all programs in raspbian?
Dntpls
To use a proxy-server from the command-line, you can define the variable 'http_proxy' or 'ftp_proxy'. Depending on your shell, it's either (for zsh/bash):

Code: Select all

export http_proxy="http://proxy:proxy-port"
export ftp_proxy="http://proxy:proxy-port"
or (for csh/tcsh)

Code: Select all

setenv http_proxy="http://proxy:proxy-port"
setenv ftp_proxy="http://proxy:proxy-port"
Replace "proxy" with either IP or hostname for the proxy-server and replace "proxy-port" with the portnumber for the proxy. If your proxy requires authentication, you need to add that (like username:password@proxy or Domain\username:password@proxy).

Note: These changes will only work for processes started from the running shell .. and only until you exit the running shell. To make them permanent, you should add them to your shell's config-file.

Hope this helps.

Regards,
Andresen

geekinthesticks
Posts: 96
Joined: Fri Feb 08, 2013 7:22 pm

Re: Proxy school server

Thu May 02, 2013 9:11 am

Probably what you need is a transparent proxy. Normally this would be on your default gateway. All traffic to port 80 will normally end up going through your gateway, so you set up an ip chains rule on the gateway to route all traffic to port 80 on the gateway via squid's port (3128 by default). Thus you don't need to change anything on any of the computers connecting to the gateway.

If you think this might be what you want, I can provide more details on how to do it.

dntpls
Posts: 30
Joined: Tue Oct 02, 2012 7:38 pm
Location: Coburg

Re: Proxy school server

Thu May 02, 2013 5:57 pm

geekinthesticks wrote:Probably what you need is a transparent proxy. Normally this would be on your default gateway. All traffic to port 80 will normally end up going through your gateway, so you set up an ip chains rule on the gateway to route all traffic to port 80 on the gateway via squid's port (3128 by default). Thus you don't need to change anything on any of the computers connecting to the gateway.

If you think this might be what you want, I can provide more details on how to do it.
Thanks for the help both of you.
I really appreciate it.
My Proxy is running squid 3.19 on ubuntu 12.04.
I set up the proxy about a month ago and it works fine.
I configured it to allow all connections, because it's just a gateway, no ad-blocker or anything.
But with my Android-Phone (LG nexus 4) i cannot give internet to games and apps with the proxy (apps/games like speedtest.net (only shows ping and download and an error on upload) and Shadowgun: Deadzone (says cannot contact server when playing deatmatch) (these are just examples)). The Android phone uses a Fritz.Box to connect to the proxy and thus connect my phone to the internet. :D
And on the pi the pi store loads but doesn't show any programs and loads constantly.
So i think it has to do with the config.
I will take a look at it and will post my findings. :D
I know I shouldn't write it in this post, but does someone know how to decompile any programm to assembly? :?:
thx,
Dntpls
---------------------------------------------------------------------------------------------------
Still working on DFO (the online Dwarf Fortress for the Pi)
I have the maps done just gotta build the GUI and the server.
Happy for someone to help me :D
It'll be totally awsome.

Return to “Networking and servers”