Saturday 17 August 2013

Redirect dns ke dns Unbound

Step by Step nya : 
gunakan ip localhost sebagai dnsname di resolvenya,
Code:
cat > /etc/resolv.conf << "EOF"
# Begin /etc/resolv.conf
domain ns.hade.war.net
nameserver 127.0.0.1
# End /etc/resolv.conf
EOF
di interface buang aja dnsnameip nya. (dns-nameservers dihilangkan?)
/etc/network/interfaces
Code:
auto eth0
iface eth0 inet static
    address 192.168.3.2
    netmask 255.255.255.0
    network 192.168.3.0
    broadcast 192.168.3.255
    gateway 192.168.3.1
    dns-search ns.hade.war.net
pasang tu ip localhost di dns squid.conf. 
Code:
dns_nameservers 127.0.0.1 192.168.3.2 203.130.208.18 203.130.193.74 222.124.204.34 203.130.196.6 208.67.222.222 208.67.220.220 180.131.144.144 180.131.145.145
pasang tu ip proxy ke ip dns mikrotik.
Code:
/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB \
    max-udp-packet-size=4096 servers="192.168.3.2,203.130.208.18,203.130.193.74,222.124.204.\
    34,203.130.196.6,208.67.222.222,208.67.220.220,180.131.144.144,180.131.145.1\
    45"
/ip dns static
add address=192.168.3.2 disabled=no name=ns.hade.war.net ttl=1d
di client jadiin ip proxy sama ip gateway untuk dns 

dns1 192.168.3.2
dns2 192.168.2.30

Pada Mikrotik IP—Mangle, disabled script DNS

paksa smua klient pake dns unbound
walaupun klient pake dns laen.....
Code:
ip firewall nat chain=dstnat action=dst-nat to-addresses=IP_PROXY to-ports=53 protocol=udp src-address=!IP_PROXY dst-port=53

Monitoring Proxy Squid dan lusca dengan Squidstat di ubuntu server



LANGKAH -LANGKAH MEMBUAT SQUIDSTATS

1. apt-get install librrds-perl libsnmp-session-perl snmpd rrdtool snmp apache2 -y

2. perl -MCPAN -e 'install Config::IniFiles'

3. wget http://jaringanwarnet.com/downloads/squidstats-r54.tar

4. tar -xvf squidstats-r54.tar

5. cd squidstats-r54

5. cp mib.txt /etc/squid/

6. cp snmpd.conf /etc/snmp/

8. untuk squid.conf tambahkan berikut ini :

snmp_port 3401

acl snmppublic snmp_community public

snmp_access allow snmppublic all

9. make && make install

10. snmpwalk -v 1 -c public localhost

11. squidstats.pl createdb

12. squidstats.pl gather

13. crontab -e (kemudian copy rule dibawah ini)

*/5 * * * * /usr/local/bin/squidstats.pl gather >/dev/null

14. cp squidstats.conf /etc/apache2/conf.d

15. reboot

16. cek hasilnya ke http://isi dg ipproxy/squidstats/graph-summary.cgi
 

Site Info

free counters

SyakirahNET Copyright © 2009 BeMagazine Blogger Template is Designed by Blogger Template
In Collaboration with fifa