Tampilkan postingan dengan label OpenWrt. Tampilkan semua postingan
Tampilkan postingan dengan label OpenWrt. Tampilkan semua postingan

Kamis, 14 Juli 2022

Extroot and install luci in firmware OpenWrt Compilation

Tp-Link MR3420 v2 when viewed on the openwrt web https://openwrt.org/toh/tp-link/tl-mr3420 does not support OpenWrt 19.07.5.Only release until openwrt 17.01.7.

But by getting a modified firmware without luci and ppp, OpenWrt 19.07.5 can be installed on TP-Link MR3420 v2.4. 
The following is how to Extroot and install luci web on openwrt TP-Link MR3420 v.24 with firmware Compilation results for OpenWrt 19.07.5, TPLINK 3420 v2, USB-NET-WiFi, without LuCI, PPP.bin which can be obtained from the web in English Russia.



 Detail play Vdeo and activated feature CC/Subtitle to see detail intruction

firmware Compilation results for OpenWrt 19.07.5, TPLINK 3420 v2, USB-NET-WiFi, without LuCI, PPP.bin

- openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-factory.bin

- openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-sysupgrade.bin

firmware Link  https://bit.ly/3Bl94pB

How to download on this blog:

If the "Take Me" page appears, just click "Take Me" and follow the next instructions

Before extrooting the flash drive,we first create a partition using the Mini Partition Wizard tools.

Flashdisk (Minimum 2GB or Higher)

First primary partition:

- Create a 512MB swap partition to free up ram

Second primary partition:

- Create an ext4 partition, use all the remaining partitions to be made to ext4

Access 192.168.1.1 in the browser. No Luci yet.

Because this firmware is Non Luci and PPP

Previously, the Flashdisk that had been partitioned "sda1 Linux Swap" and "sda2 Ext4" was plugged 

into the router's usb port

find out the number of Router's default ROM

root@OpenWrt:~#df -h

To find out UUID flash

root@OpenWrt:~#block info

Example output:

/dev/mtdblock2: UUID="9fd43c61-c3f2c38f-13440ce7-53f0d42d" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"

/dev/mtdblock3: MOUNT="/overlay" TYPE="jffs2"

/dev/sda2: UUID="fdacc9f1-0e0e-45ab-acee-9cb9cc8d7d49" VERSION="1.4" TYPE="ext4"

/dev/sda5: Version="1" TYPE="swap"

Run WinSCP

Access 192.168.1.1 user root password root

Find folder /etc/config/fstab

Output :

config 'global'

        option anon_swap  '0'

        option anon_mount '0'

        option auto_swap  '1'

        option auto_mount '1'

        option delay_root '5'

        option check_fs   '0'

For UUID copy your Flasdisk UUID Ext4 obtained in PuTTy when checking "block info"

/dev/sda2: UUID="fdacc9f1-0e0e-45ab-acee-9cb9cc8d7d49" VERSION="1.4" TYPE="ext4"

Change or edit like this :

config 'global'

        option anon_swap  '0'

        option anon_mount '1'

        option auto_swap  '1'

        option auto_mount '1'

        option delay_root '5'

        option check_fs   '0'

config 'swap'

        option device '/dev/sda1'

        option enabled '1'

config 'mount'

        option target '/mnt/sda2'

        option device '/dev/sda2'

        option uuid 'fdacc9f1-0e0e-45ab-acee-9cb9cc8d7d49'

        option enabled '1'

        option fs_type 'ext4'

        option options 'rw,sync'

Click SAVE and CLOSE

Open PuTTy type :

root@OpenWrt:~#block mount

root@OpenWrt:~#tar -C /overlay -cvf - . | tar -C /mnt/sda2 -xf -

root@OpenWrt:~#mkdir -p /tmp/cproot

root@OpenWrt:~#mount --bind / /tmp/cproot

root@OpenWrt:~#tar -C /tmp/cproot -cvf - . | tar -C /mnt/sda2 -x

Wait until the process is complete

root@OpenWrt:~#umount /tmp/cproot

Open WinScp find and edit /etc/config/fstab

Change or edit like this :

