sebenernya apaun distronya ndak jauh beda klo untuk aplikasi2 apa aja yg dipakai atau configurasi-nya, semua tergantung sie admin mo bagai mana konsep-nya, bisa yg standar2 aja, bisa juga memakai LDAP atau LTSP semua bergantung pada admin-nya.
Untuk warnet sebenernya ndak ada distro khusus, hanya saja klo kita baru kenal linux pasti yg paling populer ya ubuntu tapi klo paling keren pasti bakal banyak macam distro tergantung ke-familiaran si user itu sendiri.
ane coba bantu untuk membuat sistem warnet yg standar2 aja yaaaa klo yg LDAP ato LTSP kudu di bikin part biar pas :bigsmile: langsung aja
Asumsi dgn PC client 10 unit, :
1. Kumpulkan data untuk koneksi ke ISP (biasanya klo kita bilang untuk warnet kita dikasih lengkap), IP Address, Subnet, DNS1 & DNS2, dan Gateway)
IP Address :125.162.49.222
Subnet :255.255.255.254
DNS1 :202.153.40.177
DNS2 :202.52.65.35
Gateway :125.162.54.1
2. Setting server sebagai gateway, (asumsi PC server : Billing, Printing dan gateway), karena kita pake 10 unit client maka subnetnya kita pake 255.255.255.128 jadi ipnya 192.168.10.1/25 (bingung liat aja data subnet dibawah) Kita tentukan IP Address Server yang terhubung ke LAN, misal : 192.168.10.1, DNS1 & DNS2 isi ama data yg dari ISP
Subnet Mask Nilai CIDR
255.128.0.0 /9
255.192.0.0 /10
255.224.0.0 /11
255.240.0.0 /12
255.248.0.0 /13
255.252.0.0 /14
255.254.0.0 /15
255.255.0.0 /16
255.255.128.0 /17
255.255.192.0 /18
255.255.224.0 /19
Subnet Mask Nilai CIDR
255.255.240.0 /20
255.255.248.0 /21
255.255.252.0 /22
255.255.254.0 /23
255.255.255.0 /24
255.255.255.128 /25
255.255.255.192 /26
255.255.255.224 /27
255.255.255.240 /28
255.255.255.248 /29
255.255.255.252 /30
3. buat/tentukan ip di PC Client, misal :
PC Client 1 s/d 10 (tinggal ganti ip aja, range dari 192.168.10.2 - 192.168.10.25)
IP Address : 192.168.10.2
subnet mask : 255.255.255.128
DNS1 :202.153.40.177
DNS2 :202.52.65.35
Gateway : 192.168.10.1 (IP address Server yang terkoneksi ke LAN)
4. Sharing Internet, (balik ke PC server) disini memakai 2 LAN Card eth0 & eth1
{Gnome version}
Buka network settings : System > Administration > Network pilih wired connection (eth0) kemudian klik Properties pada Connection Setting isikan seperti berikut ini :
Configuration : Static IP Address
IP Address :125.162.49.222
Subnet :255.255.255.128
Gateway :125.162.54.1
Klik OK kemudian kembali masuk ke Network Setting klik DNS dan tambahkan DNS Address dari ISP
DNS1 :202.153.40.177
DNS2 :202.52.65.35
Kembali ke Jendela Network Setting pilih Wired Connection (eth1) kemudian klik Properties, buat konfigurasi seperti berikut ini :
Configuration : Static IP Address
IP Address : 192.168.10.2 -> sesuaikan dengan LAN yang kita buat
subnet mask : 255.255.255.128
Gateway address : Kosongkan aja
Klik OK dan tutup Jendela Network Setting dan pasang kabel jaringan ke Switch
{Mode Console/terminal}
udah dijelasin ama bro kapten cuma nambahin untuk file /etc/network/interfaces
[eth0]
auto eth0
iface eth0 inet static
IP Address :125.162.49.222
Subnet :255.255.255.128
Gateway :125.162.54.1
[eth1]
auto eth1
iface eth1 inet static
IP Address :192.168.10.1
Subnet :255.255.255.128
Gateway :"" (Boleh ditulis boleh ndak)
5. sharing inet, lakukan ping dari PC Client dengan alamat IP Gateway : 192.168.10.1, jika ok berarti siap dilanjutkan
6. untuk aktifasi sharing inet bisa menggunakan software Firestarter, ato pake cara manual ya entu mengaktifkan IP forwarding.
Untuk Firestarter silahkan setting mengikuti wizard-nya dan pilih koneksi internetnya dari eth0 dan jaringan lokalnya dari eth1, sedangkan cara manual ketikkan ;
echo 1 > /proc/sys/net/ipv4/ip_forward
Restart koneksi...
Cara selanjutnya boleh dipake boleh kagak (up to Admin)
7. install squid, fungsinya untuk bandwidth limiter, dan security lainnyalah (pelajari sendiri), ini standar config squid.conf-nya (ane asumsiin pake speedy)
## Script Start Here ##
http_port 3128 transparent
hierarchy_stoplist cgi-bin ? localhost telkomspeedy.com telkom.net telkom.net.id kambing.ui.edu
acl QUERY urlpath_regex cgi-bin \? localhost telkomspeedy.com telkom.net telkom.net.id kambing.ui.edu
no_cache deny QUERY
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
maximum_object_size 64 MB
minimum_object_size 1 KB
ipcache_size 1024
ipcache_low 98
ipcache_high 99
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache 6000 14 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
log_fqdn off
log_icp_queries off
cache_store_log none
emulate_httpd_log on
pid_filename /var/run/squid.pid
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on
refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod
refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod
memory_pools off
icp_hit_stale on
query_icmp on
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
negative_ttl 1 minutes
half_closed_clients off
read_timeout 5 minutes
request_timeout 1 minutes
client_lifetime 360 minutes
shutdown_lifetime 2 seconds
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl warnet src 192.168.10.1/255.255.0.0
acl to_localhost dst 127.0.0.0/8
acl PURGE method PURGE
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # erryenroll
acl Safe_ports port 210 # dame-sit
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl CONNECT method CONNECT
http_access allow manager all
#http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow PURGE localhost
http_access deny PURGE
http_access allow localhost
http_access allow warnet
http_access deny all
http_reply_access allow all
icp_access allow warnet
icp_access deny all
#miss_access allow all
cache_mgr dame-sit@pamulang.net
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.pamulang.net
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
logfile_rotate 1
forwarded_for off
buffered_logs on
client_db off
strip_query_terms off
coredump_dir /var/spool/squid
## End Of Script ##
aktifkan/restart IP-forward agar config squid terbaca
echo 1 > /proc/sys/net/ipv4/ip_forward
Masquerade IP, berfungsi untuk merubah IP client menjadi IP Public agar bisa meresolv domain,
#iptables -t nat -A POSTROUTING -j MASQUERADE
Redirect port 80 ke port Squid 3128,
#iptables -t nat -A PREROUTING -s 192.168.10.1/25 -p tcp –dport 80 -j REDIRECT –to-port 3128
8. install billing CCL dan etc
9. Selamat menjalankan usaha warnet
10. Bagi2 Untung-nya yaaaa :ngakak:
Untuk warnet sebenernya ndak ada distro khusus, hanya saja klo kita baru kenal linux pasti yg paling populer ya ubuntu tapi klo paling keren pasti bakal banyak macam distro tergantung ke-familiaran si user itu sendiri.
ane coba bantu untuk membuat sistem warnet yg standar2 aja yaaaa klo yg LDAP ato LTSP kudu di bikin part biar pas :bigsmile: langsung aja
Asumsi dgn PC client 10 unit, :
1. Kumpulkan data untuk koneksi ke ISP (biasanya klo kita bilang untuk warnet kita dikasih lengkap), IP Address, Subnet, DNS1 & DNS2, dan Gateway)
IP Address :125.162.49.222
Subnet :255.255.255.254
DNS1 :202.153.40.177
DNS2 :202.52.65.35
Gateway :125.162.54.1
2. Setting server sebagai gateway, (asumsi PC server : Billing, Printing dan gateway), karena kita pake 10 unit client maka subnetnya kita pake 255.255.255.128 jadi ipnya 192.168.10.1/25 (bingung liat aja data subnet dibawah) Kita tentukan IP Address Server yang terhubung ke LAN, misal : 192.168.10.1, DNS1 & DNS2 isi ama data yg dari ISP
Subnet Mask Nilai CIDR
255.128.0.0 /9
255.192.0.0 /10
255.224.0.0 /11
255.240.0.0 /12
255.248.0.0 /13
255.252.0.0 /14
255.254.0.0 /15
255.255.0.0 /16
255.255.128.0 /17
255.255.192.0 /18
255.255.224.0 /19
Subnet Mask Nilai CIDR
255.255.240.0 /20
255.255.248.0 /21
255.255.252.0 /22
255.255.254.0 /23
255.255.255.0 /24
255.255.255.128 /25
255.255.255.192 /26
255.255.255.224 /27
255.255.255.240 /28
255.255.255.248 /29
255.255.255.252 /30
3. buat/tentukan ip di PC Client, misal :
PC Client 1 s/d 10 (tinggal ganti ip aja, range dari 192.168.10.2 - 192.168.10.25)
IP Address : 192.168.10.2
subnet mask : 255.255.255.128
DNS1 :202.153.40.177
DNS2 :202.52.65.35
Gateway : 192.168.10.1 (IP address Server yang terkoneksi ke LAN)
4. Sharing Internet, (balik ke PC server) disini memakai 2 LAN Card eth0 & eth1
{Gnome version}
Buka network settings : System > Administration > Network pilih wired connection (eth0) kemudian klik Properties pada Connection Setting isikan seperti berikut ini :
Configuration : Static IP Address
IP Address :125.162.49.222
Subnet :255.255.255.128
Gateway :125.162.54.1
Klik OK kemudian kembali masuk ke Network Setting klik DNS dan tambahkan DNS Address dari ISP
DNS1 :202.153.40.177
DNS2 :202.52.65.35
Kembali ke Jendela Network Setting pilih Wired Connection (eth1) kemudian klik Properties, buat konfigurasi seperti berikut ini :
Configuration : Static IP Address
IP Address : 192.168.10.2 -> sesuaikan dengan LAN yang kita buat
subnet mask : 255.255.255.128
Gateway address : Kosongkan aja
Klik OK dan tutup Jendela Network Setting dan pasang kabel jaringan ke Switch
{Mode Console/terminal}
udah dijelasin ama bro kapten cuma nambahin untuk file /etc/network/interfaces
[eth0]
auto eth0
iface eth0 inet static
IP Address :125.162.49.222
Subnet :255.255.255.128
Gateway :125.162.54.1
[eth1]
auto eth1
iface eth1 inet static
IP Address :192.168.10.1
Subnet :255.255.255.128
Gateway :"" (Boleh ditulis boleh ndak)
5. sharing inet, lakukan ping dari PC Client dengan alamat IP Gateway : 192.168.10.1, jika ok berarti siap dilanjutkan
6. untuk aktifasi sharing inet bisa menggunakan software Firestarter, ato pake cara manual ya entu mengaktifkan IP forwarding.
Untuk Firestarter silahkan setting mengikuti wizard-nya dan pilih koneksi internetnya dari eth0 dan jaringan lokalnya dari eth1, sedangkan cara manual ketikkan ;
echo 1 > /proc/sys/net/ipv4/ip_forward
Restart koneksi...
Cara selanjutnya boleh dipake boleh kagak (up to Admin)
7. install squid, fungsinya untuk bandwidth limiter, dan security lainnyalah (pelajari sendiri), ini standar config squid.conf-nya (ane asumsiin pake speedy)
## Script Start Here ##
http_port 3128 transparent
hierarchy_stoplist cgi-bin ? localhost telkomspeedy.com telkom.net telkom.net.id kambing.ui.edu
acl QUERY urlpath_regex cgi-bin \? localhost telkomspeedy.com telkom.net telkom.net.id kambing.ui.edu
no_cache deny QUERY
cache_mem 8 MB
cache_swap_low 98
cache_swap_high 99
maximum_object_size 64 MB
minimum_object_size 1 KB
ipcache_size 1024
ipcache_low 98
ipcache_high 99
cache_replacement_policy heap LFUDA
memory_replacement_policy heap GDSF
cache_dir aufs /cache 6000 14 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
log_fqdn off
log_icp_queries off
cache_store_log none
emulate_httpd_log on
pid_filename /var/run/squid.pid
reload_into_ims on
pipeline_prefetch on
vary_ignore_expire on
refresh_pattern ^ftp: 10080 95% 241920 reload-into-ims override-lastmod
refresh_pattern . 180 95% 120960 reload-into-ims override-lastmod
memory_pools off
icp_hit_stale on
query_icmp on
quick_abort_min 0
quick_abort_max 0
quick_abort_pct 98
negative_ttl 1 minutes
half_closed_clients off
read_timeout 5 minutes
request_timeout 1 minutes
client_lifetime 360 minutes
shutdown_lifetime 2 seconds
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl warnet src 192.168.10.1/255.255.0.0
acl to_localhost dst 127.0.0.0/8
acl PURGE method PURGE
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # erryenroll
acl Safe_ports port 210 # dame-sit
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl CONNECT method CONNECT
http_access allow manager all
#http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow PURGE localhost
http_access deny PURGE
http_access allow localhost
http_access allow warnet
http_access deny all
http_reply_access allow all
icp_access allow warnet
icp_access deny all
#miss_access allow all
cache_mgr dame-sit@pamulang.net
cache_effective_user proxy
cache_effective_group proxy
visible_hostname proxy.pamulang.net
#httpd_accel_host virtual
#httpd_accel_port 80
#httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
logfile_rotate 1
forwarded_for off
buffered_logs on
client_db off
strip_query_terms off
coredump_dir /var/spool/squid
## End Of Script ##
aktifkan/restart IP-forward agar config squid terbaca
echo 1 > /proc/sys/net/ipv4/ip_forward
Masquerade IP, berfungsi untuk merubah IP client menjadi IP Public agar bisa meresolv domain,
#iptables -t nat -A POSTROUTING -j MASQUERADE
Redirect port 80 ke port Squid 3128,
#iptables -t nat -A PREROUTING -s 192.168.10.1/25 -p tcp –dport 80 -j REDIRECT –to-port 3128
8. install billing CCL dan etc
9. Selamat menjalankan usaha warnet
10. Bagi2 Untung-nya yaaaa :ngakak:
Tool Kids >> Cyber Punk >> Internals >> Coders >> Old Guard Hackers >> Professional Criminals >> Cyber Terrorist



