Setup a Router using Linux

Procedures of setting a router with cache function are as follows:

Router section:

1. install dnsmasq

2. iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

3. modify /etc/network/interfaces with following lines

auto eth0 static
iface eth0 inet static
address 192.168.18.1
netmask 255.255.255.0
network 192.168.18.0
broadcast 192.168.18.255

4. echo “1” > /proc/sys/net/ipv4/ip_forward or modify /etc/sysctl.conf

5. install pppoeconf for pppoe connection

6. install apache http://fusionstrike.com/2012/installing-apache2-raspberry-pi-debian

Cache session:

1. install squid

2. configure squid.conf

3. iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp –dport 80 -j REDIRECT –to-ports 3128   # http proxy transparency setting

Connecting to other proxy servers for breaking great firewall:

1. configure squid.acl.gfwed.config   # used to distinguish which websites need to other proxy servers.

2. configure squid_cache_peers.conf   # set which other proxy servers we are connecting to.

3. configure stunnel.conf   # set which other proxy servers we are connecting to.

Other proxy server side’s setting is as follows:

1. install squid

2. install stunnel4

3. configure stunnel4.conf

4. create stunnel.pem for stunnel

I have my own IT dream!

我知道我們這個project 根本沒有 Research 的成份。但我真是希望各位評審可以給我們一個機會進入科學園,追尋我們的IT夢。我想世界的人知道,香港人除了房地產和金融勁之外,我們的IT也不比世界各地其他地方差的。我不想我們香港人永遠都是用別國家的IT產品。例如,美國的facebook, whatsapp, Twitter 又或者日本的Line。我絕對相信我們的IT的產品不會比他們差的。

但好可惜,我們香港政府對IT公司發展的支持度還是很不夠,香港的商界也普遍對IT發展也不太感興趣。在香港搞IT其實真的有點孤立無門的感覺,很無助。如果,今次連各位評審不支持我們,我們往後的路一定會更加難走下去。

相信大家聽完我們的project后,都知道我們的App比Whatsapp優勝。但是,需然Whatsapp 不比我們優勝,美國的夕谷都支持Whatsapp。給whatsapp 不少資源去發展自己短訊的系統。所以,如果科學園的資源不是很緊拙的話,我真的很希望各評審是另外一個“夕谷”給我們一個發展的機會。

在座可能會問我們真的能贏whatsapp? 我只可用Adidas的slogan回答各位“Nothing is impossible”,很多事都是預計不倒的。相信大家早在四五年前,沒人會想到手機大哥Nokia 會有今天的田地,它的大哥位置完完全全給iPhone 和 Android 取替了。

最後,如果大家真的不給我們offer, 我們是否一定輸給Whatsapp? 我可以回答你們“不是”,只是我們要走的路比有offer的路難點而已。所以,真的不厭其煩地再請求大家給我們一個可以和Whatsapp一比高下的機會。感謝大家!