Archive for May, 2011

I install openssh on Windows 2003 Server with this guide:

http://chinese-watercolor.com/LRP/printsrv/cygwin-sshd.html

and also this guide

http://blog.zloether.com/2009/04/configure-cygwin-and-ssh-on-windows.html

Maybe somebody want to try this.. ;p

(Freebsd) Guide utk pf firewall

Posted: May 2, 2011 in Freebsd

Simple Firewall

http://cipitunk.wordpress.com/2008/07/31/simplify-your-firewall-rules/

Simple NAT

http://cipitunk.wordpress.com/2007/11/07/nat-in-freebsd-with-pf/

(Freebsd) SETTING UP IPNAT

Posted: May 2, 2011 in Freebsd

Making FreeBSD load the IPNAT kernel module on bootup is easy, simply add this line to rc.conf:

ipnat_enable=”YES”

Create the IPNAT configuration file /etc/ipnat.rules

Add the two lines in /etc/ipnat.rules that are for outgoing connections:

map tun0 192.168.0.0/16 -> 0.0.0.0/32 portmap tcp/udp 40000:65000

map tun0 192.168.0.0/16 -> 0.0.0.0/32

Add any redirection lines you may want. They take the following form:

rdr [INCOMING INTERFACE NAME] [INCOMING IP ADDRESS/(32 FOR PUBLIC / 16 FOR PRIVATE)] port [PORT] -> [IP ADDRESS OF MACHINE YOU WANT TO FORWARD TO] port [PORT]

An example, used for a webserver:

rdr tun0 70.232.254.2/32 port 80 -> 192.168.1.90 port 80

After every time you alter the /etc/ipnat.rules file and want the changes to take effect, use the following commands:

To clear the current settings:

#ipnat -C

To load the new settings:

#ipnat -f /etc/ipnat.rules

To view the current settings:

#ipnat -l

#ipnat -s

Guide From:

http://www.techarsenal.com/content/tutorials/router_from_scratch.htm

http://www.monkeybrains.net/~rudy/example/ipnat.html

Malaysia Linux Mirror

Posted: May 1, 2011 in My live

Based on mailing-list osdcmy

Thanks to all.

1. Mirror UTM (Ubuntu & Centos

http://ossm.utm.my/

2. Debian Mirror (debmal.my)

deb http://mirror.debmal.my/debian squeeze main contrib non-free
deb http://security.debian.org/debian-security squeeze/updates main contrib non-free
deb http://mirror.debmal.my/debian-backports squeeze-backports main contrib non-free
deb http://mirror.debmal.my/debian-multimedia squeeze main contrib non-free

3. Mirror MMU

http://archive.mmu.edu.my/

http://oss.mmu.edu.my/pub/