Tuesday, October 4, 2016

Hide Button Download In VierwerJs

Q: How to hidden button download etc in ViewerJs?
A: Please follow this tutorial:

1. Open file index.html in root folder ViewerJs
2. Find code



3. Add attribute in button id="download"
style="display: none;"
4. See your file PDF in browser

Wednesday, November 27, 2013

Configuration Router DHCP+Access Ponit [Cisco]


Router_DHCP
Router(config)#ip dhcp pool dhcp1
Router(dhcp-config)#network 192.168.10.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#exit
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.10.1 255.255.255.0
Router(config-if)#no shu
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#

change device laptop to wireless device MODULES[Linksys-WPC300N]

Static Route on Mikrotik [Vol. 2]

Yups,, berikut ini adalah routing static dengan 3 router dengan catatan router B and C tidak tersambung dengan kabel UTP.
langsung aja cekidot, berikut shcema ya:
Alright let’s go to config:
1. RouterA:
ip lan: 192.168.10.1/24
ip to router B: 10.1.1.1/30
ip to router C: 10.20.5.1/30
and it’s config route
/ip route
add comment=”" disabled=no distance=1 dst-address=192.168.20.0/24 gateway=10.1.1.2 scope=30 target-scope=10
add comment=”" disabled=no distance=1 dst-address=192.168.30.0/30 gateway=10.20.5.2 scope=30 target-scope=10

2. Router2:
ip lan:192.168.20.1/24
ip to router A:10.1.1.2/30
Config route:

/ip route
add disabled=no distance=1 dst-address=10.20.5.0/30 gateway=10.1.1.1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=192.168.10.0/24 gateway=10.1.1.1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=192.168.30.0/24 gateway=10.1.1.1 scope=30 target-scope=10

3. Router3:
ip1:192.168.30.1/24
ip2:10.20.5.2/30
Config route:

/ip route
add comment=”" disabled=no distance=1 dst-address=10.1.1.0/30 gateway=10.20.5.1 scope=30 target-scope=10
add comment=”" disabled=no distance=1 dst-address=192.168.10.0/24 gateway=10.20.5.1 scope=30 target-scope=10
add comment=”" disabled=no distance=1 dst-address=192.168.20.0/24 gateway=10.20.5.1 scope=30 target-scope=10

Oke, config is finish and you can test configuration with ping IP

Fail Over on Mikrotik

Oke it’s simple configuration fail over on mikrotik, and it’s picture schema network:


Yups,,, you can configuration in router client, you just add configuration dst-address=0.0.0.0/0, check-gateway=ping and you can change distance.


/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.10.1.1 scope=30 target-scope=10 check-gateway=ping
add disabled=no distance=4 dst-address=0.0.0.0/0 gateway=100.50.1.1 scope=30 target-scope=10 check-gateway=ping
and you can add 2 nat in router:

/ip firewall nat
add chain=srcnat action=masquerade out-interface=ether ISP A
add chain=srcnat action=masquerade out-interface=ether ISP B
you can test configuration, by unplugging one of the lan cable from one router isp, and you try to watch the ip route is visible no change. If viewed from the router configuration that leads to the ISP distence A smaller then the priority will lead to ISP A, if the UTP cable to unplug the ISP A in the route will automatically move to ISP B

See Configuration Nano Station 5 with SSH

Oke, berikut ini adalah tips melihat configurasi radio Nano Station 5 dengan menggunakan SSH, langsungg…. disini saya menggunakan software Putty :) pertama ente harus LOGIN dulu ye dan setelah login ketikin dan perintah dibawah, setelah perintah vi system.cfg dijalankan maka akan muncul konfigurasi pada radio NS

    #cd /tmp
    #vi system.cfg

    aaa.1.status=disabled
    aaa.status=disabled
    bridge.1.devname=br0
    bridge.1.fd=1
    bridge.1.port.1.devname=eth0
    bridge.1.port.1.status=enabled
    bridge.1.port.2.devname=ath0
    bridge.1.port.2.status=enabled
    bridge.1.stp.status=disabled
    bridge.status=enabled
    dhcpc.1.devname=br0
    dhcpc.1.status=disabled
    dhcpc.status=disabled
    dhcpd.1.status=disabled
    dhcpd.status=disabled
    dnsmasq.1.devname=eth0
    dnsmasq.1.status=enabled
    dnsmasq.status=disabled
    ebtables.1.cmd=-t nat -A PREROUTING –in-interface ath0 -j arpnat –arpnat-targe
    ebtables.1.status=disabled
    ebtables.2.cmd=-t nat -A POSTROUTING –out-interface ath0 -j arpnat –arpnat-tar
    ebtables.2.status=disabled
    ebtables.3.cmd=-t broute -A BROUTING –protocol 0x888e –in-interface ath0 -j DR
yups setelah anda mengetikan vi system.cfg anda bisa langsung dapat melihat isi konfigurasi pada radio anda(yang diatas itu hanya sebagian kecil saja loh :D ), so jika ingin meng-edit tinggal tekan “Insert” pada key board lalu rubah pada value yang anda inginkan jika sudah tekan ESC lalu tekan tanda “:” ketikan “wq!”. Contoh: :wq! eemm… jika dilihat seperti command pada terminal di linux ya :D oke cukup itu saja untuk pagi hari ini see you and bye-bye