Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 925777 Details for
Bug 1128000
Can not download packages from cds server with proxy server.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
script to set up squid proxy for the purpose of reproducer
squid-auth-setup.sh (text/plain), 1.39 KB, created by
mkovacik
on 2014-08-11 14:17:02 UTC
(
hide
)
Description:
script to set up squid proxy for the purpose of reproducer
Filename:
MIME Type:
Creator:
mkovacik
Created:
2014-08-11 14:17:02 UTC
Size:
1.39 KB
patch
obsolete
>#!/bin/bash >umask 0077 >exec 1>/tmp/squid_setup.log >exec 2>&1 > >set -x >set -e > >function rand_string() { > # $1: length > # $2: start (dec) into the ASCII table > # $3: end (dec) into the ASCII table > declare -i len=${1:-32} > declare -i lo=${2:-40} > declare -i hi=${3:-126} > # sanity > [ $len -gt 0 ] && [ $lo -gt 0 ] && [ $hi -gt 0 ] || return 1 > if [ $lo -gt $hi ] ; then > local tmp=$hi > hi=$lo > lo=$tmp > fi > declare -i i=0 > declare -i val=0 > while [ $i -lt $len ] ; do > i=$[ i + 1 ] > val=$[ (RANDOM % (hi - lo)) + lo ] > printf \\$[val/64*100+val%64/8*10+val%8] > done >} > > >PROXY_PASSWORD=`rand_string 8` >PROXY_USER="rhui-client" > >yum -y install squid httpd-tools >htpasswd -bc /etc/squid/passwd $PROXY_USER $PROXY_PASSWORD >chown squid:squid /etc/squid/passwd >echo 'auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd' > /etc/squid/squid.conf.new >echo 'acl auth proxy_auth REQUIRED' >> /etc/squid/squid.conf.new >cat /etc/squid/squid.conf | sed 's,allow localnet,allow auth,' >> /etc/squid/squid.conf.new >mv -f /etc/squid/squid.conf.new /etc/squid/squid.conf >systemctl enable squid.service >systemctl start squid.service >#iptables -I INPUT -p tcp --destination-port 3128 -j ACCEPT >#service iptables save > >cat <<__VARIABLES > /tmp/squid_setup_variables.sh >PROXY_PASSWORD=$PROXY_PASSWORD >PROXY_USER=$PROXY_USER >__VARIABLES
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1128000
: 925777