Saya menggunakan openBSD 5.2 amd64, dengan 10 GB root, 1 GB swap
Setelah itu atur IP address di masing - masing interface
Lalu isi DNS /etc/resolv.conf seperti di bawah ini :
Setelah itu edit file yang ada di /etc/rc.conf.local seperti di bawah ini :
Lalu edit file /etc/bgpd.conf seperti di bawah ini :
# openBSD: bgpd.conf,v 1.12 2011/01/19 07:36:40 claudio Exp
$
# sample bgpd configuration file
# see bgpd.conf(5)
#macros
inp_peer="114.4.*.*" # gw INP
inix_peer="124.195.*.*" # gw inix
self_peer="114.4.*.*" # Public IP INP
self_iix="124.195.*.*" # Public IIX
self_as="131728" #ASN
isat_as="4761" #INP AS number
iix_as="17922" # IIX AS number ( AS number di peroleh dari provider, dan setiap provider berbeda2)
# global configuration
AS $self_as
router-id $self_peer
fib-update yes
network 103.12.114.0/24 # network Public untuk client
# neighbors and peers
neighbor $inp_peer {
remote-as $isat_as
announce all
descr inp
}
neighbor $inix_peer {
remote-as $iix_as
announce all
descr inix
}
# filter out prefixes longer than 24 or shorter than 8 bits
#deny from any
allow from any inet prefixlen 8 - 24
# accept a default route (since the previous rule blocks
this)
#allow from any prefix 0.0.0.0/0
# filter bogus networks
deny from any prefix 10.0.0.0/8 prefixlen >= 8
deny from any prefix 172.16.0.0/12 prefixlen >= 12
deny from any prefix 192.168.0.0/16 prefixlen >= 16
deny from any prefix 169.254.0.0/16 prefixlen >= 16
deny from any prefix 192.0.2.0/24 prefixlen >= 24
deny from any prefix 224.0.0.0/4 prefixlen >= 4
deny from any prefix 240.0.0.0/4 prefixlen >= 4
deny to any
deny from $inp_peer
allow to $inix_peer prefix 103.12.*.*/* #network Public client
allow to $inp_peer prefix 103.12.*.*/* #network Public client
setelah itu ubah akses file yang terdapat di /var/www/cgi-bin/bgplg dan /var/www/bin/bgpctl
# chmod
0555 /var/www/cgi-bin/bgplg
# chmod
0555 /var/www/bin/bgpctl
dan masukan gateway INP di dalam file /etc/mygate seperti gambar di bawah :
dan start webserver dan openbgpd :
# /etc/rc.d/httpd
start
# /etc/rc.d/bgpd
start
dan yang terakhir buka tanda # yang ada di /etc/sysctl.conf seperti di bawah ini :
Jika berhasil maka akan muncul tampilan seperti berikut :
0 comments:
Post a Comment