config 'global'

        option anon_swap  '0'

        option anon_mount '1'

        option auto_swap  '1'

        option auto_mount '1'

        option delay_root '5'

        option check_fs   '0'

config 'swap'

        option device '/dev/sda1'

        option enabled '1'

config 'mount'

        option target '/overlay'

        option device '/dev/sda2'

        option uuid 'fdacc9f1-0e0e-45ab-acee-9cb9cc8d7d49'

        option enabled '1'

        option fs_type 'ext4'

        option options 'rw,sync'

        option is_rootfs '1

SAVE AND CLOSE

Reboot Router

root@OpenWrt:~#reboot

Wait for the router to finish rebooting

Open PuTTy Access back 192.168.1.1 user root password root

root@OpenWrt:~#df -h

If the display looks like this,

EXTroot is successful,

dev/sda2/overlay matches the capacity of the previously created EXT4 partition.

Open WinScp and check folder

The /mnt/sda2 folder already exists

Install LUCI

First connect the router with an internet source

eth0 = WAN means that the router's WAN port is connected to your internet source 

so that the opkg update can run

root@OpenWrt:~#opkg update

Wait until the process is complete

Install Luci by typing

root@OpenWrt:~#opkg install luci

Wait for the Luci webui installation process to finish

The Luci installation process is complete

Open Browser access 192.168.1.1 user root password root

EXTroot capacity and install luci is appropriate


Rabu, 12 Januari 2022

Tutorial Install MQQT Broker on OpenWrt 19.07.5

Detail play Vdeo and activated feature CC/Subtitle to see detail intruction



 

Step by Step intruction :

Login router with PuTTy

root@OpenWrt:~# opkg update

root@OpenWrt:~# opkg install mosquitto-ssl

root@OpenWrt:~# opkg install mosquitto-client-ssl libmosquitto-ssl

Open WinSCP 
Find and edit the mosquitto.conf file in /etc/mosquitto/mosquitto.conf

Edit the mosquitto.conf file to be like this
# ===========================
# General configuration
# ===========================
# Port to use for the default listener.
port 1883
# anonymous
allow_anonymous false
# persistence
persistence true
# name of the file for persistence
persistence_file mosquitto.db
# location of the file for persistence
persistence_location /mnt/sda2/mosquitto/
#how often to save to the persistence file
autosave_interval 1800
log_timestamp true
log_dest file /mnt/sda2/mosquitto/mosquitto.log
log_dest stdout
password_file /mnt/sda2/mosquitto/passwords.txt
===============================
SAVE dan Close
root@OpenWrt:~# /etc/init.d/mosquitto enable
root@OpenWrt:~# /etc/init.d/mosquitto restart

Create MQTT User1 
root@OpenWrt:~# mosquitto_passwd -c /mnt/sda2/mosquitto/passwords.txt keishax1 <<<< Edit you user 
Password :              <<<< type the password 
Reenter Password :      <<<< type the password again

If it happens like that, because the passwords.txt file in /mnt/sda2/mosquitto/passwords.txt doesn't exist yet

Open WinScp 
Find Folder /mnt/sda2
Make file :
passwords.txt
mosquitto.log
Make Folder : mosquitto <<< set permision 0777

Move the passwords.txt and mosquitto.log files to the 
/mnt/sda2/mosquitto/ folder

Repeat for MQTT user and password 
Create MQTT User1

root@OpenWrt:~# mosquitto_passwd -c /mnt/sda2/mosquitto/passwords.txt keishax1 <<<<<< Edit you user
Password :              <<<< type the password
Reenter Password :      <<<< type the password again

root@OpenWrt:~# /etc/init.d/mosquitto stop

root@OpenWrt:~# mosquitto -c /etc/mosquitto/mosquitto.conf

If error unable Open

Open WinScp
Find file mosquitto.log in folder /mnt/sda2/mosquitto/mosquitto.log set permision to 0755
mosquitto.log set permision to 0777

root@OpenWrt:~# mosquitto -c /etc/mosquitto/mosquitto.conf

If there is no error, it looks like this

1604592752: mosquitto version 1.6.12 starting
1604592752: Config loaded from /etc/mosquitto/mosquitto.conf.
1604592752: Opening ipv4 listen socket on port 1883.

