0% found this document useful (0 votes)
58 views2 pages

Router + Proxy

The document provides steps to configure a Debian Lenny router. It includes: 1) Editing the /etc/network/interfaces file to configure the eth0 and eth1 interfaces with static IP addresses. 2) Enabling IP forwarding and NAT for traffic passing through the router. 3) Configuring Squid proxy/cache on the router to filter and cache internet traffic.

Uploaded by

fizkura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views2 pages

Router + Proxy

The document provides steps to configure a Debian Lenny router. It includes: 1) Editing the /etc/network/interfaces file to configure the eth0 and eth1 interfaces with static IP addresses. 2) Enabling IP forwarding and NAT for traffic passing through the router. 3) Configuring Squid proxy/cache on the router to filter and cache internet traffic.

Uploaded by

fizkura
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Konfigurasi Router Debian Lenny

1) nano /etc/network/interfaces
# The primary network interface
# allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.16.1.1
netmask 2!!.2!!.2!!.192
network 192.16.1.0
"roadcast 192.16.1.6#
gateway 192.16.1.62
# dns-$ options are implemented "y the resol%conf package& if installed
dns-nameser%ers 192.16.1.62
dns-search lu'manhakim.net
# The secondary network interface
auto eth1
iface eth1 inet static
address 172.16.1.62
netmask 2.2.2.1!2
network 172.16.1.0
broadcast 172.16.1.6"
2) /etc/init.d/networking restart
#) nano /etc/sysct#.conf
# (ncomment the ne)t line to ena"le packet forwarding for *+%,
net.i$%&.i$'forward(1
,) i$tab#es )t nat )* +,-.R,/.012 )o eth0 )3 4*-5/6R*D6
!) i$tab#es )t nat )n 7L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
AS!UERA"E all ## $%$%$%$&$ $%$%$%$&$

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
6) i$tab#es)sa%e 8 /etc/network/i$tab#es.conf
-) echo 9i$tab#es)restore : /etc/network/i$tab#es.conf9 8 ;/etc/network/if)u$.d/i$tab#es9
) nano /etc/network/if)u$.d/i$tab#es
#./"in/sh
ipta"les-restore 0 /etc/network/ipta"les.conf
9) chmod <= /etc/network/if)u$.d/i$tab#es
10) reboot
11) ifconfig > #ess
eth0 1ink encap23thernet 45addr 0020c2292#229-2,,
inet addr2192.16.1.1 6cast2192.16.1.6# 7ask22!!.2!!.2!!.192
inet6 addr2 fe02220c229ff2fe#229-,,/6, 8cope21ink
(+ 69:;<=;8T 9(>>*>? 7(1T*=;8T 7T(21!00 7etric21
9@ packets2! errors20 dropped20 o%erruns20 frame20
T@ packets22 errors20 dropped20 o%erruns20 carrier20
collisions20 t)'ueuelen21000
9@ "ytes2,00 A,00.0 6) T@ "ytes2#660 A#.! Bi6)
*nterrupt219 6ase address20)2000
eth1 1ink encap23thernet 45addr 0020c2292#229-2,e
inet addr21-2.16.1.62 6cast21-2.16.1.6# 7ask22!!.2!!.2!!.192
inet6 addr2 fe02220c229ff2fe#229-,e/6, 8cope21ink
(+ 69:;<=;8T 9(>>*>? 7(1T*=;8T 7T(21!00 7etric21
9@ packets21, errors20 dropped20 o%erruns20 frame20
T@ packets2100 errors20 dropped20 o%erruns20 carrier20
collisions20 t)'ueuelen21000
9@ "ytes21261- A12.# Bi6) T@ "ytes29610 A9.# Bi6)
*nterrupt216 6ase address20)200
lo 1ink encap21ocal 1oop"ack
inet addr212-.0.0.1 7ask22!!.0.0.0
inet6 addr2 221/12 8cope24ost
12) i$tab#es )t nat )n 7L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
AS!UERA"E all ## $%$%$%$&$ $%$%$%$&$
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACika terdapat kata 7as'uerade all "erarti konfigurasi ;nda 8udah 6erhasil)
1
Langkah)#angkah -etting +ro=y $ada Debian Lenny ?.0@
a$t)get insta## sAuid
/etc/init.d/sAuid sto$
nano /etc/sAuid/sAuid.conf
cari ActrlDw) webmaster Apagar dihilangkan pada cache'mgr kemudian diganti
adminB#uAmanhakim.net)
cari htt$'$ort "12C trans$arent Asetelah angka #12 ditam"ah tulisan trans$arent@
cari ac# D,116D. Adi"awahnya ditam"ah tulisan2)
ac# situs dstdomain ;/etc/sAuid/situsE
ac# kunci ur#'rege= 70 ;/etc/sAuid/kunciE
no'cache deny situs
no'cache deny kunci
htt$'access deny situs
htt$'access deny kunci
cari 01-6R. F,/R Adi"awahnya ditam"ah tulisan2)
ac# 3aringan src i$network/cidr
htt$'access a##ow 3aringan Akemudian mouse pointer di"awa ke "awah)
G htt$'access deny a## Apagarnya dihilangkan)
cari cache'mem C mb Apagarnya dihilangkan dan angka diisi E kapasitas 9;7)
cari cache'dir ufs Apagarnya dihilangkan dan angka 1000 dirubah men3adi 100000)
cari cache'swa$ Apagarnya dihilangkan "aik yang #ow mau$un height)
cari cache'#og Apagarnya dihilangkan)
cari cache'stores Apagarnya dihilangkan)
cari i$cache Apagarnya dihilangkan #-#nya "aik yang #owH height ) D.RL<I ))))F
nano /etc/sAuid/situs Akemudian diisi alamat we" misalnya sub.#uAmanhakim.net)
nano /etc/sAuid/kunci Akemudian diisi karakter& kata kunci misalnya se=H $orno)
sAuid 7J
/etc/init.d/sAuid start
-Auid 7k reconfigure
i$tab#es 7t nat 7* +R6R,/.012 7s i$network/cidr 7$ tc$ ))d$ort C0 73 R6D0R6D. ))to)$orts "12C
nano /etc/rc.#oca# Atam"ahkan tulisan diatas& se"elum e=it 0)
/etc/init.d/sAuid restart
2

You might also like