Category: Web

  • Web front for my code

    Awhile ago I set up my own git server. I’ve been hacking happily using that and Eclipse. In my spare time, I’ve been taking UCSD’s wonderful algorithm course: Algorithmic Design and Techniques. The course provides plenty of programming challenges! I chose the paid version so my code can be evaluated against all tests in the […]

  • fail2ban installation and configuration notes

    A couple of days ago one web site I volunteer to manage was under DDOS attack. I installed and configured fail2ban to protect us from future similar attacks. Here are some notes. The server is the RedHat/Fedora/CentOS variety, as you can tell from commands listed below. Please translate them to your distro’s corresponding commands as […]

  • Accessing modem status information with Netgear router

    If, like me, you bought your own cable modem and Netgear wireless router for Comcast service, the way to access your modem’s status information is different. When using the equipment provided by Comcast, in my case the Technicolor TC8305C, which is a combo of modem, router, and voice, I can easily see modem information while […]

  • Eclipse PDT PHP Web Application Run Configuration

    I had some trouble setting up Run Configurations in Eclipse for PHP (PDT plugin). Here is my note for future reference. Machine: Ubuntu 15 64-bit, with Eclipse Mars. sudo apt-get install php5 installed apache2 for me, so no additional web server install is necessary. Enable userdir mod: sudo a2enmod userdir Your /etc/apache2/mods-enabled/userdir.conf should look like […]

  • 自建vpn之四:安装启动客户端

    openvpn服务器和客户profile建立之后,安装设置客户端软件后就可以使用了!这篇博客介绍如何在Windows、Linux、和Mac上使用openvpn。我们假定你已经安全地把profile,即.ovpn文件转移到电脑上。 Windows 到这里下载客户端软件。一般来讲你要下载64位的。目前的文件名是openvpn-install-2.3.8-I601-x86_64.exe 下载完毕后安装。它可能会问要不要安装一个叫TAP的东西。你需要安装; 安装完毕,把那个.ovpn文件挪到C:\Program Files\OpenVPN\config之下 Run OpenVPN GUI as administrator。这只是开启了程序,现在还没有连接到openvpn服务器上; 在屏幕右下角的空间里,找到OpenVPN GUI的图标,然后选择“connect/连接”; 连接成功。打开浏览器,试试访问以前不能访问的网站,看效果如何。 Windows 10注意事项 我发现一些不是通过安装而是通过升级到Windows 10的机器会碰到一些问题,我猜和IPv6兼容有关。我发现如果我用火狐浏览器,就可以避免这个问题。全新的Windows好像没这个问题。 Linux 打开命令行,安装openvpn: apt-get install openvpn [code language=”text”]sudo openvpn –config /EnterPathTo/xxx.ovpn[/code] 你可以看到vpn连接的信息。在使用openvpn的时候,你不能中断或关闭这个程序。你可以把这个Window缩小 连接成功。打开浏览器,试试访问以前不能访问的网站,看效果如何。 用完了openvpn,按Ctrl-C就可以终止了。 Mac Tunnelblick是一个免费开源的openvpn客户端。我目前没有Mac机器,但这个客户端应当可以。 iPhone 在App Store里安装免费的OpenVPN Connect。之后你可以把爱疯连到iTunes上,用File Sharing,点击OpenVPN,然后把那个profile的.ovpn的文件拖进来。之后打开这个app,你可以看到一个新的profile可以import。之后就可以顺利连接。 Android 在App Store里找OpenVPN Connect后安装。然后把profile的.ovpn文件传到Android上。打开后利用Import功能,把profile引进后就可以很方便的应用。 祝玩得开心! PS. 本系列其它文章 自建vpn之一:挑选供应商 自建vpn之二:保护你的机器 自建vpn之三:搭建openvpn service和生成客户端Profile