MQTT Broker is already running 
Can check in the mosquitto.log file and saving memory is stored in mosquitto.db

If you want to set MQTT via Luci Web Install MQTT Luci

root@OpenWrt:~# opkg install luci-app-mosquitto

Refresh Luci web and check in the Services menu mosquitto
Service Mosquitto already installed

If MQTT Broker is already set via WinScp, you don't need to set MQTT via Luci service mosquitto

Test with a laptop using MQTT Explorer to access the web temperature chart MQTT ESP8266
Testing MQTT ESP8266 temperature

Senin, 04 Oktober 2021

Install OpenWrt 19.07.5 TP-LINK MR3420 v2.4

      Pada web resmi OpenWrt Tp-Link MR3420 v2 Current release hanya sampai di OpenWrt 17.01.7 bisa cek DISINI Karena hanya punya Tp-Link MR3420 v2 sedangkan ingin menginstall MQTT Broker Openwrt hanya Support Openwrt 19.07.5 keatas.

    Setelah browsing kesana kemari ketemu web berbahasa rusia share Firmware Openwrt 19.07.5 untuk Tp-Link MR3420 v2 tetapi compilant firware tersebut tanpa Luci dan PPP kalau diterjemahkan seperti ini "Compilation results for OpenWrt 19.07.5, TPLINK 3420 v2, USB-NET-WiFi, without LuCI, PPP" 

Cara instal Openwrt Tp-Link MR3420 v2 sebagai berikut :

1. Download dulu firmwarenya DISINI

2. Extrak file Compilation results for OpenWrt 19.07.5, TPLINK 3420 v2, USB-NET-WiFi, without LuCI, PPP hasil downloadnya menggunakan winrar akan ada 2 file :

- openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-factory.bin

- openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-sysupgrade.bin

3. Nyalakan router dan hubungkan port LAN ke PC/Laptop.Buka browser dan akses/login ke default ip router 192.168.0.1 username : admin password : admin .

4. Selanjutnya klik menu System tools ----> Firmware Upgrade -----> Choose File
5. Pilih File/Choose File openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-factory.bin yang sudah di extract sebelumnya. lalu klik Upgrade 
6. Proses Upgrade akan berjalan .INGAT saat proses upgrade jangan melepas kabel LAN serta power atau listrik mati.bila itu terjadi akan berakibat router BRICK.

7. Jika Software upgrade sukses router akan restart otomatis


8  Setelah proses upgrade selesai dan router  reboot, cek ip pc/laptop sudah mendapatkan ip 192.168.1.x
Jika sudah berarti upgrade selesai. Dan Firware router sudah menjadi OpenWrt 19.07.5 tetapi tanpa LUCI dan PPP

Sampai tahap ini JANGAN HARAP BISA MENGAKSES ROUTER VIA WEB BROWSER 192.168.1.1
Karena seperti dijelaskan sebelumnya diatas bahwa firmware ini tanpa LUCI dan PPP artinya hanya bisa diakses via PuTTy dan WinSCP untuk melanjutkan langkah-langkah berikutnya.

9. Untuk melakukan Sysupgrade Openwrt file "openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-sysupgrade.bin" pada file ke 2 yang sudah didownload  bisa merujuk langkahnya ke SINI 

10. Rename file openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-sysupgrade.bin menjadi fw.bin

11. Buka WinSCP 192.168.1.1 username: root password : root cari folder /tmp dan upload/drag  file fw.bin ke folder /tmp.
Setelah diupload pastikan alamat directorynya sudah benar  /tmp/fw.bin

12. Buka  PuTTY 192.168.1.1 username: root password : root

13. Ketik sysupgrade -v /tmp/fw.bin

# Flash firmware
root@OpenWrt:~# sysupgrade -v /tmp/fw.bin
14. Bila sysupgrade is not available. bisa menggunakan cara ini 
ketik mtd -r write /tmp/fw.bin firmware
# Flash firmware
root@OpenWrt:~# mtd -r write /tmp/fw.bin firmware
15.Tunggu hingga router Reboot

