Sabtu, 31 Mei 2014

Basic Access List

There are three rules that apply to a packet in access-list. Here is the explanation:
1. Each package will be compared to each row in the Access List rule sequentially
2. If found suitable conditions stretcher packet will follow the existing rules in the Access List.
3. If the package does not find a corresponding rule then the packet is not allowed to pass or access the network.

Application of the access list itself is divided into two kinds, among others:
1. Standard Access List - do the screening packet by packet sender IP address.
2. Extended Access List - select a package based on the sender and receiver IP tools, protocols, and port types of packets sent.

When the ACL is configured on a router, the ACL must have a unique identification number given to him. This number indicates the type of access list is created and must be at a certain range of numbers valid for this type of list.

Type of ACL Range Number
IP Standard 1-99
IP Extended 100-199
IPX Standard 800-899
IPX Extended 900-999
Apple Talk 600-699
IPX SAP Filter 1000-1099

Standard configuration Acess List
Based on the table above, the standard access list will make the selection of packages using the sender's IP address range identifier number that can be used is the number 1 to 99.
Here is the formula:
Router(config)# access-list [identifier number] {permit/deny} [sender address] [wildcard-mask]
Case Access List:



There are 2 Routers, switch, server, 2 PC and Laptop. The rules is, Laptop with ip 10.10.10.2 can access web of server on ip 20.20.20.2. But other PC with ip 10.10.10.3 and 10.10.10.4 can't access to the website of server. Here is the configuration:
1. Set IP
- PC1: 10.10.10.2
- PC2: 10.10.10.3
- PC3: 10.10.10.4
- Server: 20.20.20.2
2. Router 5
- Se1/0 : 12.12.12.1 255.255.255.0
- Fa0/0 : 10.10.10.1 255.255.255.0
3. Router 6
- Se1/0 : 12.12.12.2 255.255.255.0
- Fa0/0 : 20.20.20.1 255.255.255.0 
- IP Route : ip route 20.20.20.0 255.255.255.0 12.12.12.2
- Access List: 
   Fa0/0 : ip access-group 100 out
   access-list 100 permit tcp host 10.10.10.2 host 20.20.20.2 eq www
   access-list 100 deny tcp any host 20.20.20.2 eq www
   access-list 100 permit ip any

Subnetting




Given a subnet mask of 255.255.255.224, which of the following addresses can be assigned to network hosts? (Choose three)
A – 15.234.118.63
B – 92.11.178.93
C – 134.178.18.56
D – 192.168.16.87
E – 201.45.116.159
F – 217.63.12.192

Answer:
255.255.255.224

-> 256 - 224 = 32 host
 0-31, 32-63, 64-95, 96-127, 128-159, 160-191, 192-223

A.
-> 15.234.118.63 = broadcast
 B.
-> 92.11.178.93 = host
C.
-> 134.178.18.56 = host
D.
-> 192.168.16.87 = host
E
-> 201.45.116.159 = broadcast
F
 ->217.63.12.192 = network

The answer is B, C, D.
To answer this question, you only to found how much host in the segment or subnet. if you have found, an then you can found ip network, ip broadcast, and all of ip host in the subnet.

How to Communicate 2 Host in VirtualBox

I want share about how to communicate two host in virtualbox. This is very simple. Lets do it:

1. Open your virtualbox.
2. Make sure you have 2 host in your library, for example you have windows XP and windows 7.
3. Set ip address in XP and 7 in the same network. Like this: Windows xp configured by 192.168.1.1/24 and windows 7 is 192.168.1.2/24.
4. Make sure  network adapter in 2 host set by Internal Network. For detail, see picture below.
 
 
 After your follow this step. Try to ping each other. If unreachable, please turn off the firewall. Good Luck.!

Sharing File Windows to UBuntu Server in VirtualBox

What to do:
1. Install Ubuntu Server (12.04) with ssh server in Virtualbox
2. Install WinScp in Windows.
3.

Configuration:
1.  Go to Network Adapters, and then set "attached to" with Host-only Adapter. Name with " VirtualBox Host Only Ethernet Adapter".
Note: My internet is shared from LAN ethernet with gateway is VirtualBox Host Only Ethernet Adapter





2. Go to setting display. Check Enable Server in Remote Display Tab. See picture below.

