General :: Squid Redirect To Another Weburl?

Dec 21, 2010

is there any built-in option in squid to redirect a website URL to another URL?

View 2 Replies


ADVERTISEMENT

General :: Cannot Redirect URL To Another URL When The Link Is Down With Squid

Jun 10, 2010

i have installed squid 2.6 on my centos. i have writen a shell script to ping a network and write to a file. write '1' if network up and '0' if network down. After that,a perl script will read the file and do the redirection.Perl will redirect to a fix URL [URL] if the network down and do nothing when it up. i have put my perl script in squid.conf at url_rewrite_program /my_file_path.

below is my shell script for pinging:

Quote:

#!/bin/bash
while [ 1 ]
do
HOST=143.148.137.134

[code]....

My problem is client browser are not redirect to www.google.com even the network is down. It should go to the fix URL when the user click any URL in network down situation.it just appear cannot resolve host.

View 1 Replies View Related

General :: Redirect One Url To Other Squid Proxy Server?

Jul 5, 2010

I am using squid server. I want to redirect one perticular url request to other squid proxy server .

View 1 Replies View Related

Networking :: Redirect Squid To Another Gateway

Mar 31, 2010

I have recently just got another internet connection at home via cable as well as my exisiting DSL connection. I was wanting all my web browsing that I did via squid to be redirected down the cable connection. The box has a single nic at the moment and the default route sends it via the dsl connection for the mail server that is also running on the box.I was hoping that anything that hit squid would go down the cable connection that is plugged into a router and thus I can route to 172.16.2.251 and everything will go out via cable.

I was reading about iproute2 and marking the packets and is wondering whether this is the way to go?

View 3 Replies View Related

Ubuntu Servers :: Redirect All Network To Squid?

Apr 28, 2010

I've been having a hard time googling and trying to get ALL network connection to be redirected to squid proxy. I couldn't find a proper configuration for ufw or iptables. The ideas are:

1. redirection rule should NOT depend on a specific network inteface, but should work with any connection type, ex.: ppp0 or eth0... 2. firewall rules can be for firehol, iptables, or ufw (the same as iptables, just tell me where to place them). Preferably ufw or gufw. 3. should not interfere on cups web interface and lighttpd server.

BTW: it's not a ubuntu server install

View 6 Replies View Related

Networking :: How To Redirect Http Request In Squid ?

Jan 10, 2011

Hi,
In squid i have blocked some sites like facebook and ......I want to know is there any way when user type in his browser like www.facebook.com instead it show something like following it automatically redirect to www.google.com

Error
The requested URL could not be retrieved
The following error was encountered:
Access Denied.

Basically I want to redirect the http request so the user should not see the page not found error but www.google.com page may open automatically.

thanks
garden

View 2 Replies View Related

Server :: Squid Doesn't Redirect To Squidguard

Dec 17, 2009

I use CentOS 5.4, Squid version 2.6 , squidGuard version 1.2. Squid works properly, squidGuard also works properli. I want to redirect all requirests from [URL] to [URL]. It seems that squidguard works:

Code:

[root@main ~]# echo "http://www.sex.com 127.0.0.1/ - - GET" | squidguard -c /etc/squid/squidguard.conf
http://www.infoborder.com 127.0.0.1/- - -
[root@main ~]#

But if I want to access site [URL] with a browser which is connected to squid, my browser get me the site [URL]

View 3 Replies View Related

Software :: Using Squid/Iptables To Redirect Inbound Web Traffic To Url/IP

Jan 13, 2010

We host a web server in which we are hoping to implement some form of traffic redirection based on source IP address, and I am wondering whether the squid proxy built on iptables would be capable of managing this task? Essentially we are trying to redirect traffic from specific set of source IP ranges to a "Your IP has been restricted" type of page at a different IP/FQDN.

View 2 Replies View Related

Server :: Redirect All Client Http Request To Https Request In Squid?

Jun 25, 2010

how to redirect all client http request to https request in squid

View 1 Replies View Related

Software :: Squid 3.0 Access List / Remove Redirect Statement From Iptables All Internet Access Is Blocked?

Jun 11, 2010

I have an old FC2 box running Squid version 2.5. It has been running since 2003 so I am in the process of replacing it. I have a new machine with FC11, iptables, and Squid 3.0 installed.

