Travel

Categories

Dovecot with MBOX, IMAP and subfolders, or “Target mailbox doesn’t allow inferior mailboxes”

The MBOX format limits your clients to creating subfolders that can either store folders, or emails, not both. When creating a folder, you differentiate between a folder for storing folders or for storing emails by adding or leaving out a forward slash at the end of the folder name: A folder name like ‘withsubfolders/’ will […]

awstats + GeoIP

1.當你安裝號Awstats後,報表會反解IP位置,當然你可以加入外掛讓Awstats顯示國家與程式還有組織的訊息

2.下載所需要的資料 wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz wget http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz

3.建立資料夾 sudo mkdir /usr/share/GeoIP

4.移檔與解壓縮

mv GeoIP.dat.gz /usr/share/GeoIP/ gunzip /usr/share/GeoIP/GeoIP.dat.gz mv GeoLiteCity.dat.gz /usr/share/GeoIP/ gunzip /usr/share/GeoIP/GeoLiteCity.dat.gz mv GeoIPASNum.dat.gz /usr/share/GeoIP/ gunzip /usr/share/GeoIP/GeoIPASNum.dat.gz 5.下載與安裝GeoIP套件 wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz tar -xvzf GeoIP.tar.gz cd GeoIP-1.4.6 ./configure make make check sudo make install *注意你在./configur,查看是否有錯誤,版主出現少一個套件名稱 configure: error: Zlib header (zlib.h) not found. Tor requires zlib […]

Israel-Jordon以色列-約旦

[hgallery3 id=”10124″ height=”231″ width=”320]

Load balancing & NAT-ing multiple uplinks on Linux

LAN: eth0: 192.168.0.1/24

IP1: eth1: 192.168.1.1/24, gateway: 192.168.1.2/24

IP2: eth2: 192.168.2.1/24, gateway: 192.168.2.2/24

So here is how I would do by using iptables method:

Route tables

First edit the /etc/iproute2/rt_tables to add a map between route table numbers and ISP names

… 10 IP1 20 IP2 …

So table 10 and 20 is for ISP1 […]