Facebook Developers Network

Join MamakSpot Fb Developer Network


New Project unleashed !!!
Build You Own SMS System at home
http://cakesms.blogspot.com

Introduction to MamakSpot



Watch the demo video here

What is MamakSpot ?
A wifi controller. You can control your wifi users using a web based management system.

Features ? You can control the users by
1.by maximum usage hours
2.by expire date
3.by upload/download speed in kbps

How many versions of MamakSpot ?
1. MamakSpot Prepaid Edition
2. MamakSpot Manage Edition

MamakSpot Prepaid Edition ?
MamakSpot prepaid is targeted to people who wants to run prepaid business using Wifi. Admin can create X numbers of prepaid and registered or public users can buy the prepaid for their internet usage.

Mamakspot Manage Edition ?
This is fork from version 1 of MamakSpot. User must be registered first. Admin the, can select which user have the rights to surf the net. Admin simply enable particular user with some credentials like
1. upload/bandwith speed
2. Expiry date
Admin can check every connected user internet history like :
1. When he/she online
2. Number of hours online by day,month,year
3. Total bandwidth downloaded/uploaded
4. Sites visited
Who are the developer for MamakSpot ?
Currently, I'm the only one doing the RnD. From understanding how Radius server works to Web Management Interface. I can be contacted at 014.6412.911 ( Malaysia ) or by email at azril.nazli@gmail.com


Mamakspot V1 is free ( http://code.google.com/p/mamakspot/ )

Monday, April 14, 2008

Tutorial 2 : Setting sebagai router

Pastikan anda berjaya mengikut Tutorial 1 dengan jayanya. Seterusnya, saya akan ajar bagaimana untuk menjadikan Linux anda sebagai router. Ini bermakna, Laptop anda yang connect menerusi HUB ( Linksys AP ethernet port ) --> port ETH1, dapat melayari ke internet

Laptop anda = 10.0.0.2 ( gatewaye 10.0.0.1 iaitu ETH1 )
ETH1 = 10.0.0.1

perkara pertama, kita perlu enablekan ip forwarding di dalam Linux. edit fail /etc/systcl.conf dan ubah mengikut konfigurasi di bawah.

[root@hotspot ~]# vi /etc/sysctl.conf

# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
# ubah jadi 1 ( default =0 )
net.ipv4.ip_forward = 1

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1


Kemudian, create satu script bernama route.sh dan masukkan data berikut :
route.sh

# firewall.sh
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward


Kemudian laksanakan arahan berikut

sh route.sh


kemudian cuba ping google.com melalui Laptop anda. sepatutnya anda boleh ping ke Google.com

11 comments:

  1. letak dalam /root/route.sh

    kemudian chmod +x /root/route.sh

    kemudian sh /root/route.sh

    last sekali cuba tengok /sbin/service iptables status

    ReplyDelete
  2. bro..
    tutorial 1st aku dah berjaya..
    tp bab 2 tak lepas..
    command taktau nak edit cmne..
    file tu dah bkk..nak ubah ape command nak edit nye..
    kena pakai ctrl+(hruf) ke utk write out,save,edit,dll..
    ajar bro..

    ReplyDelete
  3. bukan ke bila dah set
    net.ipv4.ip_forward = 1
    dalam /etc/sysctl.conf maka router dah set sebagai router.

    rasanya tak perlu lagi utk masukkan
    echo 1 > /proc/sys/net/ipv4/ip_forward
    ke dalam file route.sh.

    ReplyDelete
  4. kenapa tak edit je file /etc/sysconfig/iptables?

    masukkan rules ni:

    *nat
    :PREROUTING ACCEPT [41:3192]
    :POSTROUTING ACCEPT [28:1680]
    :OUTPUT ACCEPT [31:1904]
    -A POSTROUTING -o eth0 -j MASQUERADE
    COMMIT
    *filter
    ......
    ......

    ReplyDelete
  5. asyik nak kena masukkan
    ~]#sh run route.sh
    bila restart comp..

    Ada cara nak kekalkan tak???

    ReplyDelete
  6. cara lain selepas running route.sh

    boleh guna /sbin/service/uptables save

    atau

    letak dalam /etc/rc.d/rc.local

    #!/bin/sh
    sh /root/route.sh

    ReplyDelete
  7. spam...spam..spam..spam..spam...spam.spam..spam..spam...spam
    aku sebenarnya boring...

    ReplyDelete
  8. spam...spam..spam..spam..spam...spam.spam..spam..spam...spam
    aku sebenarnya boring...

    ReplyDelete
  9. redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com
    redtube.com

    ReplyDelete
  10. www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my
    www.utusan.com.my

    ReplyDelete