You are on page 1of 5

IP dan Router

ada sebuah router dengan 2 interface yang satu terhubung dengan internet dengan mode NAT dan yang satu dengan mode host only adapter dengan ip 192.168.56.2/24 dengan setingan sebagai berikut auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet static address 192.168.56.2 netmask 255.255.255.0 seting menjadi router dengan menambahkan setingan sebagai berikut, masih ingatkan caranya ?? ## seting dns nya isi resolv.conf dengan nameserver 192.168.101.1 ##aktifkan ip forwarding pico /etc/sysctl.conf net.ipv4.ip_forward=1 ## restart konfigurasi sysctl -p /etc/sysctl.conf ##nat pada interface iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE **eth1 adalah interface WAN (ke arah internet) di router anda, sesuaikan dengan tempat anda

Proxy Server
apt-get install squid setelah itu install squid proxy dengan konfigurasi sebagai berikut http_port 8080 transparent http_port 3128 icp_port 3130 forwarded_for off cache_swap_low 90 cache_swap_high 95 cache_dir coss /home/cache1 1584 max-size=131072 acl all src 0.0.0.0/0.0.0.0 acl yp src 192.168.56.0/24 http_access allow yp http_access deny all cache_access_log /var/log/access.log cache_swap_log /var/log/squid/%s cache_effective_user yp cache_effective_group yp visible_hostname ict-center.fkip.uns.ac.id-GD_A

Configurasi DNS Server di Debian


apt-get install bind9 Konfigurasi /etc/named.conf.local pico /etc/bind/named.conf.local // // Do any local configuration here // // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; zone "azura.com" { type master; file "/etc/bind/db.azura"; }; zone "1.168.192.in-addr.arpa" { type master; file "/etc/bind/db.192"; };

pico /etc/bind/named.conf.options 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 { 192.168.13.1; }; allow-query { any; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; };

cp /etc/bind/db.local /etc/bind/db.azura pico /etc/bind/db.azura ; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA azura.com. admin.azura.com. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS azura.com. @ IN MX 10 mail.azura.com. @ IN A 192.168.13.1 www IN CNAME azura.com. mail IN CNAME azura.com. cp /etc/bind/db.127 /etc/bind/db.192 pico /etc/bind/db.192 ; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA azura.com. admin.azura.com. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS localhost. 1.0.0 IN PTR azura.com.

setetlah itu restart service dengan perintah /etc/init.d/bind restart

Web Server
apt-get install apache2 apt-get install php5 apt-get install mysql-server apt-get install phpmyadmin masukkan script dibawah ini untuk test php pico /var/www/info.php <html> <head> <title> PHP Test Script </title> </head> <body> <?php phpinfo( ); ?> </body> </html> restart service apache /etc/init.d/apache2 restart

You might also like