Install Shorewall di ubuntu – pesan error Shorewall has no compiler

Written by admin on March 29th, 2010. Posted in ubuntu

Pada Dasarnya Istalasi apapun di ubuntu itu gampang sekali, meski ubuntu server memiliki “kelebihan dan kekurangan” . cara instalasi shorewall di ubuntu cukup dengan mengetikkan :

# apt-get install shorewall

Lalu process instalasi pun berjalan.. ( catatan : server sudah terkoneksi ke internet )

Lalu saya mencoba menjalankan program shorewall tersebut.

#/etc/init.d/shorewall start

tapi muncul pesan berikut :

Starting “Shorewall firewall”: not done (check /var/log/shorewall-init.log).

Hayahh.. apa ini.. saya pun mencoba melakukan perintah yang di suruh, yaitu : # check /var/log/shorewall-init.log

Tadaa… error lagi, pesan erronya :

No command ‘check’ found, did you mean: Command ‘icheck’ from package ‘icheck’ (universe) Command ‘chuck’ from package ‘chuck’ (universe) Command ‘acheck’ from package ‘acheck’ (universe) Command ‘vcheck’ from package ‘vcheck’ (universe) Command ‘mcheck’ from package ‘mtools’ (main) Command ‘fcheck’ from package ‘fcheck’ (universe) check: command not found

hahahah.. pusing deh.. ternyata arti dari perintah tersebut bukan check /var/log/shorewall-init.log, tapi coba lihat file /var/log/shorewall-init.log , lalu saya lihat lah isi dari file log tersebut. pesan errornya :

11:41:39 Compiling… No shorewall compiler installed 11:44:18 Compiling… No shorewall compiler installed 11:44:23 Compiling… No shorewall compiler installed

Walahh…. apa sih…. apa sih… nah akhirnya gw coba buka tuh file #nano /etc/shorewall/shorewall.conf disana di bilang (setting this to ‘perl’ requires installation of Shorewall-perl) #####################################################

SHOREWALL_COMPILER=

nah.. artinya ada shorewall compiler yang belum saya install, yaitu shorewall-perl hehehe… pusing.. akhirnya gw install lagi deh Shorewall-perl nya. dengan perintah #apt-get install shorewall-perl

tadaaaa.. berhasil deh. nginstall shorewall, tapi setelah saya cek di /etc/shorewall/ kok isinya ngak ada yah …

accounting  initdone    modules    proxyarp        started    tos actions     interfaces  nat        restored        stop       tunnel blacklist   ipsec       netmap     route_rules     stopped    tunnels continue    ipsecvpn    notrack    routestopped    tcclasses  zones ecn         maclist     params     rules           tcdevices hosts       Makefile    policy      tcfilters init        masq        providers  start           tcrules

File File ini… dimana yah ???, nah jawabannya ada di : # /usr/share/doc/shorewall-common/default-config coba deh copykan semua file tersebut ke /etc/shorewall caranya #cd /usr/share/doc/shorewall-common/default-config; cp * /etc/shorewall

setelah itu edit deh file file berikut :  interface , zones, rules, policy.

Share

Setting Ubuntu Server ( FAST SHUTDOWN dengan Tombol On/OFF)

Written by admin on March 23rd, 2010. Posted in linux, ubuntu

Setelah mencoba menginstall UBUNTU Server 9.X,  untuk di gunakan sebagai server NAT/FIREWALL/dan LTSP, ternyata saya mendapati bahwa ubuntu ini mempunyai kendala, yaitu, apabila kita hendak mematikan server tersebut hanya dengan menekan tombol on/off, makan kita harus menekannya lama, baru mati, tetapi saya ingin fast shutdown: cukup dengan menekan 1 kali tombol power on/off, ubuntu akan langsung process shutdown. nah, setelah saya surfing, saya dapat caranya, yaitu cukup dengan menginstall ; acpid

caranya :  root# sudo apt-get install acpid

Selesai deh…

pastikan bahwa di : sudo gedit /etc/acpi/events/powerbtn

Isinya adalah :

# /etc/acpi/events/powerbtn
# This is called when the user presses the power button and calls
# /etc/acpi/powerbtn.sh for further processing.

# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you’ve
# specified.

# We need to react on “button power.*” and “button/power.*” because
# of kernel changes.

event=button[ /]power
action=/etc/acpi/powerbtn.sh

Share