On the old machine I use iptables to intercept Port 80 traffic and send it to Squid. By default I block all internet access and allow only sites that are in an Allowed_Sites.txt file. Within Squid I also have statements to allow certain users to bypass Squid based on their IP address.

I have set up the same thing on the new box. I have iptables intercepting the Port 80 traffic and sending it to Squid. That is working because if I remove the redirect statement from iptables all internet access is blocked.

The problem I am having is that Squid is not blocking any websites. It acts like the ACL is set to http_access allow all. I have worked on this for several hours and am stumped.

These are my Squid rules:
acl allowed_sites url_regex "/etc/squid/Allowed_Sites.txt"
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl SSL_ports port 443
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow Bypass_Users
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.1.0/24
http_access allow allowed_sites
http_access allow our_networks
http_access deny all
icp_access deny all
htcp_access deny all
http_port 192.168.1.254:3128 transparent
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|?) 0 0% 0
refresh_pattern . 0 20% 4320
visible_hostname FC11.proxybox
icp_port 3130
coredump_dir /var/spool/squid

View 2 Replies View Related

General :: Squid Access / Permission Denied Error From Squid Occur?

Dec 29, 2010

I am using squid to controlling access to the internet all is working fine expect one of the user who is using outside organization portal to connect internet. But whenever he tries to enter in the portal by typing (EXAMPLE)url. Permission denied error from squid occur.

How can i allow this portal in squid. So squid will allow this to access.

View 1 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Server :: Tools - Squid Accounts - To Create - Change - Modify Users Of Squid And To View Their Logs

May 23, 2010

My squid server works fine in fedora 11 system . Is there any web like interface for admins to create,change,modify users of squid and to view their logs.

View 1 Replies View Related

CentOS 5 Server :: Squid Proxy Configuration SQUID 2.6.STABLE21

Jan 17, 2011

I would like to ask some help and tutorial for setting up and how to configure squid proxy server in my (Home PC Server). I am a newbie in Linux Centos. I already installed in my system the CentOS 5.5 . Now, I want to configure it as my internet server, all of my 4 system running in Windows including the laptop I want to connect through my CentOS pc with username authentication. I assign all IP address by static. see tthe attachement in my set up. [url] I just want to know what I need to change and add in my squid config file. And how can I configure properly my CentOS with 2 LAN card as internet server.

View 1 Replies View Related

General :: Redirect Set -x To File

Jun 14, 2010

I know that set -x can be used for debugging a shell script.But I want to redirect the output of set -x to a text file.eg: Say test.sh is my script,

View 3 Replies View Related

General :: Redirect Output From Dd Command?

Apr 7, 2010

How to redirect output from dd command to /dev/null ?

View 2 Replies View Related

General :: Redirect Input From One Terminal To Another

May 26, 2010

I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect the input from one to the other.And then when I type in /dev/pts/29 the characters I type should show up in /dev/pts/130. However what ends up happening is that every other character I type gets redirected.

View 2 Replies View Related

General :: Redirect Domain Name To Localhost?

Jun 1, 2010

I have a linux test machine which I would like to run a copy of a production webserver. This is a legacy application which does not use a property file for its server name. Throughout the application, the server name is hardcoded (example: open connection to myServer.myCompany.com).

Is there any linux trick which I can use to redirect all requests for a certain host back to localhost? I know in Windows that I can add an entry to the hosts file and have it redirect back to localhost. How do I do this in linux?

View 2 Replies View Related

General :: Why Does Nginx Redirect To A Strange URL

Aug 7, 2010

I had just set up nginx on my server. I have PHP and everything working okay. Except when I try the URL

http://xxx.xxx.xxx.xxx/123

I get redirected to

http://_/123

but when I try the url

http://xxx.xxx.xxx.xxx/123/

It works just as I want it to. How can I get nginx to treat the slashless url decently?

View 2 Replies View Related

General :: Redirect Port To Another Machine?

Sep 29, 2010

My poblem: At work I have a proxy with some closed ports. I need to connect to an Oracle DB on some DB_IP at port 1521. DB_IP is a public IP. What I Have: At home, I have a Linux machine and a Linksys WRT54G Router. What I need: How can I do to communicate a PC at work with DB_IP:1521?

View 1 Replies View Related

General :: Pipes And Redirect / When To Use Theses?

