[水] Minecraft 服务器周边功能小记

按照以往运行 Minecraft 服务器的情况,玩家们常常需要一些游戏以外的信息:

  • 服务器负载情况
  • 服务器是否还活着
  • 是死宅要上传皮肤

那么,作为一个不怎么管服务器里发生了什么的管理,我就主动把这些功能实现了一下。其他的游戏内管理就交给 @kasora 了。

继续阅读[水] Minecraft 服务器周边功能小记

在 Linux 下利用 iptables 和 ss-redir 进行全局代理

Windows 下使用 shadowsocks 实在是方便,绝大多数软件都会遵循 IE 代理,即使不愿意跟随 IE 的脚步,用户也可以使用 proxifity 这种软件来实现代理。然而 Linux 就是个坑了……
拿 Chrome 来举个栗子,当你在设置中点击更改代理服务器设置后,你会看到这些:

When running Google Chrome under a supported desktop environment, the system proxy settings will be used. However, either your system is not supported or there was a problem launching your system configuration.

But you can still configure via the command line. Please see man google-chrome-stable for more information on flags and environment variables.

Firefox 到还好一点,有图形化的内部代理设置,处理起来简单不少。
可是 apt-get 呢? wget 呢? git 呢? 即使这些程序支持使用命令来指定代理,但是仍然不是解决问题的最好方案,比如 w3m 就不支持 socks 代理 _(:з」∠)_

最好的解决方案就是直接对 Linux 强大的 iptables 动手脚了。借助 iptables 和 ss-redir,可以完美的实现对本机所有流量进行透明代理。

首先是编译安装 shadowsocks-libev:
继续阅读在 Linux 下利用 iptables 和 ss-redir 进行全局代理