Académique Documents
Professionnel Documents
Culture Documents
tkj@smeknisy:~$ sudo su
[sudo] password for tkj:*****
root@smeknisy:/home/tkj#ifconfig -a
lihat nama interface untuk disetting ip
root@smeknisy:/home/tkj# pico /etc/network/interfaces
auto enp0s3
iface enp0s3 inet static
address 192.168.1.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package,
dns-nameservers 192.168.1.1 8.8.8.8 192.168.100.1
dns-search smeknisy.web.id
auto enp0s8
iface enp0s8 inet static
address 192.168.100.1
netmask 255.255.255.248
root@smeknisy:/home/tkj# service networking restart
root@smeknisy:/home/tkj# pico /etc/sysctl.conf
hilangkan tanda # pada
net.ipv4.ip_forward=1
root@smeknisy:/home/tkj# pico /etc/rc.local
tambahkan perintah/script berikut diatas exit 0
iptables -t nat -A POSTROUTING -j MASQUERADE -o enp0s3
iptables -A FORWARD -i enp0s8 -o enp0s3 -j ACCEPT
root@smeknisy:/home/tkj# pico /etc/apt/sources.list
setelah itu disable(tambahkan #)sebelum script/link security agar tidak lama dalam proses update
root@smeknisy:/home/tkj# apt-get update
root@smeknisy:/home/tkj# apt-get install openssh-server
root@smeknisy:/home/tkj# pico /etc/ssh/sshd_config
ganti Port 22 menjadi Port 1734
root@smeknisy:/home/tkj# service ssh restart
root@smeknisy:/home/tkj# apt-get install apache2
root@smeknisy:/home/tkj# apt-get install mysql-server
root@smeknisy:/home/tkj# apt-get install bind9
root@smeknisy:/home/tkj# pico /etc/bind/named.conf.default-zones
buat zona baru dibawah zona localhost
};
zone "smeknisy.web.id" {
type master;
file "/etc/bind/db.paijo";
};
root@smeknisy:/home/tkj# cp /etc/bind/db.local /etc/bind/db.paijo
root@smeknisy:/home/tkj# pico /etc/bind/db.paijo
ubah localhost menjadi smeknisy.web.id dan tambahkan subdomain paijo
;
; BIND data file for local loopback interface
;
$TTL
@
604800
IN
SOA
smeknisy.web.id. root.smeknisy.web.id. (
2
; Serial
604800
; Refresh
86400
; Retry
2419200
; Expire
604800 )
; Negative Cache TTL
;
@
@
@
www
paijo
IN
IN
IN
IN
IN
NS
A
AAAA
A
A
smeknisy.web.id.
192.168.100.1
::1
192.168.100.1
192.168.100.1
setting ip client:
Hasil:
SETELAH ITU EDIT FILE login.html dan edit sesuai ketentuan soal,,, bisa menggunakan ftp dengan
cara ftp://smeknisy.sch.id
Atau bisa lewat winbox... files /hotspot/login.html,,,
copy edit dan replace!! ;)
[admin@topaqwerty] >> system scheduler add name=internet-nyala startdate=Jan/01/2001 start-time=07:00:01 interval=1d on-event="/ip firewall nat
enable numbers=2"
[admin@topaqwerty] >> system scheduler add name=internet-padam startdate=Jan/01/2001 start-time=19:00:01 interval=1d on-event="/ip firewall nat
disable numbers=2"
[admin@topaqwerty] >> interface wireless enable wlan
[admin@topaqwerty] >> interface wireless security-profiles add name=kunci
wpa-pre-shared-key=123456789
[admin@topaqwerty] >> interface wireless set mode=ap-bridge
ssid=topaqwerty@proxy security-profile=kunci enable=yes numbers=0
untuk yang saya kasih warna merah harus sesuai nomer,, oke!!!!
hasil:
Dhcp server pada hotspot dan lan sukses, sehingga client tidak usah setting ipaddress secara manual
Client yang terhubung lewat kabel tidak keblokir dan bisa akses internet selama 24jam nonstop
CLIENT YANG TERHUBUNG PADA WIRELLES MAKA:
Jam 19.00 internet padam
Jam 7.00 internet nyala
Tidak bisa akses(block) www.linux.or.id
Tidak bisa download dengan ekstensi .mp3 & .mkv
link menuju pembahasan ukk yang lain: