1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[METHOD] How to setup you PRIVATE PROXY on your VPS Cheep

Discussion in 'Proxies' started by snakeccc, Feb 20, 2015.

  1. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    Hello everyone, First thanks for reading this peace of text. This is my small giveaway to community. Today, we will learn how to setup our Linux VPS and our own Private Proxy. It is one very simple method that I use a lot. In this method I'll use DigitalOcean for my Linux VPS because I will pay only for usage/h, you can use your own VPS for this method.

    conccc.png

    NON REFFERAL LINK :

    Code:
    [URL]http://digitalocean.com/[/URL]

    CREATE DROPLET



    So, lets start. First I will create new Droplet(name for VPS) on DigitalOcean. We will use VPS that has cheepest price per hour so we can create etc 10 Private Proxies :

    STEP 1: Enter Dreplet Hostname
    Code:
    etc. BHWDroplet (this will be your droplet name)
    STEP 2: Select Size - As I said we need cheepest price per hour

    Code:
    $5/ month (max)
    [COLOR=#00ff00][B]$0.007 / hour[/B][/COLOR]
    512 MB RAM
    1 CPU
    20 GB SSD Disk
    1000GB Transfer
    


    STEP 3: Select server Region
    Code:
    etc. NEW YORK
    STEP 4: Select Image

    Code:
    [COLOR=#00ff00][B]CENTOS 6.5 x64[/B][/COLOR]

    STEP 5: Create Droplet

    Our Droplet will be ready in about minute, we need to check our email to get our VPS informations, informations that we need are:

    Code:
    Droplet Name: SnakecccBHW
    [COLOR=#00ff00]IP Address: ###.###.###.###[/COLOR]
    [COLOR=#00ff00]Username: root[/COLOR]
    [COLOR=#00ff00]Password: jmwdasdasd[/COLOR]
    



    FINALLY, PRIVATE PROXY SETUP

    Now we need to download PUTTY our PC, we will access our VPS with that cool software.

    Code:
    [URL]http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html[/URL]
    STEP 1: Putty Login
    Unzip PUTTY and open aplication , enter your SERVER IP ADDRESS and click OPEN. Enter your USERNAME(root) and PASSWORD and follow next steps in order to change your PASSWORD. Once we have done this, we will need to update all of the different packages.

    Code:
    yum -y update
    
    STEP 2: Install HTTP Server Tools
    Once all of the packages are updated, we need to install HTTP Server tools:

    Code:
    yum install httpd-tools
    
    STEP 3: Install Nano Text Editor and Squid Proxy
    Now we need to install Nano text editor and Squid Proxy Server:

    Code:
    yum install -y nano squid
    

    STEP 4: Edit Squid Config file
    When the Squid is installed, are going to create backup of configuration file.

    Code:
    cp /etc/squid/squid.conf /etc/squid/squid.conf.bak
    
    Now we can edit our Squid config file with Nano text editor:

    Code:
    nano /etc/squid/squid.conf
    
    Clear everything in this file ( Hold CTRL+K), and paste following:
    PLEASE CHANGE YOUR PERSONAL IP ADDRESS AND SERVER IP ADDRESS IN CODE

    Code:
    #A Port you would like to use
    http_port 3128
    
    acl manager proto cache_object
    acl localhost src 127.0.0.1/32 ::1
    acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
    acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
    acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
    acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
    acl localnet src fc00::/7 # RFC 4193 local private network range
    acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
    
    acl SSL_ports port 443
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 # https
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl CONNECT method CONNECT
    
    http_access allow manager localhost
    http_access deny manager
    http_access allow localnet
    http_access allow localhost
    hierarchy_stoplist cgi-bin ?
    coredump_dir /var/spool/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
    [COLOR=#00ff00][B]#Your Personal IP to allow without authentication[/B][/COLOR]
    acl myclients src [COLOR=#00FF00][B]###.##.##.### [/B][/COLOR]
    #Allow this IP without authentication 
    http_access allow myclients 
    
    [COLOR=#00ff00]#If you are on a 32 bit machine, remove the 64 from /lib64/[/COLOR]
    auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/squid_access 
    auth_param basic childred 5
    auth_param basic realm Squid proxy-caching web server
    auth_param basic credentialsttl 2 hours
    acl ncsaauth proxy_auth REQUIRED
    http_access allow ncsaauth
    forwarded_for off
    
    [COLOR=#00ff00][B]#Enter your servers IP here.[/B][/COLOR]
    acl ip1 myip [COLOR=#00ff00][B]###.##.##.### [/B][/COLOR]
    tcp_outgoing_address [COLOR=#00ff00][B]###.##.##.###[/B][/COLOR] ip1 
    
    request_header_access Allow allow all 
    request_header_access Authorization allow all 
    request_header_access WWW-Authenticate allow all 
    request_header_access Proxy-Authorization allow all 
    request_header_access Proxy-Authenticate allow all 
    request_header_access Cache-Control allow all 
    request_header_access Content-Encoding allow all 
    request_header_access Content-Length allow all 
    request_header_access Content-Type allow all 
    request_header_access Date allow all 
    request_header_access Expires allow all 
    request_header_access Host allow all 
    request_header_access If-Modified-Since allow all 
    request_header_access Last-Modified allow all 
    request_header_access Location allow all 
    request_header_access Pragma allow all 
    request_header_access Accept allow all 
    request_header_access Accept-Charset allow all 
    request_header_access Accept-Encoding allow all 
    request_header_access Accept-Language allow all 
    request_header_access Content-Language allow all 
    request_header_access Mime-Version allow all 
    request_header_access Retry-After allow all 
    request_header_access Title allow all 
    request_header_access Connection allow all 
    request_header_access Proxy-Connection allow all 
    request_header_access User-Agent allow all 
    request_header_access Cookie allow all 
    request_header_access All deny all
    
    #Allocate 3GB for Caching
    cache_dir ufs /var/spool/squid 3000 16 256 
    #Maximum Cache Object 1GB
    maximum_object_size 1024 KB 
    #Use 1GB RAM for Cache 
    cache_mem 1024 MB 
    
    Save file by clicking CTRL+O, then ENTER. After that just exit by clicking CTRL+X


    STEP 5: Generate cachhe directory
    We need to generate our cache directories and enable squid to start when we boot the server.
    Code:
    squid -z
    
    Code:
    chkconfig squid on
    
    STEP 6: Create Proxy Username and Password
    Add user for our proxy. Change USER to the username you would like to use.

    Code:
    touch /etc/squid/squid_access; htpasswd /etc/squid/squid_access [B][COLOR=#00ff00]USER[/COLOR][/B]
    
    You will be asked to create a password for USER


    STEP 7: FINISH

    Start Squid server

    Code:
    service squid start
    
    We will tail our incoming connections, just to see that everything works fine

    Code:
    tail -F /var/log/squid/access.log
    
    NOW TEST YOUR PROXY IN FORMAT:

    SERVERIP:pORT:pROXYUSER:pROXYPASSWORD

    etc 192.168.100.111:3128:bhw:5213


    ............REPEAT ALL AND SCALE .................

    ENJOY AND SORRY FOR BAD ENGLISH !! :) :)

     
    • Thanks Thanks x 15
    Last edited: Feb 20, 2015
  2. hpasha

    hpasha Jr. VIP Jr. VIP

    Joined:
    May 15, 2011
    Messages:
    1,340
    Likes Received:
    185
    Location:
    Kepler 186F
    how much it will cost?
     
  3. Onizukafr

    Onizukafr Regular Member

    Joined:
    Sep 2, 2013
    Messages:
    349
    Likes Received:
    108
    Location:
    Google.fr
    Nice tuto, but same question, how much by does it cost by proxy?
     
  4. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    You pay only per hours $0,007/h, if you run your jobs with proxy on droplet 0/24h you will pay $5 per month on total
     
  5. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    For example, I was using my 7 Droplet Proxies last day for 2 hours , and my cost is : $0.07 :D
     
    • Thanks Thanks x 1
  6. Onizukafr

    Onizukafr Regular Member

    Joined:
    Sep 2, 2013
    Messages:
    349
    Likes Received:
    108
    Location:
    Google.fr
    Very usefull if you don't use proxies all the time (like me!!)
     
  7. hpasha

    hpasha Jr. VIP Jr. VIP

    Joined:
    May 15, 2011
    Messages:
    1,340
    Likes Received:
    185
    Location:
    Kepler 186F

    that's cool.. and what you said that if someone joins digital ocean from your referrer then he will get $10 in balance? So we can have around 2 months of free VPS?
     
  8. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    Yes it is true, everyone i reffer gets $10 in credit. If you accumulate $25 in your bilings in feature I will get $25 extra credite. It is cool little system :)
     
  9. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    Yes this is true, if you etc scrape content 0/24 or something like that it can be expensive. But in my case I use everything only when I need something for my business. So 10 Droplet Proxies are cheep solution in my case.
     
  10. Peisithanatos

    Peisithanatos Registered Member

    Joined:
    Mar 9, 2013
    Messages:
    58
    Likes Received:
    22
    Location:
    Spain
    Home Page:
    Nice share. Do you have any performance comparison about setting your own proxies and a proxy from a private proxy provider? If so, do you notice any difference?
     
  11. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    I was never thinking about that sort of things, droplet system is my own method that I use for private things: research, development , testing tools etc. I will never say that this system can work better than proxies from private provider.

    Second chapter PROXY SETUP everyone can use on own Linux VPS, why not to use something if we can.

    In my case it is cheep solution, because it is has multifunctional use.

    Regards
     
  12. proxygo

    proxygo Jr. VIP Jr. VIP

    Joined:
    Nov 2, 2008
    Messages:
    15,841
    Likes Received:
    9,606
    Occupation:
    PROVIDING PROXIES FOR GSA SCRAPING.
    Location:
    BHW
    Home Page:
    remove the referral link there not allowed mate
    if i dont tell you a mod might delete this thread
    you are technically promoting there product with referrals not permitted here
    just a heads up........up to you
     
    Last edited: Feb 20, 2015
  13. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    Edited, I don't need refferals but it is good because members can get $10 free, spend everything and forget etc.
     
  14. simply

    simply Junior Member

    Joined:
    Jul 1, 2012
    Messages:
    169
    Likes Received:
    85
    Gender:
    Male
    Use Both link (reff and non-ref). So members can be benefited if interested and if any members don't want to follow the reff link can use the non-ref link. And as I know that's permitted here.
     
  15. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    I don't want to get bad reputation here and now in this situation I really don't understand what is correct. If someone need reff link always can PM me. Regards
     
  16. akacash

    akacash Jr. VIP Jr. VIP

    Joined:
    Jan 16, 2010
    Messages:
    839
    Likes Received:
    618
    Location:
    The Beach, USA
    You're probably fine either way. You can message a mod and ask them, but I doubt anyone will really raise a fuss since you have both links there. The rules say that any affiliate links are supposed to be posted in the Affiliate Programs section, but you're not really promoting a program in the context that implies. Since you have both links like the rules state I would imagine you'll be ok, but you might wanna message a mod just to be safe if you want to put it back in. Either way though you definitely won't get a bad reputation over an honest mistake like that, especially not on a very nice tutorial share like this. You did a really good job explaining it step by step so kudos :)
     
  17. snakeccc

    snakeccc Junior Member

    Joined:
    Jan 23, 2012
    Messages:
    120
    Likes Received:
    107
    Occupation:
    SEO -> CPA -> $$$$
    Location:
    Bosna and Hercegovina
    Thanks for response,It was not service promotion the point of my reff link was to allow our member to get free $10, with moderate use they can run 10 droplets for about one month. So, now I give up :) Greetings... :)
     
  18. gorb86

    gorb86 Newbie

    Joined:
    Feb 5, 2015
    Messages:
    11
    Likes Received:
    0
    Hi, thnx for the post. I made all like you wrote, but i can't connect to my proxy, can you help me? Thnx
     
  19. 12040

    12040 Junior Member

    Joined:
    Dec 16, 2011
    Messages:
    112
    Likes Received:
    60
    good for ppl who don't need hundreds of proxies and don't need to use proxies 24x7
     
  20. gorb86

    gorb86 Newbie

    Joined:
    Feb 5, 2015
    Messages:
    11
    Likes Received:
    0
    whene i write "service squid status"

    It's normal?
     
    Last edited: Mar 19, 2015