Jul 31, 2011

Although this is a basic stuff, but still i wonder.
Consider these two examples. code...

I wonder, why doesn't redirection work in first case? when to use redirect and when to use pipes? I have been Linux for a long time, but still this basic stuff baffles me.

View 2 Replies View Related

General :: How To Redirect Wget To Standard Out

Aug 9, 2011

I have a crontab that wgets a PHP page every five minutes (just to run some the PHP code), and I want to send the output to /dev/null. I couldn't find it in the wget manual.

I'm looking for something like:

wget -o stout http://whatever.com/page.php > /dev/null

View 4 Replies View Related

General :: Application Redirect To File

Aug 5, 2010

i want to redirect application to file.i m redirecting it by command
konsole -e 'application name' >> applog.txt
but it is not working.

View 6 Replies View Related

General :: .htaccess To Redirect All Requests To Another URL?

Apr 16, 2010

I would like to setup .htaccess to redirect every request to one website regardless of folder/filename combination to another URL.For example[URL]

View 1 Replies View Related

General :: Redirect Some Databases To Another Directory?

Jun 22, 2011

My /var/database/ directory is filled..!
Is there any way to redirect some databases to another directory .

View 4 Replies View Related

General :: Redirect All Outputs From /dev/console To /dev/pts/0?

Aug 9, 2010

The serial console is for debugging and will physically disappear when product is mature. However, there are many background processes that may print out statuses/results. These go to /dev/console or serial console. Telnet will be the only way to get a console. I tried netconsole (with netcat) and it works, but it is only for kernel printk messages. I tried "program > /dev/pts/0" and it works also. it would be better if I can just change/add the console /dev/pts/0 to the existing /dev/console.

View 3 Replies View Related

General :: Proxy Server - Redirect ?

Sep 26, 2009

We installed the apache server on oraapps.yan.com. we are planning to use as a proxy server.we have 4 servers inlcuding oraapps.yan.com. Each of them has 3 or more applications. I would like to redirect them to oraapps.yan.com. is it possible. if its how to do that.

View 2 Replies View Related

General :: Redirect Method In Apache

Apr 17, 2010

How to redirect one website to another website in apache.

For example: when i type www.example.com in my browser then it redirect to www.example.com/beta. so how i do in apache, i am using centos 5.

View 1 Replies View Related

General :: Apache Redirect For URL With Encoded Characters

Jun 15, 2011

I have a URL that I'm trying to redirect back to the homepage on my site. For some reason since it contains hex I can't seem to get it to work.

A sample source URL is:

[url]

The destination URL is:

[url]

I've tried many different things to no avail.

Some things include:

Redirecting source URLs with REG_LOGINfromURL will get me what I need. Some of my examples work when the source URL does not contain enconded characters, so if the URL was instead [url] it would redirect.

I'm running RHEL 4 and Apache/2.0.52.

View 2 Replies View Related

General :: Redirect From A File Into An Actual For Loop?

Apr 11, 2011

I multi-boot several Linux distributions with an assortment of additional data partitions. I get frustrated whenever fsck is forced during boot. (It ONLY happens when I'm in a hurry don't you know...) So I wrote a script to automate forced fscking when I do have the time. (And/or while I'm doing something else in another workspace.

Because I multi-boot, I've learned that udev doesn't always assign the same device name to each drive for all distributions. I've had the same partition identified as hda5, sda5, & sdb5 by different distributions (without doing anything to affect the boot order) So my solution is to keep a list of partitions in a specific file on each distro with valid device names according to that distribution's udev process. Actually I'd use LABEL= instead but the labels don't show up in /etc/mtab, and I like to make sure a partition isn't mounted before I try to fsck it.

I can make this work in a for loop using cat. But I've seen so many things about NOT using cat that I wanted to rebuild my script. I can make this work with a redirect instead of cat via a while loop, But I "LIKE" old style for loops. But I can't seem to find a way to make a redirect work with one. I thought this might make a good first �LinuxQuestions.org� question. I'm also open to any other suggestions on better/alternative methods... Is it possible to redirect from a file into an actual for loop?

My script is as follows:

Code:

#!/bin/bash
# FsckEm I script to force file system checking on unmounted ext2/ext3/ext4
# partitions in preselected list. FsckEm accepts no options. Partition

[code]....

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved