Showing posts with label openbsd. Show all posts
Showing posts with label openbsd. Show all posts

Wednesday, November 04, 2009

openbsd -mpath (route base load balancing)

tutorial openbsd -mpath (route base load balancing, my fave method to loadbalance)

pf.conf
ext_if1=fxp0
ext_if1=fxp1
int_if=rl0
nat on $ext_if1 to any -> $ext_if
nat on $ext_if2 to any -> $ext_if

/etc/sysctl.conf
sysctl net.inet.ip.multipath=1

/etc/hostname.fxp0
inet 10.20.30.2 255.255.255.252 none
!route add -mpath default 10.20.30.1

/etc/hostname.fxp1
inet 10.20.30.6 255.255.255.252 none
!route add -mpath default 10.20.30.5

/etc/mygate
#kosong ae, tapi kalo mau di isi ya gak papa, terserah





Saturday, September 26, 2009

Forcing dhcp setting on the network using openbsd

You can force workstation to using dhcp configuration at their network setting by using standard dhcpd and pf. First you can set dhcpd.conf like normally. Then edit /etc/rc.conf.local at
dhcpd_flags=""

with
dhcpd_flags="-L leased_ips -A abandoned_ips"

the at pf.conf you can block or/and pass the table like ordinary ip table.
further info please see dhcpd manual

Wednesday, July 08, 2009

Banyak Rencana, Banyak Rencana

  1. Demo Mikrotik Hotspot + radius
  2. autoit script! for automatik!
  3. blue coat learn
  4. check peripheral condition
  5. finish openbsd hotspot
  6. openbsd mpath auto adjust script/daemon




Friday, April 03, 2009

compile openbsd menjadi current

kalo mau menjadikan current, jangan lupa baca faq nya untuk current. Ada beberapa notice, terutama di gcc nya harap di compile dulu, ben lancar compile semua...

Monday, March 30, 2009

vlan at openbsd

Oalah, apes tenan, ngoyo2 buat setting untuk pppoe over vlan di openbsd, ternyata openbsd 4.3 masih belum full support untuk vlan. Kok ya apesnya pas NIC ku pake re/rl, tambah jembuk wis, soalnya:
...
Fix VLAN tag info for re(4) devices.
...
taken from http://openbsd.org/plus44.html

lhaaa kan, jembuk kabeh perkoro vlan. Saran saya upgrade openbsd anda ke versi current yang paling baru. Persetan dengan security, mau settingnya jalan apa enggak?, kalo jembuk gini terus mau gimana?,
Apa ada saran pake os liane?, pake linux mungkin, apa cisco (tuku cisco nggawe duit gambar bagong?)

Monday, December 08, 2008

listup.sh untuk cek tun interface speedy

  1. # more /etc/listup.sh
  2. a=0
  3. b=4
  4. n=2
  5. until [[ $a -eq $b ]];do
  6. # a=`ifconfig tun | cut -f 1 -d ":" | grep -i tun | wc -l`
  7. a=`ifconfig tun | grep -i 125 | wc -l`
  8. echo "Jumlah tun interface:" $a
  9. if [[ $a -eq $b ]];then
  10. echo "Jumlah tun tepat!"
  11. echo "Starting pf rule for loadbalancing..."
  12. /sbin/pfctl -f /etc/pf-loadbal1.conf
  13. /usr/bin/logger -t pf-LOADBALANCE "Speedy up!"
  14. else
  15. echo "Jumlah interface tun seharusnya:$b"
  16. echo "Koneksi speedy belum up semua, menunggu $n detik"
  17. sleep $n
  18. /usr/bin/logger -t pf-LOADBALANCE "Speedy down!"
  19. fi
  20. done
  21. #