First of all, you need to SSH to your Synology which is the easiest part.
If you have some problems, please figure out them by Google

  

Install ShadowSocks

  • Install Python from Package Center
  • SSH to your Synology

  • Install pip and shadowsocks
su
cd /tmp
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install shadowsocks
  • Create shadowsocks config /etc/shadowsocks.json
{
  "server": "SERVER",
  "server_port": 8888,
  "local_address": "127.0.0.1",
  "local_port": 1080,
  "password": "PASSWORD",
  "timeout": 300,
  "method": "aes-256-cfb",
  "fast_open": false
}
  • start shadowsocks in background
sslocal -c /etc/shadowsocks.json -d start --pid-file /tmp/sslocal.pid --log-file /tmp/sslocal.log

Convert Shadowsocks into HTTP proxy

  • Install Privoxy

The tool is Privoxy, but you may need install ipkg first. If you are using DS214, you could follow https://gist.github.com/marlun78/9349792, otherwise your could google it.

By the way, install ipkg for DS214 is not easy, honestly, this is the hardest part of this article. It maybe easier if you are using x86 or other artitecture instead of ARM.

Once you are ready, you could install Privoxy by typing ipkg install privoxy

  • Config Privoxy

Edit etc/privoxy/config

forward-socks5   /               127.0.0.1:1080 .
# change the ip to your nas ip
listen-address  10.0.0.6:8118

#local network do not use proxy
forward         192.168.*.*/     .
forward            10.*.*.*/     .
forward           127.*.*.*/     .
  • Start Privoxy with privoxy /etc/privoxy/config

  

For now, you could use http proxy from your other devices.

And, of course we can always make it better.

Host a pac file to identify which sites need proxy and which don’t is a good idea. For me, I just export a pac file from my SwitchyOmega for Chrome. Works for me.

One more thing, if you are using Apple TV, you can add http proxy with Apple Configuarator.

How to install a configuration profile on Apple TV - Apple Support

Enjoy~~

  

Some Reference