3. Make sure you know your ip ubuntu server, or you can try this command: ifconfig. Open your WinScp    and set configuration like picture below:
- hostname: is your ip ubuntu server
- username: your hostname
- password: password ubuntu server. Just it!


Internet Sharing from Modem/Wireless to Virtuabox

To share internet connection from wifi, modem or LAN to VirtualBox, configuration is similar concept. Basically, IP segment in ethernet VirtualBox and ethernet ubuntu server must be same. To share the internet to the VirtualBox, there are some things that need to be prepared, namely:
1. Make sure the internet connection is running normally.
2. Prepare the linux operating system ubuntu 12.04 server installed in VirtualBox.
Configuration:
1. In Control Panel, go to the Adapter Settings page. Then right-click on the adapter that will be sharing, eg smart modem or wireless. If on wireless, right-click on the adapter and select Properties. On the properties page, go to the Sharing tab and make sure "Allow other network users to connect through the computer's Internet Connection" is checked. Note the image below.




This setting aims to share the internet from the adapter to the adapter that is listed in the "Home Networking Connection" is VirtualBox networking connection or in other words VirtualBox itself.
2. Properties on VirtualBox adapter. On the Networking tab, IPv4 settings by entering the IP 192.168.100.1 and Netmask is 255.255.255.0. Note the image below.
 

 


This setting aims to provide the same IP segment with the IP that will be in the configuration on ubuntu server. IP configured here, is IP gateway of ubuntu server.
3. Open Ubuntu Server on VirtualBox. At the bottom of the screen in VirtualBox, there are 2 computer icon. Right-click the network adapter and click. On "attached to", select Host-Only Adapter. OK. Note the image below:
 
4. In Ubuntu server, go as super user. Look at the configuration:
  • nano /etc/network/interface.
 Address  : 192.168.100.100  
 Netmask  : 255.255.255.0  
 Network  : 192.168.100.0  
 Broadcast : 192.168.100.255  
 Gateway  : 192.168.100.1 
  •  nano /etc/resolv.conf
 nameserver 192.168.100.1  
  • /etc/init.d/networking restart.
  • ping www.google.com. Success!



Create Connection SSH With Putty to Ubuntu Server

1. Make sure your network adapter connected by Bridge Adapter in Virtualbox Setting.





2. Make sure your ubuntu server is updated(or try update with apt-get update in Superuser mode). And then, type apt-get install open ssh-server.

3. After installation is finished, type ifconfig  and find out your ip address in your screen.
4. Open your putty, and put the ip address.



Routing OSPF (Open Shortest Path First)

Open Shortest Path First (OSPF) is a link-state routing protocol, rather than a distance vector protocol. The main difference here is that a linked-state protocol does not send its routing table in the form of updates, but only shared its connectivity configuration. By collecting connectivity information from all of the devices on the network, OSPF can store all this information in a database and use that information to build a topology map.
This information will allow OSPF to identify the best or shortest route to every other network segment on the network. The route selection is based on overall hops to the destination, as well as link speed or link cost.
The topology not only includes the best route to the destination as calculated by the Dijkstra algorithm (a search algorithm created by Edsger Dijkstra), but also, when possible, it includes a candidate or backup route to the destination.
After creating the topology map, OSPF populates the routing table with the chosen routes to each destination. As traffic passes from router to router, each router evaluates the best path to the destination network. In some cases, this process can lead to routing loops on the network, because each one is evaluating the path based on its own link state database.
Case OSPF Routing:
1. Create Network Topology like below:



