Submitted by martynw on Wed, 11/05/2014 - 11:23 Pro Licensee
My Webmin server is in the USA and I wanted to know if it is possible to use my server as a proxy server so that when I am in France my internet traffic goes through my USA server. I noticed that Webmin includes an HTTP Tunnel so I thought that, perhaps, this functionality is already running on my server? (although HTTP Tunnel seems very slow).
If I need to set up proxy server software, perhaps you could make a suggestion?
Thanks, Martyn
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Wed, 11/05/2014 - 22:01 Comment #1
I'd recommend using Squid as a proxy - it is available on all Linux distributions, and there is a Webmin module for configuring it.
Submitted by martynw on Mon, 11/10/2014 - 14:01 Pro Licensee Comment #2
I tried to install the module, but it won't let me because my Webmin is version 1.660. How do i update Webmin? Some documentation online (http://www.webmin.com/updates.html) says: " To have updates installed automatically, go to the Webmin Configuration module, click on Upgrade Webmin and use the form in the Update Modules section." BUT there is no such option in my Webmin administration.
Submitted by andreychek on Mon, 11/10/2014 - 14:07 Comment #3
It sounds like Webmin may not have been updated in awhile.
When you initially installed Webmin/Virtualmin, was that done using the install.sh script?
Also, what is the output of these two commands:
ls /etc/yum.repos.d
cat /etc/yum.repos.d/virtualmin.repo
Submitted by martynw on Mon, 11/10/2014 - 14:58 Pro Licensee Comment #4
Yep, it's been a while.
CentOS-Base.repo software_collections_php54.repo virtualmin.repo CentOS-Media.repo virtualmin-bleed.repo
[virtualmin] name=Red Hat Enterprise $releasever - $basearch - Virtualmin baseurl=http://5556633:SSZBTLQ7KMP@software.virtualmin.com/rhel/$releasever/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin gpgcheck=1
[virtualmin-universal] name=Virtualmin Distribution Neutral baseurl=http://5556633:SSZBTLQ7KMP@software.virtualmin.com/universal/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualmin gpgcheck=1
Submitted by andreychek on Mon, 11/10/2014 - 15:04 Comment #5
So just to verify -- if you run "yum update" on the command line, is Webmin showing up as an upgrade option?
Submitted by martynw on Mon, 11/10/2014 - 15:15 Pro Licensee Comment #6
yum update responds:
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: centos.chi.host-engine.com * base: repos.dfw.quadranet.com * extras: mirror.team-cymru.org * updates: centos.mirror.lstn.net addons | 1.9 kB 00:00 base | 1.1 kB 00:00 extras | 2.1 kB 00:00 http://people.redhat.com/rcollet/php54/rhel/5/i386/repodata/repomd.xml: [Errno 1 4] HTTP Error 404: Not Found Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: php54. P lease verify its path and try again
Submitted by andreychek on Mon, 11/10/2014 - 15:23 Comment #7
It looks like one of your repositories, the php54 repo, is causing problems and causing the other repos to not function properly.
I'd suggest removing that one repository, and then trying the update again.
Submitted by martynw on Mon, 11/10/2014 - 15:24 Pro Licensee Comment #8
Okay, could you remind me how I remove it?
Submitted by andreychek on Mon, 11/10/2014 - 15:48 Comment #9
Well, I'm not sure which repo file it is that's causing the problem, though if I had to guess I'd guess the " software_collections_php54.repo" one.
You could try moving that file to say, /tmp, and see if that resolves the problem.
Submitted by martynw on Tue, 11/11/2014 - 05:19 Pro Licensee Comment #10
Okay, that seems to have done the trick as far as updates. Plus I can now install squid in the Webmin modules. After installation I get:
The following modules have been successfully installed and added to your access control list :
Squid Proxy Server in /usr/libexec/webmin/squid (3044 kB) under category Servers
But when I go to servers, Squid is not listed. It is listed in 'Ăšnused modules' but when I click on it I get:
The Squid executable squid does not exist. If you have Squid installed, adjust your module configuration to use the correct path.
The Squid Proxy Server package can be automatically installed by Webmin. Click here to have it downloaded and installed using YUM.
It looks like the installation did not take place correctly?
Submitted by andreychek on Tue, 11/11/2014 - 10:19 Comment #11
What happens when you click the option "The Squid Proxy Server package can be automatically installed by Webmin. Click here to have it downloaded and installed using YUM."
That should perform the Squid package installation for you.
If that's not working though, what error does it give you?
Submitted by martynw on Tue, 11/18/2014 - 04:31 Pro Licensee Comment #12
Yes, that worked fine. Thanks. I just had to adjust the firewall.
Submitted by martynw on Tue, 11/18/2014 - 04:31 Pro Licensee Comment #13
Yes, that worked fine. Thanks. I just had to adjust the firewall.