Hello Rekan2 Linuxer, Saya telah mencopy script utk menyimpan Rule iptables seperti di bawah ini :
#!/bin/sh # #This is a ubuntu adapted iptables script from gentoo #(http://www.gentoo.org) which was originally distributed # under the terms of the GNU General Public License v2 #and was Copyrighted 1999-2004 by the Gentoo Foundation # #This adapted version was intended for and ad-hoc personal #situation and as such no warranty is provided. IPTABLES_SAVE=/etc/default/iptables-rules SAVE_RESTORE_OPTIONS=-c SAVE_ON_STOP=yes checkrules() { if [ ! -f ${IPTABLES_SAVE} ] then echo Not starting iptables. First create some rules then run echo \/etc/init.d/iptables save\ return 1 fi } save() { echo Saving iptables state /sbin/iptables-save ${SAVE_RESTORE_OPTIONS} > ${IPTABLES_SAVE} } start(){ checkrules || return 1 echo Loading iptables state and starting firewall echo -n Restoring iptables ruleset start-stop-daemon start quiet exec /sbin/iptables-restore ${SAVE_RESTORE_OPTIONS} &2 exit 1 ;; esac exit 0 Tapi setelah saya jalankan ada error di baris 35 /etc/init.d/iptables :35: Syntax error: ";;" unexpected (expecting "}") saya coba ganti baris 35 ;; dengan syntax yg lain tapi error malah ke baris bawahnya = esac. saya dah coba googling tapi blm dpt solusi. Mungkin rekan2 ada yg punya pengalaman serupa??Mohon share :) -- Best regards, rasyid mailto:[EMAIL PROTECTED] -- FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab Unsubscribe: kirim email ke [EMAIL PROTECTED] Arsip dan info milis selengkapnya di http://linux.or.id/milis
