Tampilkan postingan dengan label Linux. Tampilkan semua postingan
Tampilkan postingan dengan label Linux. Tampilkan semua postingan

Senin, 20 Februari 2012


$ sudo pico /etc/network/interfaces
auto eth1
iface eth1
inet static
address 192.168.1.206
netmask 255.255.255.0
network 192.168.1.0
broarcast 192.168.1.255
gateway 192.168.1.1
auto eth0
iface eth0 inet static
address 192.168.8.1
netmask 255.255.255.0
network 192.168.8.0
broadcast 192.168.8.255
gateway 192.168.1.206

Keterangan :  192.168.1.206 adalah IP WAN
                        192.168.8.1 adalah IP Local

Kemudian restart network 
$ /etc/init.d/networking restart
$ ifconfig eth1 up

Sabtu, 11 Februari 2012


Instalasi vsftpd
$ sudo apt-get install vsftpd

Mengaktifkan anonymous FTP
$ sudo gedit /etc/vsftpd.conf

Kemudian rubah :
anonymous_enable=No
menjadi
anonymous_enable=Yes

Copy file atau direktory ke direktory FTP ( /srv/ftp)
$ sudo cp file/direktory /srv/ftp
“file/direktory” adalah file yang akan di copy.


Install squid.
$ sudo apt-get install squid

Backup dulu filenya
$ sudo cp /etc/squid/squid.conf /etc/squid/squid.copy

Hapus File
$ sudo rm /etc/squid/squid.conf

Edit squid.conf
$ sudo pico /etc/squid/squid.conf
isikan file :

acl all src all
acl localnet src 192.168.8.0/24
acl situs url_regex -i “/etc/squid/blokir.txt”
http_access deny situs
http_access allow localnet
http_access allow all
http_port 3128 transparent
cache_mem 100 mb
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
store_dir_select_algorithm round-robin
cache_dir aufs /cache 10000 24 256
cache_store_log none
cache_access_log /var/log/squid/access.log
cache_effective_user proxy
cache_effective_group proxy
visible_hostname tkj06

Pertama masuk ke root
$ sudo su
Kemudian masukan password

Membuat file Masquerade
$ sudo pico masquerade

Isikan file Masquerade :
#!/bind/bash

iptables -F
iptables -X

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

iptables -t nat -A POSTROUTING -s 192.168.8.0/24 -d 0/0 -j MASQUERADE
kemudian save

Jumat, 10 Februari 2012

Pada terminal, masukkan perintah berikut untuk menginstal dns:
$ sudo apt-get install bind9
Untuk pengujian dan troubleshooting masalah DNS adalah paket dnsutils. Untuk menginstal dnsutils masukkan berikut ini:
$ sudo apt-get install dnsutils
Edit /etc/bind/ named.conf.options : (tambahkan DNS IP ISP Anda)
$ sudo pico /etc/bind/named.conf.options
directory “/var/cache/bind”;
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0′s placeholder.
// forwarders {
// 0.0.0.0;
// };
//

Selasa, 07 Februari 2012

Sebelumnya kita harus meng-update terlebih dahulu
$ sudo apt-get update
 
Install dhcp server.
$ sudo apt-get install dhcp3-server

Edit file isc-dhcp-server.
$ sudo pico /etc/default/isc-dhcp-server
Cari INTERFACES=” “

Edit hingga menjadi :
INTERFACES=”eth0″
Keterangan : “eth0″ adalah ethernet yang digunakan LAN (Local).

Edit file dhcpd.conf
$ sudo pico /etc/dhcp/dhcpd.conf
Cari tulisan  # A slightly different configuration for an internal subnet.

Kemudian edit sehingga menjadi :
# A slightly different configuration for an internal subnet.
subnet 192.168.8.0 netmask 255.255.255.0 {
range 192.168.8.1 192.168.8.30;
option domain-name-servers 202.155.0.10,202.155.0.15;
option domain-name “lukman.net”;
option routers 192.168.8.1;
option broadcast-address 192.168.8.255;
default-lease-time 600;
max-lease-time 7200;
}
Subscribe to RSS Feed Follow me on Twitter!