Squid, Squidguard IP address and Port in URL
-
Hello,
Is there a way to use Ip address and different HTTP port (example 8000) in URL for filtering?
-
Not that I'm aware of.
-
Can we do it, with or without pfsense?
-
Isn't URL redirection something you do with your web server?
-
Can I use web server as a transparent proxy?
-
Well, no of course not, but you can tell your web server to redirect requests to a specific page to another page.
http://httpd.apache.org/docs/2.4/rewrite/remapping.html
https://www.digitalocean.com/community/tutorials/how-to-create-temporary-and-permanent-redirects-with-apache-and-nginx
https://www.linode.com/docs/websites/apache-tips-and-tricks/redirect-urls-with-the-apache-web-server
http://www.yolinux.com/TUTORIALS/ApacheRedirect.html
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
-
Thanks for you help, KOM.
But I have not web server.
I have a host PC only. There is a remote WEB Server (It's not mine)
I want to redirect URL request to Remote WEB serverFor example
When 192.168.1.10 Ip connect to http://208.123.73.68:8080/index.php?action=post;topic=95749.0
I want redirect to http://208.123.73.68:8080/index.php?action=post;topic=8000.0 -
Not possible with squid or pfSense by itself. Squid relies on external redirectors like squidguard, so maybe you could write a small script that does the redirection you require.
-
I don't have an idea how I can write script.
An example script will be good. If it's easy maybe a programmer help me. -
Either learn to do it yourself, pay someone to do it with a Bounty, or search online to see if someone already made such a thing.