iptables -t nat -A PREROUTING -p tcp -i eth0 –dport 8080 -j DNAT –to 192.168.19.198:8080
iptables -A FORWARD -p tcp -i eth0 -d 192.168.19.198 –dport 8080 -j ACCEPT # needed only if FORWARD is set to DROP by default
iptables -t nat -A PREROUTING -p tcp -i eth0 –dport 8080 -j DNAT –to 192.168.19.198:8080
iptables -A FORWARD -p tcp -i eth0 -d 192.168.19.198 –dport 8080 -j ACCEPT # needed only if FORWARD is set to DROP by default
Use aircrack-ng
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 think the meaning of life is that what positive contributions we can bring to this world before we leave it.
只要還有呼吸,就還會有希望的 🙂
The hope is still here when we still can breathe 🙂
我一定要在半年內為公司集資100萬!
I have to help my company to raise HKD1,000,000 within 6 months!
有時候簡單相信朋友,會對你有益處的!
I never thought what will it be next year in my life except this year. I really wanna know what will it be next year!
我從來沒想過下年會是一個怎樣的境況。我真的很想知道下年會是怎樣的!
Team spirit is created by sitting together!