Router Solok to Router Padang (172.18.27.0/30)
Router Solok to Router Bukit Tinggi (172.30.22.0/30)
Router Solok to Router Payakumbuh (172.29.24.0/30)
Router Solok to Router Sawahlunto (172.20.28.0/30)
Router Padang to Router Bukit Tinggi (172.16.21.0/30)
Router Bukti Tinggi to Router Payakumbuh (172.19.26.0/30)
Router Payakumbuh to Router Sawahlunto (172.25.14.0/30)
Router Padang to LAN (192.168.1.10/29)
Router Bukit Tinggi to LAN (10.10.23.0/29)
Router Payakumbuh to LAN (192.168.100.0/29)
Router Sawahlunto to LAN (192.168.12.0/29)
I assume you are able to configure the IP address for each router and PC. Next live perform in every Router OSPF Routing.
Router Bukit Tinggi
router ospf 150
network 172.16.21.0 0.0.0.3 area 0
network 172.19.26.0 0.0.0.3 area 1
network 172.30.22.0 0.0.0.3 area 1
Router Padang
router ospf 150
network 172.16.21.0 0.0.0.3 area 0
network 172.18.27.0 0.0.0.3 area 0
Router Payakumbuh
router ospf 150
network 172.25.14.0 0.0.0.3 area 0
network 172.19.26.0 0.0.0.3 area 1
network 172.29.24.0 0.0.0.3 area 1
Router Sawahlunto
router ospf 150
network 172.20.28.0 0.0.0.3 area 0
network 172.25.14.0 0.0.0.3 area 0
Router Solok
router ospf 150
network 172.18.27.0 0.0.0.3 area 0
network 172.20.28.0 0.0.0.3 area 0
network 172.30.22.0 0.0.0.3 area 1
network 172.29.24.0 0.0.0.3 area 1

Routing Static

Static routing is a route which have routing table static with setting manually by network administrator. Configuration for static routing is very simple can do in the computer network. Using statik routing pure in a network, its mean filled enty on table forwarding each routers on the network.
Using static routing on the small network its not a problem..:D. just some entry to filled in the forwarding table. 
Basically, configuration for static routing using command ip route [ip network destionation] [subnetmask] [ip port before the network destination]
Case Static Routing



1. Create Topology like above
2. Set IP address PC, port on the router and make sure all device has been UP.
3. Set ip route:
 - R1: ip route 30.30.30.0 255.255.255.0 12.12.12.2, ip route 23.23.23.0 255.255.255.0 12.12.12.2
 - R2: ip route 10.10.10.0 255.255.255.0 12.12.12.1, ip route 30.30.30.0 255.255.255.0 23.23.23.2
 - R3: ip route 12.12.12.0 255.255.255.0 23.23.23.1, ip route 10.10.10.0 255.255.255.0 23.23.23.1 
4. Ping 10.10.10.10 to 30.30.30.10. Reply!

Routing Protocol

Generally, the router is divided into two types, namely:
1. Static router (router static): is a router that has a static routing table in the settings manually by the network administrator.
2. Dynamic router (router dynamic): is a router that has a routing table and automatically, by listening to the network traffic and also interconnected with other routers.
Coordination of each Router: 
In static routing, the entries in the forwarding routing table is filled and removed manually, whereas the dynamic routing changes are made automatically through a routing protocol. 
Static routing is the simplest routing settings that can be done on a computer network. Using pure static routing in a network means filling every entry in the forwarding table at each router in the network. 
The use of static routing in a small network is not necessarily a problem, just a couple of entries that need to be loaded on the forwarding table in each router. But you can certainly imagine what if must complete forwarding table on each router that number is not small in large networks. 
Especially if you are assigned to fill in the entries in all routers on the Internet are numerous and growing every day. Of fuss once! Dynamic routing is the method used to remove the obligation to fill forwarding table entries manually. 
Routing protocols set up the routers so that they can communicate with each other and give each other routing information that can change the contents of the forwarding table, depending on the state of the network. In this way, routers know the final state of the network and is able to forward the datagram to the right direction. In other words, dynamic routing is the routing of data in the process of filling the routing table automatically. The following table-specific differences in the two types of routing

How to access Mikrotik from other Mikrotik

I would share a simple case about Mikrotik.

If you found case like you miss configuration in your Mikrotik, then you can't access to your Mikrotik with Mac Address and IP Public you must try this trik:


Go to IP >> Neighbors.



In the Neighbors List, you can see Mikrotik name in Identity column. if you sure, you can right click in your mikrotik what you want, and the click MAC Telnet.


After that, fill the login and password. That all.



Note: after you login to neighbors, you only can configuration with console mode not GUI.

Jumat, 11 April 2014

About Me

This only just for make me remember about what i have created and what i have done. Is not for make peoples proud to me. And this for shared what i have created. You can take what you need.
But please for like or show your response to this web. I will very happy if we can to be man of value together. Not for show off.
Remember to show your response.

My Vision
- To be a man of value. not to be a man of success. By : Albert

- God always more near than you knows.

Mission
- Learn much more and more, but don't forget God always know what you done !
- Created my motivation to prepared the global technology in the new era.

Selasa, 28 Februari 2012

How to Create Mobile MidLet

Image 1

Image2
Image3

Image4



import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class Praktekif2 extends MIDlet implements
        CommandListener {
        Display d;
        Form f;
        Image img;
        Command cmdKeluar,cmdBeli,cmdProses,cmdKembali;
        //deklarasi variabel form 2
        Form f2;
        TextField txtKode,txtNama,txtHarga;
        ChoiceGroup cgSatuan;
        ///deklarsi variabel form 3
        private Form f3;
        private StringItem siKode,siNama,siSatuan,siHarga,siKet;
        private Command cmdKembali2;
        //akhir deklarasi
        public Praktekif2(){
        d=Display.getDisplay(this);
        f=new Form("Halaman Utama");
        try {
        img=Image.createImage("/edit.jpg");
        }catch(Exception e) {
            e.printStackTrace();
            System.out.println("Gambar Tidak Ada");
        }
        cmdKeluar=new Command("Keluar",Command.EXIT,0);
        cmdBeli=new Command("Beli",Command.OK,1);
        f.setTicker(new Ticker("Ivo Randi.MS"));
        f.append(img);
        f.addCommand(cmdBeli);
        f.addCommand(cmdKeluar);
        f.setCommandListener(this);
        }

   
       
      
    public void startApp() {
        d.setCurrent(f);
    }
   

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }
    public void commandAction(Command c,Displayable s){
        if(c==cmdKeluar){
            destroyApp(true);
            notifyDestroyed();
        }else if (c==cmdBeli){
            f2=new Form("Entry Barang");
            f2.setTicker(new Ticker("Pilih Barang"));
            cmdKembali=new Command("Kembali",Command.BACK,0);
            cmdProses=new Command("Proses",Command.OK,1);
            txtKode=new TextField("Kode Barang","",20,TextField.ANY);
            txtNama=new TextField("Nama Barang","",20,TextField.ANY);
            txtHarga=new TextField("Harga Barang","",10,TextField.NUMERIC);
            cgSatuan=new ChoiceGroup("Satuan",Choice.EXCLUSIVE);
            cgSatuan.append("KG", img);
            cgSatuan.append("BOX", img);
            f2.addCommand(cmdKembali);
            f2.addCommand(cmdProses);
            f2.setCommandListener(this);
            f2.append(txtKode);
            f2.append(txtNama);
            f2.append(txtHarga);
            f2.append(cgSatuan);
            d.setCurrent(f2);
       
        }else if(s==f2){
            if(c==cmdKembali){
                d.setCurrent(f);
            }else if(c==cmdProses){
                int Harga=0;
                String Keterangan="";
                //mengkonversi nilai
                Harga=Integer.parseInt(txtHarga.getString());
                if(Harga>=50000){
                    Keterangan="Anda Dapat Diskon 20%";
                }else{
                    Keterangan="Tidak Ada Diskon,Maaf ya...";
                }
                f3=new Form ("DATA BARANG");
                siKode=new StringItem("Kode Barang :",txtKode.getString());
                siKode.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD|Font.STYLE_UNDERLINED,Font.SIZE_MEDIUM));
                siNama=new StringItem("Nama Barang ;",txtNama.getString());    
                siNama.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
                siSatuan=new StringItem("Satuan ;",cgSatuan.getString(0));    
                siSatuan.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
                siHarga=new StringItem("Harga Barang ;",txtHarga.getString());    
                siHarga.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
               
                siKet=new StringItem("Keterangan :",Keterangan);
                siKet.setFont (Font.getFont(Font.FACE_PROPORTIONAL,Font.STYLE_BOLD,Font.SIZE_MEDIUM));
                cmdKembali2=new Command("Kembali",Command.BACK,0);
                //menambahkan objek kedalam form 3
                f3.addCommand(cmdKembali2);
               
                f3.append(siKode);
                f3.append(siNama);
                f3.append(siSatuan);
                f3.append(siHarga);
                f3.append(siKet);
                f3.setCommandListener(this);
               
                d.setCurrent(f3);
            }
           
         
        }
    }
}

Minggu, 12 Februari 2012

Steps to Making the Game