16. Untuk bisa install LUCI agar router bisa diakses via web browser, Router harus ExtRoot terlebih dulu agar muat untuk proses install LUCI

Pembahasan ExtRoot dan install LUCI Berambung dipostingan berikutnya..............................

Atau bisa mengikuti panduan video ExtRoot dan install Luci OpenWrt 19.07.5 TPLINK 3420 v2 


Note : 
Install OpenWrt 19.07.5 TP-LINK MR3420 v2 bisa dilakukan juga dengan cara :

- Router TP-LINK MR3420 v2 upgrade dan sysupgrade ke  openwrt  17.01.7 dulu
- Selanjutnya melakukan upgrade OpenWrt 19.07.5 dengan file  openwrt-ar71xx-tiny-tl-mr3420-v2-squashfs-sysupgrade.bin 


PERINGATAN: Dengan mengunduh firmware pada Blog ini dan mengaplikasikannya atau mengikuti panduan ini  pada peralatan anda, anda memahami bahwa resiko adalah tanggung jawab dan menjadi perhatian anda sendiri.





Minggu, 12 September 2021

EasyHotspot OpenWrt Bagian 5 - Konfigurasi Terakhir

 Ini merupakan lanjutan dari EasyHotspot OpenWrt Bagian 4 - Konfigurasi Coova-Chilli

Lakukan langkahnya sebagai berikut :

- masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:/srv/www/easyhotspot/install# mv /etc/chilli/www /etc/chilli/www.bak

------------------------------------------------------------------------------------

Download www.rar Download Now

* Cara download Click Link diatas akan diarahkan  ke notifikasi  Click "Take Me" selanjutnya tinggal ngikuti petunjuk yang diberikan

extract dengan winrar

Masukkan folder "www" ke folder /etc/chilli/ melalui "WinScp"

1. Konfigurasi PHP

- Edit bagian dibawah ini, di file /etc/php.ini , menggunakan "WinScp"

------------------------------------------------------------------------------------

short_open_tag = On

doc_root =

------------------------------------------------------------------------------------

2. Konfigurasi uhttpd

- Edit bagian dibawah ini, di file /etc/config/uhttpd , menggunakan "WinScp"

------------------------------------------------------------------------------------

# Server configuration

config uhttpd main

    list listen_http    0.0.0.0:80

    option home        /www

    option cgi_prefix     /cgi-bin

config uhttpd secondary

    list listen_http    0.0.0.0:81

    option home        /www/easyhotspot

    option cgi_prefix     /cgi-bin

    # HTTPS listen addresses, multiple allowed

    list interpreter    ".php=/usr/bin/php-cgi"

    list interpreter    ".cgi=/usr/bin/perl"

------------------------------------------------------------------------------------

- masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:/srv/www/easyhotspot/install# /etc/init.d/uhttpd restart

------------------------------------------------------------------------------------

Untuk lebih jelasnya dan melihat uji coba EasyHotspot OpenWrt bisa tonton video dibawah ini


- Silahkan akses login page easyhotspot melalui:

http://70.70.70.1:81/index.php

Tambahkan user melalui menu cashier>postpaid

Silahkan akses hotspot melalui hp/laptop via AP "OpenWrt Hotspot" >>>>>Sesuai nama wifinya

Untuk yang lainmya, silahkan konfigurasi sendiri dan berkreasi,

karena point-point penting sudah di kupas tuntas oleh Sang Pembuat document oleh ID : Obengkumana

Dan dipraktekan di video ini berhasil.

Insya Allah, jika tidak ada kesalahan konfigurasi maka bisa langsung login dengan user & pass yang kita buat.

 "SEMOGA BERMANFAAT"

Terus budayakan "saling berbagi"

Special Thanks to:

- Sang Developer EasyHotspot: Rafeequl Rahman Awan

- Obengkumana

- Cindy Wijaya

- Skim Cepat Kaya

- Klik On Abiyasa

- Forum OpenWrt-Lede Indonesia

Dan rekan-rekan semua

EasyHotspot OpenWrt Bagian 4 - Konfigurasi Coova-Chilli

 Lanjutan EasyHotspot OpenWrt Bagian 3 - Konfigurasi HostNames-Radius

