Jump to content

DigitalOcean VPS in Singapore for $5 USD / 1000GB BW Hurray!


muratremix

Recommended Posts

If there is no need to edit the file, then simly wget should do the trick.

wget http://pastebin.com/raw.php?i=4b5TcTGm -O /tmp/squid.conf

Then move the file to propper location.

I suppose in CentOS systems it at /etc/squid/squid.conf

cp /tmp/squid.conf /etc/squid/squid.conf

For example Ubuntu is using /etc/squid3/squid.conf

cp /tmp/squid.conf /etc/squid3/squid.conf

In this tutorial I install squid 2.7, so under ubuntu it should be same

wget http://pastebin.com/raw.php?i=4b5TcTGm -O /etc/squid/squid.conf

will do the trick, but people may want to edit port number. I simply enter a random big number.

A number like 8277 or 8622 is easier to remember.

Link to comment
Share on other sites

  • Replies 84
  • Created
  • Last Reply

Top Posters In This Topic

So i finally got this working and it seems ok at first look. Time will tell as its 12:49am and i have tried a few youtube vids in hd which are normally terrible but seem very good now. Unfortunately it doesnt seem to want to play with my slingbox :/(

Link to comment
Share on other sites

So i finally got this working and it seems ok at first look. Time will tell as its 12:49am and i have tried a few youtube vids in hd which are normally terrible but seem very good now. Unfortunately it doesnt seem to want to play with my slingbox :/(

Youtube is very fast in Singapore proxy. Slingplayer must have some setting inside plugin or something.

If not, vpn + cheap vpn router can fix slingplayer problem.

Link to comment
Share on other sites

Youtube videos through proxy "might" work, if you are in "html5 mode" on Youtube.

It doesn't work with Youtube's "Flash" version.

The "get request" can be send through proxies (for unlocking purposes etc.)

But Flash itself doesn't honor any proxy settings in your browser!

It will always connect directly!

(if nothing has changed since last year)

If you want the video "tunnelled" via Singapore, you have to set up a VPN, which can be easily done, since digitalocean has great tutorials for this

Link to comment
Share on other sites

Quick update .... I like to test low volume youtube videos in 720 hd as it seems they always play like crap. This one

in 720hd plays bad on true no proxy and worse on Digital Ocean. It play perfect using SecurityKISS tunnel with a UK server...

I do think my ipad is still working much better through Digital Ocean but i need time to really evaluate it...

Link to comment
Share on other sites

<script type='text/javascript'>window.mod_pagespeed_start = Number(new Date());</script>

Perhaps I mis-spoke

Your local ISP can throttle your connection to the VPN

just as you mention with True bah.gif.pagespeed.ce.-cCHYEZ1Lo.gif alt=bah.gif width=19 height=19>

Nope it doesn't if traffic goes to Singapore.

I just watched Netflix Superhd @ 5800 kbit without a problem tonight (sunday night, prime time) using my singapore digitalocean proxy + us proxy for spoofing usa ip to login netflix.com. It was very easy to do with privoxy proxy installed at my Nas (can be installed in router aswell)

a config like that in privoxy proxy

forward / mydigitaloceanserver:1234

forward .tr uk.server.com:1234
forward .de uk.server.com:1234
forward .nl uk.server.com:1234
forward .th .

forward .hulu.com us.server.com:1234
forward .huluim.com us.server.com:1234
forward .netflix.com us.server.com:1234
forward .geotrust.com us.server.com:1234

So all traffic goes via singapore proxy, selected european domains goes via my UK proxy (3.5 usd/month) and netflix/hulu logins goes via my USA san jose proxy but data streams come from IP address so they are proxied via singapore proxy and they are fast!

It is so fast, it stops downloading stream because buffer is too full, then it continues to stream again.

I just set this up and my initial testing shows 3-4 times faster speeds to Dallas using testmy.net. I am a bit confused about the above though, this is your local privoxy config that directs traffic to various proxies based on address, so has nothing to do with the squid setup on digitalocean, correct? My ultimate goal is to setup something like this on squid so that traffic through the proxy can be directed through my US vpn only when necessary (for live streaming certain channels on KidsPlace and FreeCable in XBMC), I assume this is possible on squid? Actually, I am now thinking I might dump my $10/month VPN in favor of another digitalocean droplet on a US server with a second proxy, saving $5/month and potentially being faster? Don't really have a need for a VPN other that accessing content in the US, so that seems to make more sense. Thoughts?

BTW, thanks for posting this, I've been meaning to do something similar for some time but your simple instructions made it a no-brainer.

Link to comment
Share on other sites

<script type='text/javascript'>window.mod_pagespeed_start = Number(new Date());</script>

Perhaps I mis-spoke

Your local ISP can throttle your connection to the VPN

just as you mention with True bah.gif.pagespeed.ce.-cCHYEZ1Lo.gif alt=bah.gif width=19 height=19>

Nope it doesn't if traffic goes to Singapore.

I just watched Netflix Superhd @ 5800 kbit without a problem tonight (sunday night, prime time) using my singapore digitalocean proxy + us proxy for spoofing usa ip to login netflix.com. It was very easy to do with privoxy proxy installed at my Nas (can be installed in router aswell)

a config like that in privoxy proxy

forward / mydigitaloceanserver:1234

forward .tr uk.server.com:1234

forward .de uk.server.com:1234

forward .nl uk.server.com:1234

forward .th .

forward .hulu.com us.server.com:1234

forward .huluim.com us.server.com:1234

forward .netflix.com us.server.com:1234

forward .geotrust.com us.server.com:1234

So all traffic goes via singapore proxy, selected european domains goes via my UK proxy (3.5 usd/month) and netflix/hulu logins goes via my USA san jose proxy but data streams come from IP address so they are proxied via singapore proxy and they are fast!

It is so fast, it stops downloading stream because buffer is too full, then it continues to stream again.

I just set this up and my initial testing shows 3-4 times faster speeds to Dallas using testmy.net. I am a bit confused about the above though, this is your local privoxy config that directs traffic to various proxies based on address, so has nothing to do with the squid setup on digitalocean, correct? My ultimate goal is to setup something like this on squid so that traffic through the proxy can be directed through my US vpn only when necessary (for live streaming certain channels on KidsPlace and FreeCable in XBMC), I assume this is possible on squid? Actually, I am now thinking I might dump my $10/month VPN in favor of another digitalocean droplet on a US server with a second proxy, saving $5/month and potentially being faster? Don't really have a need for a VPN other that accessing content in the US, so that seems to make more sense. Thoughts?

BTW, thanks for posting this, I've been meaning to do something similar for some time but your simple instructions made it a no-brainer.

This is my local privoxy running in my Synology Nas (it can work in some fast routers aswell) and selectively routing traffic based on my prefs. By doing so, I can use 200 ms ping UK vps for my european connections and bypass local .th traffic without proxying. Digitalocean EU connection is fine, but my country's routing is terrible so sometimes it goes via USA route and than EU so I use UK VPS to alter route (200 ms to UK, 70 ms to UK - TR = 270 ms)

With squid, I don't think it can be done that easily. However if you want to watch netflix hulu etc, you can also install privoxy to singapore and use US proxy forwarding for netflix / hulu website only (movies will stream from Singapore connection so it will be faster).

If you need US vps/proxy only for netflix / hulu, you don't need 5$ digitalocean, it can be found for $1-2 usd per month. BW in USA is cheap.

Link to comment
Share on other sites

For the last 20-30 minutes Digitalocean Singapore node is having network issues.

In first I thought True has some connection problems but my other proxies in UK, US and Singapore (Oneasiahost) is working fine. So if you are having extremely slow connection, disable your proxy for the time being. They should fix this within an hour or two.

Here is a download attempt to Singapore DO vps (from my USA server)

Resolving win.*******.com... 192.151.XXX.130
Connecting to win.******.com|192.151.XXX.130|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Server: nginx/1.0.11
Date: Mon, 03 Mar 2014 11:29:42 GMT
Content-Type: application/octet-stream
Content-Length: 1588484974
Last-Modified: Mon, 03 Mar 2014 10:00:47 GMT
Connection: keep-alive
Accept-Ranges: bytes
Length: 1588484974 (1.5G) [application/octet-stream]
Saving to: “the.walking.dead.s04e12.proper.720p.hdtv.x264-2hd.mkvâ€

0% [ ] 203,930 6.22K/s eta 3d 2h ^C

Link to comment
Share on other sites

It seems they made an announcement in client area

SGP1 Inbound DDoS Attack
Mon Mar 3 11:27:00 2014

We are currently investigating a large DDoS against the SGP1 datacenter causing network connectivity issues.
Mon Mar 3 11:28:22 2014
When you provide cheap service, it is expected to receive ddos from competitors.
Link to comment
Share on other sites

odd, I just got home and tested in my XBMC, and my previously unplayable streams are working flawlessly (YAY, my kid is happy, i'm happy!). Next step is to figure out how to redirect certain domains to another proxy. It seems difficult (at best) to do this within squid itself (as mentioned by muramatrix), my question is - if I need to use privoxy to do the URL forwarding, why use squid at all? Seems to me this should be possible to do completely within privoxy, but I have a lot of research to do. My only concern is that putting privoxy on the same machine as squid will screw things up if I don't know what I'm doing. looks like it's going to be a long night! blink.png

Link to comment
Share on other sites

odd, I just got home and tested in my XBMC, and my previously unplayable streams are working flawlessly (YAY, my kid is happy, i'm happy!). Next step is to figure out how to redirect certain domains to another proxy. It seems difficult (at best) to do this within squid itself (as mentioned by muramatrix), my question is - if I need to use privoxy to do the URL forwarding, why use squid at all? Seems to me this should be possible to do completely within privoxy, but I have a lot of research to do. My only concern is that putting privoxy on the same machine as squid will screw things up if I don't know what I'm doing. looks like it's going to be a long night! blink.png

You can keep privoxy instead of squid on different port or use them together.

Privoxy is very easy to set up.

I can provide sample config file if anyone need.

The reason I use seperate privoxy is because I want selective routing at here, not at singapore point. My True - UK connection is 200 ms, while True - SG - UK is 240 ms or more in total (40 ms to Singapore)

Link to comment
Share on other sites

I would like to see 3bb users on singapore proxy testing. So far only True users participated. I don't recommend to TOT users as TOT to Singapore connection sucks (bigtime).

If any 3BB users (preferably in Bangkok but not in farang populated area) can PM me, I can give them my proxy for testing.

Link to comment
Share on other sites

I just did another test, digitalocean singapore still performs great.

ZVgtiWK.png

TiP Summary - Minimum :: 5.01 Mbps | Middle :: 37.91 Mbps | Maximum :: 49.67 Mbps
3349095149.png
Btw I have 20/2 True online but bursting allows me to go up 50 mbit for short intervals.
Also speed of download starts at 2-5 mbit and increases constantly until MAX and BURSTING speeds.
Edit: Due to IP address, some place see it as Great Britain while it actually is in Singapore. Hopefully with next geoip update, they'll fix it.
Edited by muratremix
Link to comment
Share on other sites

I was wondering... why most/all of your TestMy.net results were showing up with a host listed as "United Kingdom," when you are/were using a Singapore server.... smile.png

Maxmind GeoIP is not up to date and that IP was ported from UK to Singapore I think.

Link to comment
Share on other sites

  • 3 months later...

TOT via digitalocean.....and this result is one of the better ones coffee1.gif

3597115161.png

TOT directly....

3597131433.png

Crap so or so.

Seems that the 1.5 MB/s throttling is active at the moment.

162 ms ping explains a lot why TOT has crappy SG connection. Best ping I got with TOT was 82 ms or so.

40 ms for cat / true

TOT usually performs much better against San Jose, California location due to their direct pop.

Link to comment
Share on other sites

Test with cat against digital ocean singapore

Location sukhumvit, asok (bangkok)

PING www.digitalocean.com (198.41.189.27): 56 data bytes

64 bytes from 198.41.189.27: seq=0 ttl=55 time=28.557 ms

64 bytes from 198.41.189.27: seq=1 ttl=55 time=28.615 ms

64 bytes from 198.41.189.27: seq=2 ttl=55 time=28.729 ms

64 bytes from 198.41.189.27: seq=3 ttl=55 time=28.622 ms

64 bytes from 198.41.189.27: seq=4 ttl=55 time=29.652

Link to comment
Share on other sites

  • 2 weeks later...

Digitalocean finally has UK, London location. Again starts from $5 usd/month for 1000Gb bandwidth.

I tested with True and got a direct connection.

I'm sure it'll please your UK Tv needs (BBC etc).

DiskStation (0.0.0.0) Tue Jul 15 21:26:17 2014
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. router.asus.com 0.0% 93 0.3 0.3 0.3 0.4 0.0
2. 10.22.96.1 0.0% 93 4.9 6.1 4.4 13.6 1.5
3. 10.92.224.245 0.0% 93 5.7 9.9 5.3 35.2 5.4
4. 119-46-119-14.static.asianet.co.th 0.0% 93 6.4 10.3 6.2 74.7 11.3
119-46-119-58.static.asianet.co.th
5. 119-46-119-57.static.asianet.co.th 0.0% 92 20.3 8.0 5.7 20.3 2.8
6. 61-91-213-225.static.asianet.co.th 1.1% 92 7.7 8.2 5.9 18.4 2.4
7. 61-91-213-36.static.asianet.co.th 0.0% 92 6.3 9.8 6.2 87.0 9.8
8. 61-91-213-130.static.asianet.co.th 1.1% 92 6.3 7.7 6.3 11.0 0.8
9. TIG-Net242-53.trueintergateway.com 0.0% 92 6.3 10.0 6.3 16.7 1.6
10. TIG-Net245-22.trueintergateway.com 0.0% 92 37.2 39.8 36.4 48.5 1.8
11. UK-ICR-LX1-241-206.trueintergateway.com 54.3% 92 208.1 208.3 206.9 212.9 1.3
12. ???
13. 5.101.111.234 2.2% 92 207.6 210.1 207.6 221.6 2.2
14. 178.62.60.*** 0.0% 92 207.3 208.7 206.7 213.1 1.4

Ping:

ping -c 5 speedtest-lon1.digitalocean.com
PING speedtest-lon1.digitalocean.com (178.62.63.247): 56 data bytes
64 bytes from 178.62.63.247: seq=0 ttl=48 time=210.312 ms
64 bytes from 178.62.63.247: seq=1 ttl=48 time=210.875 ms
64 bytes from 178.62.63.247: seq=2 ttl=48 time=210.853 ms
64 bytes from 178.62.63.247: seq=3 ttl=48 time=210.708 ms
64 bytes from 178.62.63.247: seq=4 ttl=48 time=210.765 ms

Edited by muratremix
Link to comment
Share on other sites

Downloading 45Gb bluray via USA, California VPS (4.5 usd/month)

oqIAJ5o.png

YZE6aHb.png

Average speed: 5097 kbyte/sec

On True 35/3.5 mbit (40/4 mbit effective)

Digitalocean US servers are not so good, but this one has direct peering with any2ix (TOT and True uses it) and bandwidth is unthrottled most of the time (except prime time evening)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.








×
×
  • Create New...