Ipfirewall (ipfw) adalah IP packet filter pada FreeBSD dan fasilitas untuk traffic accounting . IPFW sudah termasuk dalam system FreeBSD. Tetapi untuk mengaktifkan harus di load dahulu module kernel nya pada rc.conf dengan perintah firewall_enable=”YES” .
koompile kernel FreeBSD untuk IPFW
Pastikan IPFW support belum terkompile pada kernel:
#ipfw list
Jika anda mendapatkan error seperti berikut ini, maka anda harus meng kompile ulang kernel FreeBSD anda.
ipfw: getsockopt(IP_FW_GET): Protocol not available
Baca Sepuasnya Deh...!!
Like this:
Be the first to like this post.
Untuk konfigurasi static routing pada FreeBSD anda dapat melakukan dengan mengedit file /etc/rc.conf
# nano /etc/rc.conf
Set IP default router nya misalnya 10.234.1.1:
Buat static routing untuk beberapa network jika jaringan anda memang terdiri dari beberapa network misalnya
network1 192.168.1.0/24 dengan gateway 192.168.1.254
network2 192.168.2.0/24 dengan gateway 192.168.1.254
network3 10.234.2.0/24 dengan gateway 10.234.1.253
network4 10.234.3.0/24 dengan gateway 10.234.1.253
Read more...
Like this:
Be the first to like this post.
Tuliskan perintah berikut ini:
# env
contoh keluaran:
SSH_CLIENT=10.234.2.3 2041 22
USER=ndok
MAIL=/var/mail/ndok
HOME=/root
SSH_TTY=/dev/ttyp0
PAGER=more
ENV=/home/ndok/.shrc
Read more...
Like this:
Be the first to like this post.
Adakah perintah pada unix untuk undelete atau unerase suatu file/folder…. ?
Jawabnya seh gampang aja …. TIDAK ADA ….
mantab banget deh….
jadi solusi terbaik adalah selalu backup file2 configurasi atau file2 penting anda, jadi suatu saat jika hialng atau rusak selalu dapat di restore.
sedikit tips untuk menghindari kesalahan men delete/erase file
- Jangan pernah login sbg root jika memang dirasa tidak perlu
- Selalu gunakan regular user untuk semua normal task
- Ubah perintah Alias rm / mv / cp dengan rm -i / mv -i
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
- Buat file copy nya dahulu sebelum mengedit suatu file
- Gunakan RAID 6 hardware card sebagai tambahan proteksi untuk file server
- Buat file tersebut Unchangeable dengan menggunakan chflags - sehingga tidak dapat di dihapus walaupun user root.
Like this:
Be the first to like this post.
Symbolic link
Untuk membuat symbolic link, enter
# ln -s {/path/to/file-name} {link-name}
# ln -s /shared/sales/data/file.txt sales.data.txt
# vi sales.data.txt
# ls -l sales.data.txt
Untuk menghapus link, enter
# rm {link-name}
# rm sales.data.txt
# ls -l
# ls -l /shared/sales/data/file.txt
Read more...
Like this:
Be the first to like this post.
Recent Comments