Making a complex or unusual game is not easy. But if we want to try for sure there is a way out of her ..I would share what I get from Google. For the steps to make the game it self can be briefly described as follows :
  •     Making game idea : Before you start making games , we need to think about what kind of games that we  will create , how to play , what would make people happy to play the game we , and others
  •     The process of pre-production : at this stage we need to prepare for various technical issues related to the game that we will create , for example, what technology will be used ( eg, platform or programming language ) , visual art direction or the direction of the game to be made , and finalization game design that we will in the implementation of the game
  •     Production process : at this stage we just created art and programming to the game , the game should be developed as much as possible made ​​version that can be played , so it can be tested at the same time we can spread into the community of game developers to ask for input .
  •     Release process , at this stage we consider the game finished and we release to the market . But we need to be sure to keep an eye on the comments of people who play our games , if any reports or complaints about bugs or errors should we fix it quickly .

Approximately that the game development process , to flowchart you can seen in the page of BlitzGames .


What the Programing Language to Create Games



The programming language used to make the game very dependent on the platform or technology used . For computer games , there are a few commonly used languages ​​, among which are :
  •     C + + , even though they had been there long enough , C + + is still used to make a lot of gaming desktops , ranging from indie games like Crayon Physics Deluxe , even big games like Crysis 2 .
  •     C # , can be used in the manufacture of desktop games using XNA , DirectX , or Unity3D . Can also be used to create web games using Silverlight or Unity3D . Examples of web game created using C # and Unity3D is LiloCity from Agate Studio .
  •     Java can be used to create desktop games , web games ( with format Java Applet ) , even for mobile games . Examples of desktop games created using the Java example Spiral Knights .
  •     Action script 3 , commonly used in making web games Flash Games format , eg : flash games on Facebook such as Shopping Paradise made ​​by Agate Studio or flash games on game portals , such as Earl Grey and Rupert Guy that is also made ​​by Agate Studio .
  •     PHP , HTML , Javascript ; The programming languages ​​used to create web games , for example in Facebook like Football Saga .
  •     Objective- C , is the specific language used to create computer games that use the Apple Mac OS .
Our advice , learned only one , try to create a game to completion . Experience makes the game was very important , because you will be able to train the basic programming skills and algorithms . Because between programming languages ​​are not too different from the algorithm , so if will need to learn another programming language would be easier if one has mastered a programming language .

What games are most popular in Indonesia?




So far there has been no survey that examines the most popular game genres in Indonesia , but in general there are some genres of games are popular in Indonesia :
  •  FPS or First Person Shooter , for example Counter Strike or Point Blank . Counter Strike is one of the most widely played games when the new game center trends emerge around the 2000s .

  •  RPG or Role Playing Game : This genre is quite popular among Indonesian games , ranging from the classic RPG games like Final Fantasy , until MMORPG such as Ragnarok Online

  • Real Time Strategy : Warcraft or DotA for example , type of game is also popular in Indonesia , with a number of community and competition type game
But there are several factors of a game that we feel preferred by Indonesian people :
  • Free-to -play , the majority of gamers in Indonesia prefer F2P models such as subscription models like this than WoW

  • An active community , gamers who love the game in Indonesia active community , so they can interact with other players and compete in games

  •  Competition , Indonesian gamers excited to compete , and like a game that could facilitate them to compete with their friends , though not necessarily in the form of a formal competition

That data on the game genre that gamers like Indonesia could be more complete , Agate Studio create a survey for Indonesian gamers . Come browse for the progress of the Game Industry Indonesia : D

Rabu, 13 Juli 2011

How to put opening and closing message on the blog

Previously I apologize if my post the other trade cheating, but I made it just to remind me anyway, so I do not forget that I have a blog . Actually to make opening and closing message on the blog not too hard anyway, but just the same we understand what we make.

Oke lets check it out.
  • First we went on an existing blog account, if you don't have account yo must create it first.

  • Then click on the design that is located in the top right.
  • Click on edit HTML or edit layout.
  • At the sorce code search that read and enter the following script below;
     <script type='text/javascript'>
     alert("Selamat datang di blog saya, jangan lupa komentarnya ya..")
     </script>


And, for byes when visitors would come out of our blog is;

      <script type='text/javascript'>
      // goodbye alert
      function goodbye(){
      alert(&#39;Terima kasih ataas kunjungannya, salam blogger.. &#39;);
      }
      parent.window.onunload=goodbye;
      </script>
 


Put this script right under the code or right under the code 'welcome' was first installed.

The greeting text can be changed according to the blogger your tastes, ok good luck and Greetings Indonesian Blogger.