Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
- rm /etc/apt/sources.list
- echo "
- deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse
- deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
- " >> /etc/apt/sources.list
- apt-get -o Acquire::ForceIPv4=true update
- apt-get -o Acquire::ForceIPv4=true install squid3 -y
- cd /etc/squid3/
- rm squid.conf
- rm /etc/apt/sources.list
- sudo cp /etc/apt/sources.list_backup /etc/apt/sources.list
- cd /etc/systemd/system
- echo "
- [Unit]
- Description=KobeKobz Squid Web Proxy Server
- Documentation=man:squid(8)
- After=network.target network-online.target nss-lookup.target
- [Service]
- Type=forking
- PIDFile=/var/run/squid3.pid
- ExecStartPre=/usr/sbin/squid3 -z
- ExecStart=/usr/sbin/squid3 -sYC
- ExecReload=/bin/kill -HUP $MAINPID
- KillMode=mixed
- [Install]
- WantedBy=multi-user.target
- " >> squid.service
- cd /etc/
- cd /etc/squid3
- rm squid.conf
- echo 'http_access allow all
- http_port 8008
- visible_hostname CryNet
- httpd_suppress_version_string off
- via off
- reply_header_access X-Squid-Error deny all
- cache_mgr KobeKobz
- error_directory /usr/share/squid3/errors/English' >> squid.conf
- cd /usr/share/squid3/errors/English
- rm ERR_INVALID_URL
- echo '<!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>CRYNET</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
- <link rel="stylesheet" href="https://bootswatch.com/4/slate/bootstrap.min.css" media="screen">
- <style>
- body {
- font-family: 'Press Start 2P', cursive;
- }
- .fn-color {
- color: #ffff;
- background-image: -webkit-linear-gradient(92deg, #f35626, #feab3a);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- -webkit-animation: hue 5s infinite linear;
- }
- @-webkit-keyframes hue {
- from {
- -webkit-filter: hue-rotate(0deg);
- }
- to {
- -webkit-filter: hue-rotate(-360deg);
- }
- }
- </style>
- </head>
- <body>
- <div class="container" style="padding-top: 50px">
- <div class="jumbotron">
- <h1 class="display-3 text-center fn-color">CRYNET</h1>
- <h4 class="text-center text-danger">SERVER</h4>
- <p class="text-center">๐ <a href="https://me.crynet.pro/">%w</a> ๐</p>
- </div>
- </div>
- </body>
- </html>' >> ERR_INVALID_URL
- chmod 755 *
- cd /etc/
- mkdir squid
- ln -s /etc/squid3/squid.conf /etc/squid/squid.conf
- systemctl enable squid
- systemctl start squid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement