Uts

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

--------------------- Command dan user management ---------------------

ganti pass root -> basswd root

ls -> melihat isi direktori yang aktif


cat -> melihat isi file secara keseluruhan
more -> menampilkan isi file secara keseluruhan
less -> melihat isi (bisa di-scroll)
cp -> meng-copy file
mv -> memindahkan file
rm -> menghapus file
mkdir -> membuat direktori
rmdir -> menghapus direktori
cd -> pindah direktori

tambah user -> adduser [nama]


ganti password -> psswd [password]
tambah group -> groupadd [nama group]
passwd untuk group -> gpasswd [password]
menambahkan anggota group -> gpasswd -a [nama] [nama group]
hapus anggota group -> gpasswd -d [nama] [nama group]

--------------------- Konfigurasi dan Instalasi Paket ---------------------

1. nano etc/network/interfaces
2. ketik
"iface lo inet loopback
auto eth0

iface enp0s3 inet static


/example
address 192.168.200.x
netmask 255.255.255.128 (/25)
network 192.168.200.0
broadcast 192.168.200.255
gateway 192.168.200.1
dns-nameservers 10.1.1.235
3. /etc/init.d/networking restart
4. ip addr
5. PING

----------------------------- DNS -----------------------------

0. install bind9
1. setting IP (^)
2. nano /etc/bind/named.conf.local
3. zone "esa.com"{
type master;
file "/etc/bind/db.esa.com"
};
4. nano /etc/bind/db_nama
;BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA esa.com root.esa.com(
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
6040800 ) ; Negative Cache TTL
;

@ IN NS ns1.esa.com.
@ IN NS ns2.esa.com.
@ IN A 192.168.200.115
ns1 IN A 192.168.200.115
ns2 IN A 192.168.200.115
www IN CNAME esa.com.
subdomain IN A //domain

5. /etc/init.d/bind9 restart
6. nano /etc/resolv.conf
search esa.com
nameserver 192.168.200.x
7. PING DNS

--------------------- Proxy Server ---------------------

1. instal squid3
2. nano etc/squid/squid.conf (search dan sesuaikan)

http_port 3128
cache_mem [1/4mem]
cache_mgr webmaster@esa.com
visible_hostname esa
cache_dir ufs /var/spool/squid 100 16 256
#http_access deny all
acl CONNECT method CONNECT
(tambahkan)
acl url dstdomain "/etc/squid/url"
acl key url_regex -i "/etc/squid/key"
http_access deny url
http_access deny key
acl lan src 192.168.200.0/24
http_access allow lan
http_access allow all

3. nano /etc/squid/url
4. nano /etc/squid/key

--------------------- Remote Access ---------------------

1. apt-get install ssh openssh-server


2. nano etc/ssh/sshd_config
port 22 -> 354
3. apt-get install figlet”
4. figlet [banner] > /etc/ssh/banner
5. echo "banner /etc/ssh/banner" >> /etc/ssh/sshd_config
6. /etc/init.d/ssh restart

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy