Odin SQL

Programming, software and technology

  • Blog
  • About
  • Contact
You are here: Home / Uncategorized / DIY VPS Netflix proxy

DIY VPS Netflix proxy

January 20, 2015 by Benjamin Knigge 7 Comments

Netflix logo

Netflix logo

I’m an American currently living in Moldova. Unfortunately this means that Netflix (along with many other sites) isn’t available to me here. So being the tech savvy guy that I am I thought that I would build my own.

I could have gone the easy route and set up a VPN but that would slow down all of my internet traffic. I waned to build something that would only proxy the traffic for the geographically restricted services.

After much searching I found this config generator for Haproxy on github and managed to get haproxy configured on Ubuntu 14.04 along with bind which I’m using for DNS as opposed to dnsmasq which is outlined on the github project. I used the SNA only mode for the config generator.  I had a bit of credit that is about to expire from a $20 Vultr coupon so I used Vultr to host the VPS. I would recommend using something even cheaper. a $15 a year ultra low end VPS with RamNode  would suffice. (edit  : I tried setting this up on a Ramnode OpenVZ based VPS and it won’t work on a VPS using OpenVZ without editing OpenVZ settings on the host. Most VPS hosts won’t do that so avoid a VPS using OpenVZ) If I didn’t have the Vultr credit it’s what I would have used and after my existing credit runs out on Vultr I will probably move this over to RamNode myself. So far everything is working great on my laptop.

 

I’ve spend way too much time over the past couple of days trying to duplicate this same functionality using Nginx. I was attempting to use a TCP proxy to pass the SSL encrypted traffic directly to the end user. This would prevent the need for an SSL cert on the proxy server.  I found and was working with this Nginx TCP proxy module but I ran into an obstacles that I don’t think I can overcome at the moment. Nginx doesn’t currently support passing the SNA host via proxy_pass. SNA proxy sport is in the development branch of 1.7.  My plan was to simply forward all traffic on ports 80 and 443 to the host in the request headers.

I had planned on doing a DIY tutorial on getting this up and running with Nginx but for the moment at least, it doesn’t look like that’s going to happen.

If you need any help getting the Haproxy method working feel free to leave a comment. If I have the time and their is enough interest I could do a post on that.

Once the 1.7 branch is stable I might take another look at this but for now I’ll still with the haproxy method.

A far less expensive and even simpler solution would have been to just spend a couple of dollar for the proxy/vpn service at SmartDNSProxy.com. I’ve set it up for a couple of acquaintances that I’ve met over here and it’s working great for them. It’s what I would recommend for anyone that doesn’t want to spend the time learning how to configure Haproxy.

 

Filed Under: Uncategorized Tagged With: RamNode, Vultr

Comments

  1. AvatarAnton Belodedenko says

    September 21, 2015 at 5:29 am

    You could take a look at https://github.com/dlundquist/sniproxy instead, which does the job nicely. I built a deployment wrapper around it using DigitalOcean.

    My project tis here:
    https://github.com/ab77/netflix-proxy

    Hope this helps..

    — ab1

    Reply
    • Benjamin KniggeBenjamin Knigge says

      September 21, 2015 at 3:35 pm

      I’ll take a look at it.

      Reply
  2. AvatarHerbert Rivera says

    December 3, 2015 at 4:33 pm

    Hi, I was able to install netflix proxy and it works with hulu, netflix and others. However, facebook, twitter, youtube and other blocked sites in china still cannot proxy even if it is added on zone.override. Is there anything else we need to configure to unblock some sites?

    Reply
    • Benjamin KniggeBenjamin Knigge says

      December 7, 2015 at 6:55 pm

      I would recommend setting up a VPN to a a server on the west coast of the USA. I did this myself not long ago with a $3.50 per month KVM vps with RamNode

      Reply
    • AvatarJosh says

      March 5, 2016 at 10:16 pm

      How did you setup Netflix proxy?

      Reply
      • Benjamin KniggeBenjamin Knigge says

        March 7, 2016 at 5:05 pm

        At first I was using the haproxy method mentioned but I was actually paying more for the VPS that what SmartDNSProxy costs so I eventually switched over to using that.

        Reply
  3. AvatarRavi Tiwari says

    July 17, 2020 at 1:08 am

    Hi all
    I am new to this DNS thing, I am in Australia and want to watch movies/shows/sports from India. I have done some google study and know that I need to use HAPROXY or SNIPROXY and BIND or DNSMASQ, but still can’t completely understand the setup, can somebody guide me with a detailed tutorial, also my ISP provides dynamic IP, so I need to configure using dynamic dns (I have got it from noip)
    I have read the article by Anton Belodedenko, but still confused.
    Thanking you all

    Reply

Leave a Reply Cancel reply

Who’s behind Odin SQL

Benjamin KniggeWhen I'm not traveling, writing code or optimizing stored procedures I can often be found working on my blog. Learn More…

Email Newsletter

Sign up to the Odin SQL newsletter and receive the latest posts and custom personalized content.

Recent Posts

  • How I improved my WordPress GTmetrix grade
  • A Vultr walk-through
  • DreamHost coupons and promo codes
  • WPEngine coupons and promo codes
  • GoDaddy vs. HostGator vs. BlueHost vs. DreamHost

Categories

  • Hosting
  • Meta
  • programming
  • Software
  • spam of shame
  • Uncategorized
  • web development
  • wordpress

Featured Post

How I improved my GTmetrix page speed and yslow scores.

How I improved my WordPress GTmetrix grade

I’ve managed to improve my GTmetrix page speed and Ylow grades from the mid 70’s to 98% for Page Speed and 97% for YSlow with a page load time of only 1.18 seconds. Here’s a link to the report (if the link is dead feel free to re-run the test). In this post I’m going to […]

Featured Post

CPU utilization

Linode vs. DigitalOcean vs. Vultr vs. RamNode

Comparing SSD cloud VPS hosting providers can be difficult A virtual cpu core at one hosting provider won’t be equivalent to a virtual cpu core at another host or even another virtual cpu core at the same host depending on the specifications of the underlying hardware and the underlying hardware’s utilization at the time of […]

Featured Post

CloudFlare

Free SSL with CloudFlare, OpenSSL and Nginx on Ubuntu

How to Save up to $750 in SSL fees for free In this post I’m going to show you how to set up your site so that you will have an absolutly free fully SSL secured site that automatically redirects non secure HTTP traffic to your secure HTTPS URL.  A basic SSL certificates commonly cost $45 – $75 per year. […]

Copyright © 2025 — OdinSQL.com