Lakukan urutan langkahnya sebagai berikut :

1. Konfigurasi Coova-chilli

- Masuk ke folder /etc/chilli , melalui "WinScp"

- Edit bagian dibawah ini, di dalam file /etc/chilli/wwwsh , menggunakan "WinScp"

------------------------------------------------------------------------------------

haserl=/usr/bin/haserl

------------------------------------------------------------------------------------

lalu "save" dan tutup

- Edit bagian dibawah ini, di dalam file /etc/chilli/defaults , menggunakan "WinScp"

------------------------------------------------------------------------------------

HS_NASID=nas01

HS_RADIUS=www.awanggacomp.net

HS_RADIUS2=www.awanggacomp.net

#HS_RADIUS=70.70.70.1

#HS_RADIUS2=70.70.70.1

HS_UAMALLOW=www.coova.org

HS_RADSECRET=easyhotspot

HS_UAMSECRET=easyhotspot

------------------------------------------------------------------------------------

lalu "save" dan tutup

tekan tombol "Shift+F4" , masukkan "local.conf", kemudian "Enter"

masukkan baris berikut

-------------------------------------------------------------------------------------

# auto config

-------------------------------------------------------------------------------------

lalu "save" dan tutup

tekan tombol "Shift+F4" , masukkan "main.conf", kemudian "Enter"

masukkan baris berikut

-------------------------------------------------------------------------------------

# THIS FILE IS AUTOMATICALLY GENERATED

cmdsocket       /var/run/chilli.br-lan.sock

unixipc         chilli.br-lan.ipc

pidfile         /var/run/chilli.br-lan.pid

net        10.1.0.0/255.255.255.0

uamlisten    10.1.0.1

uamport         3990

dhcpif        br-lan

uamallowed    "www.coova.org,10.1.0.1,70.70.70.1,70.70.70.236,facebook.com"

macallowed "xx-xx-xx-xx-xx-xx" # < mac addres LAN yg terhubung dengan router

uamanydns

domain "lan"

dns1 "208.67.222.222"

dns2 "208.67.220.220"

uamhomepage http://10.1.0.1:3990/www/coova.html

wwwdir /etc/chilli/www

wwwbin /etc/chilli/wwwsh

uamuiport 4990

locationname "AwangaComp-Net"

radiuslocationname "AwanggaComp_Net"

radiuslocationid "isocc=,cc=,ac=,network=AwanggaComp_Net,"

-------------------------------------------------------------------------------------

lalu "save" dan tutup

tekan tombol "Shift+F4" , masukkan "hs.conf", kemudian "Enter"

masukkan baris berikut

-------------------------------------------------------------------------------------

radiusserver1    "www.awanggacomp.net"

radiusserver2    "www.awanggacomp.net"

radiussecret    "easyhotspot"

radiusauthport  1812

radiusacctport  1813

uamserver    "http://10.1.0.1:4990/www/login.chi"

radiusnasid    "nas01"

papalwaysok

uamaliasname "chilli"

adminupdatefile "/etc/chilli/local.conf"

uamsecret "easyhotspot"

-------------------------------------------------------------------------------------

lalu "save" dan tutup

- Masuk ke folder /etc/init.d , melalui "WinScp"

tekan tombol "Shift+F4" , masukkan "chilli", kemudian "Enter"

masukkan baris berikut

-------------------------------------------------------------------------------------

#!/bin/sh /etc/rc.common

# Copyright (C) 2006 OpenWrt.org

START=50

RUN_D=/var/run

PID_F=$RUN_D/chilli.pid

start() {

    include /lib/network

    scan_interfaces

    /sbin/insmod tun >/dev/null 2>&1

    [ -d $RUN_D ] || mkdir -p $RUN_D

    config_get ipaddr lan ipaddr

    /usr/sbin/chilli --dns1="$ipaddr"

}

stop() {

    echo stop

    killall chilli

    [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1

}

-------------------------------------------------------------------------------------

lalu "save" dan tutup

- masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:/srv/www/easyhotspot/install# chmod a+x /etc/init.d/chilli

root@OpenWrt:/srv/www/easyhotspot/install# /etc/init.d/chilli start

root@OpenWrt:/srv/www/easyhotspot/install# chilli -fd

------------------------------------------------------------------------------------

akhiri dengan menekan "Ctrl+C"

Pastikan hasilnya seperti dibawah ini, maka sudah OK. jika ada errot jangan ke langkah berikutnya.edit dulu bagian yang error

------------------------------------------------------------------------------------

net.c: 1308: 0 (Debug) wlan0  address family: 17 (AF_PACKET)

net.c: 1308: 0 (Debug) wlan0-1  address family: 17 (AF_PACKET)

net.c: 1308: 0 (Debug) br-lan  address family: 17 (AF_PACKET)

net.c: 1308: 0 (Debug) lo  address family: 2 (AF_INET)

net.c: 1308: 0 (Debug) br-lan  address family: 2 (AF_INET)

net.c: 1308: 0 (Debug) 3g-wan2  address family: 2 (AF_INET)

net.c: 1308: 0 (Debug) tun0  address family: 2 (AF_INET)

net.c: 1308: 0 (Debug) tun1  address family: 2 (AF_INET)

dhcp.c: 480: 0 (Debug) hash table size 512 (512)

dhcp.c: 332: 0 (Debug) GARP: Replying to broadcast

dhcp.c: 1172: 0 (Debug) dhcpif (br-wifi) IPv6 address ::

radius.c: 1285: 0 (Debug) RADIUS client 0.0.0.0:0

redir.c: 1718: 125 (Address already in use) IP: 10.1.0.1 Port: 3990 - Waiting for retry.

redir.c: 1718: 125 (Address already in use) IP: 10.1.0.1 Port: 4990 - Waiting for retry.

redir.c: 1718: 125 (Address already in use) IP: 10.1.0.1 Port: 4990 - Waiting for retry.

^Cchilli.c: 7251: 0 (Debug) Failed to create redir listen

------------------------------------------------------------------------------------

- Masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:/srv/www/easyhotspot/install# netstat -apn

------------------------------------------------------------------------------------

pastikan isi baris sprti dibawah ini

------------------------------------------------------------------------------------

tcp        0      0 127.0.0.1:3306          0.0.0.0:*

tcp        0      0 10.1.0.1:3990           0.0.0.0:*

tcp        0      0 0.0.0.0:22              0.0.0.0:*

tcp        0      0 10.1.0.1:4990           0.0.0.0:*

udp        0      0 70.70.70.1:1812        0.0.0.0:*

udp        0      0 70.70.70.1:1813        0.0.0.0:*

----------------------------------------------------------------------------------------

root@OpenWrt:/srv/www/easyhotspot/install#

Lebih jelasnya bisa tonton video dibawah ini



EasyHotspot OpenWrt Bagian 3 - Konfigurasi HostNames-Freeradius-Mysql

 Berikut ini lanjutan dari EasyHotspot OpenWrt Bagian 2-Konfigurasi Easyhotspot-Mysql

Urutan langkahnya sebagai berikut :

1. Konfigurasi Hostnames

LUCI>Network>Hostnames

klik "Add"

Hostnames = www.awanggacomp.net  <<<< sesuaikan dengan HostName Router  Anda

IP Address = 70.70.70.1

klik "Save & Apply"

2. Konfigurasi Freeradius

- Edit bagian dibawah ini, di file /etc/freeradius2/sql.conf , menggunakan "WinScp"

------------------------------------------------------------------------------------

        # Connection info:

        server = "localhost"

        #port = 3306

        login = "easyhotspot"

        password = "easyhotspot"

        # Database table configuration for everything except Oracle

        radius_db = "hotspot"

------------------------------------------------------------------------------------

- Edit bagian dibawah ini, di file /etc/freeradius2/client.conf , menggunakan "WinScp"

------------------------------------------------------------------------------------

client www.awanggacomp.net {

    ipaddr = 70.70.70.1

    secret = easyhotspot

------------------------------------------------------------------------------------

- Edit bagian dibawah ini, di file /etc/freeradius2/radiusd.conf , menggunakan "WinScp"

------------------------------------------------------------------------------------

listen {

    type = auth

    interface = br-lan

}

listen {

    ipaddr = *

#    ipv6addr = ::

    port = 0

    type = acct

    interface = br-lan

#    clients = per_socket_clients

}

modules {

#    $INCLUDE eap.conf

    $INCLUDE sql.conf

    $INCLUDE sql/mysql/counter.conf

}

instantiate {

    max_all_mb

    noresetcounter

}

------------------------------------------------------------------------------------

- masuk "putty"                                      

root@OpenWrt:/srv/www/easyhotspot/install# mkdir -p /etc/freeradius2/sql/mysql

------------------------------------------------------------------------------------

Download 2 file berikut

dialup.conf  

counter.conf 

Link Download 2 file diatas DISINI

Masukkan 2 file tsb ke folder /etc/freeradius2/sql/mysql melalui "WinScp"

- Edit bagian dibawah ini, di file /etc/freeradius2/site/default , menggunakan "WinScp"

------------------------------------------------------------------------------------

authorize {

#    eap {

#        ok = return

#    }

#    files

    sql

    max_all_mb

    noresetcounter

#    pap

}

authenticate {

#    Auth-Type PAP {

#        pap

#    }

#    Auth-Type CHAP {

#        chap

#    }

#    Auth-Type MS-CHAP {

#        mschap

#    }

#    eap

}

accounting {

#    radutmp

#    unix

    sql

#    exec

}

session {

#    radutmp

    sql

}

post-auth {

    sql

}

------------------------------------------------------------------------------------

- Edit bagian dibawah ini, di file /usr/share/freeradius2/dictionary , menggunakan "WinScp"

------------------------------------------------------------------------------------

$INCLUDE dictionary.chillispot

------------------------------------------------------------------------------------

Download file berikut

dictionary.chillispot Download Now

Masukkan file tsb ke folder /usr/share/freeradius2/ melalui "WinScp"

- masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:/srv/www/easyhotspot/install# radiusd -X  

------------------------------------------------------------------------------------

Pastikan sudah tidak ada pesan eror,

------------------------------------------------------------------------------------

- Masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:/srv/www/easyhotspot/install# /etc/init.d/radiusd start

root@OpenWrt:/srv/www/easyhotspot/install# netstat -apn

------------------------------------------------------------------------------------

jika sdh ada baris berikut, maka sdh bs ke tahap selanjutnya

------------------------------------------------------------------------------------

udp        0      0 70.70.70.1:1812        0.0.0.0:*                           

udp        0      0 70.70.70.1:1813        0.0.0.0:*                           

-------------------------------------------------------------------------------------

Lebih jelasnya lihat pada video dibawah ini


* Cara download Click Link diatas akan diarahkan  ke notifikasi  Click "Take Me" selanjutnya tinggal ngikuti petunjuk yang diberikan

EasyHotspot OpenWrt Bagian 2-Konfigurasi Easyhotspot-Mysql

 Langsung saja ini merupakan lanjutan dari  EasyHotspot OpenWrt Bagian 1 install Repository

Urutan langkahnya sebagai berikut :

1. Konfigurasi Easyhotspot

Download easyhotspot.rar Download Now

extract dengan winrar

Jalankan  "putty"

------------------------------------------------------------------------------------

root@OpenWrt:~# mkdir -p /srv/www

------------------------------------------------------------------------------------

Masukkan folder easyhotspot di folder /srv/www melalui "WinScp"

masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:~# ln -s /srv/www/easyhotspot/htdocs /www/easyhotspot

------------------------------------------------------------------------------------

2. Konfigurasi Mysql

masuk "putty"

------------------------------------------------------------------------------------

root@OpenWrt:~# sed -i 's,^datadir.*,datadir = "/srv/mysql",g' /etc/my.cnf && sed -i 's,^tmpdir.*,tmpdir = "/tmp",g' /etc/my.cnf

root@OpenWrt:~# mkdir -p /srv/mysql && mysql_install_db --force

root@OpenWrt:~# /etc/init.d/mysqld start && /etc/init.d/mysqld enable

root@OpenWrt:~# mysqladmin -u root password 'pass123'

root@OpenWrt:~# mysql -u root -p

Enter password:

mysql> create database hotspot;

mysql> quit

root@OpenWrt:~# cd /srv/www/easyhotspot/install

root@OpenWrt:/srv/www/easyhotspot/install# mysql -u root -ppass123 hotspot <easyhotspot_opensource_2010-10-21.sql

root@OpenWrt:/srv/www/easyhotspot/install# mysql -u root -p

Enter password:

mysql> use mysql;

mysql> grant all privileges on *.* to easyhotspot@localhost;

mysql> grant usage on *.* to easyhotspot@localhost identified by 'easyhotspot';

mysql> flush privileges;

mysql> quit

root@OpenWrt:/srv/www/easyhotspot/install#

Untuk Detailnya Bisa lihat video di bawah ini


Link  Edit Template profil admin easyhotspot.rar

* Cara download Click Link diatas akan diarahkan  ke notifikasi  Click "Take Me" selanjutnya tinggal ngikuti petunjuk yang diberikan

Sabtu, 11 September 2021

EasyHotspot OpenWrt Bagian1 install Repository

Untuk membangun jaringan hotspot tidak lepas dari generate voucher hotspot.gunanya untuk memanagement bandwith / user yang diijinkan akses ke jaringan hotspot kita.

Yang familiar dalam penggunaanya adalah memakai mikrotik.Tetapi bagaimana bila kita pemula dan tidak mempunyai mikrotik?....Ada solusi yang bisa dipakai bila kita menggunakan router dengan Fw OpenWrt yaitu namanya EasyHotspot.Merupakan open source yang  dibuat oleh Sang Developer EasyHotspot: Rafeequl Rahman Awan

Untuk install EasyHotspot Openwrt dibagi beberapa tahapan bagian diataranya:

Tahap 1

- Flash router menjadi OpenWrt disini saya menggunakan router TP-Link MR3420 v1.2 dengan Fw openwrt-ar71xx-generic-tl-mr3420-v1-jffs2-sysupgrade Bisa disesuaikan sesuai keinginan sesuai merk / model routernya yang terpenting repository paket tersedia.

Tahap 2

- Wajib EXTroot biar muat untuk install Paketnya.

Disini saya menggunakan FD 8GB

- 150 MB,  format = swap2

- 250 MB,  format = ext4

Sisanya saya biarkan buat sharing file music player dan web lokal

Tahap 3

- Konfigurasi router

Untuk tahap pertama sampai tahap ketiga kita tidak jelaskan disini kita anggap sudah paham semuanya dan router sudah siap untuk di install packagez easyhotspot

Tahap 4

- Instalasi Paket

root@OpenWrt:~# opkg update

root@OpenWrt:~# opkg install kmod-sched kmode-tun coova-chilli haserl lighttpd lighttpd-mod-cgi  php5-cgi php5-cli php5-mod-gd php5-mod-gmp php5-mod-mysql php-pear freeradius2 freeradius2-mod-sql-mysql php5-mod-mcrypt perl openssl-util unzip git zoneinfo-asia zoneinfo-core freeradius2-mod-sqlcounter freeradius2-mod-sql freeradius2-mod-sql-mysql mysql-server libncursesw php5-mod-dom php5-mod-xmlwriter php5-mod-xmlreader zip lighttpd-simple-host

cara diatas jika install paket secara online dari web resminya.

Bila paket-paket diatas sudah download dan akan diinstall secara offline bisa dilakukan dengan cara :Masukkan file-file tersebut  di folder /tmp melalui "WinScp"

Jalankan PuTTy lakukan perintah 

root@OpenWrt:~# opkg install /tmp/*.ipk

root@OpenWrt:~# opkg update

root@OpenWrt:~# opkg install libncursesw

Untuk lebih jelasnya bisa simak video dibawah ini



Bersambung EasyHotspot OpenWrt Bagian2 pada posting selanjutnya DISINI


* Cara download Click Link diatas akan diarahkan  ke notifikasi  Click "Take Me" selanjutnya tinggal ngikuti petunjuk yang diberikan






Featured Post

Extroot and install luci in firmware OpenWrt Compilation