Proxy (Squid3) setup Error

5 respostas [Última entrada]
aniketg
Desconectado
Joined: 04/04/2015

I have 2 systems: 1 runs Trisquel 7.0 and other Manjaro 0.8.12.
They are connected through a switch (which gets output from router).
I have connected to internet from Trisquel and want to connect Manjaro through it.

In order to do this I tried setting up squid server on triesquel. Manjaro IP is allowed in the configuration.
I can ping trisquel IP from Manjaro but cannot connect to Internet with error "Connection Refused" or "connection timed out".

Following is the code from the squid.conf:

http_port 3128
acl localnet src 192.168.1.0/24 # RFC1918 possible internal network
http_access allow localnet
http_access allow localhost

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

As far as I understand you (it is not that clear), the Trisquel system has two network interfaces. An Ethernet interface and a Wifi interface I guess (all laptops and some desktops have that). You can connect the Trisquel system with the Ethernet cable and then the other system (have you tried Parabola GNU/Linux, which is based on arch and 100% free?) connects through Wifi. To do that, the Trisquel system must act as an access point. There is a button for that at the bottom of the "Network" window (launched from the "System settings"). I used to do that some versions ago and the package "dnsmasq" had first to be installed (from the "Synaptic package manager" for instance).

aniketg
Desconectado
Joined: 04/04/2015

Let me try to explain my problem. Forgive for confusion
Both of the systems are connected through wired switch (I dont have any wifi device). I can use internet on any one at a time. However, I want to use internet simultaneously on both systems.

For this, I tried to setup squid server (trisquel server with local IP 192.168.1.1) and use its proxy on other (Manjaro client with local IP 192.168.1.2).
As of now, I can successfully ping squid server through client.
But, Manjaro client cannot connect to Internet. I get error as connection refused. What is going wrong?

Magic Banana

I am a member!

I am a translator!

Desconectado
Joined: 07/24/2010

If both systems are connected through the switch, then both systems should be able to simultaneously access the net. That is what a switch is for! You need not make the packets pass from one system to the other. Maybe your DNS is not properly configured. Can you ping remote IP addresses from both systems? 'ping' gives you the sequence of numbers that make the IP address.

Sachin
Desconectado
Joined: 06/02/2012

I think you didn't configure a transparent proxy.
Did you configure your other system to use the proxy server?

Did you check whether the squid daemon is running and socket connection
has been opened for listening on port 3128?

aniketg
Desconectado
Joined: 04/04/2015

I was able to sort this out. Line in the configuration was not allowing it:
http_access deny all
I changed it to http_access allow all

Now it is working.