Kita manfaatkan fungsi mime header check, berikut langkah2nya

Aktifkan fungsi mime check, dengan menambah opsi berikut ke /etc/postfix/main.cf
# nano -w /etc/postfix/main.cf
Tambahkan baris berikut :

# Blokir extensi file
mime_header_checks = regexp:/etc/postfix/mime_header_check

Buat daftar extensi file attachment yg mau diblokir

# nano -w /etc/postfix/mime_header_check

Tambahkan baris berikut :

/name=[^>]*\.(bat|com|exe|dll|vbs|inf)/ REJECT

 Restart Postfix

# service postfix restart

Coba sekarang kirim email dengan lampiran file .bat

Terus perhatikan mail.log, akan muncul notif seperti berikut :

Oct 18 17:17:20 mail-srv postfix/cleanup[23985]: 96CED70B79: reject: header Content-Type: text/plain;? name=coba.bat from localhost[127.0.0.1]; from=<noc@XXXX.co.id> to=<tribudi@YYYY.co.id> proto=ESMTP helo=<mail.XXXX.co.id>: 5.7.1 message content rejected

File lampiran sudah berhasil diblokir !

Advertisements
  • Blacklist manual dg memasukan alamat email pengirim ke daftar blacklist
    1. Buat file daftar blacklist
      # nano -w /etc/postfix/sender_access
      isi :
      gdh@mts.rs REJECT

    2. Create postmap database dengan perintah postmap
      # postmap hash:/etc/postfix/sender_access

    3. Tambahkan code berikut ke main.cf
      smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access
    4. Simpan, kemudian restart service postfix
      # service postfix restart

 

Limit Outoing Call Duration – Elastix

Posted: December 13, 2016 in System, VOIP

PBX > PBX Configuration > General Settings

outbound-dial-command

Asterisk Outbound Dial command options

Semua outgoing akan diberlakukan S(x)

S(x): Hang up the call seconds after the called party has answered the call.

Analog Trunk Elastix with TDM400P Card

Posted: December 12, 2016 in System, VOIP

INSTALL CARD

  1. Beli ( sesuai kebutuhan 2fxo [module warna merah] )
  2. Install hardware / pasang
  3. Elastix > System > Hardware Detector

hadware-detector

Port Status channel 1 & 2 sudah terpasang kabel dari Telk*m, berfungsi normal apabila module terdeteksi sebagai fxo dan warnanya hijau.

 

ADD TRUNK

PBX > PBX Configuration > Trunks > Add Zap Trunk (DAHDI compatibility mode)

zap-trunk

Trunk Name = As You Like
Outbound Caller ID = Nomer telp dari Telk*m
Zap Identifier= channel pada card dimana line tersebut disambungkan

OUTBOUND ROUTE

PBX > PBX Configuration > Outbound Routes

oubound-route

Route Name = As you liked
Dial Pattern = Disini sy hanya membuat aturan hanya extensi 104, 3, 33 yg boleh outgoing menggunakan trunk TR-TLKOM19
Trunk Sequence = TR-TLKOM19

FINISH

 

 

Enable Jitter Buffer in Elastix

Posted: December 12, 2016 in System, VOIP
  • jbenable = yes|no : Enables the use of a jitterbuffer on the receiving side of a SIP channel. (Added in Version 1.4)
  • jbforce = yes|no : Forces the use of a jitterbuffer on the receive side of a SIP channel. Defaults to “no”. (Added in Version 1.4)
  • jbmaxsize = Number : Max length of the jitterbuffer in milliseconds. (Added in Version 1.4)

# nano -w /etc/asterisk/sip_general_custom.conf

jbenable=yes
jbforce=yes
jbmaxsize=1000

 

# rasterisk -x reload
# amportal admin reload

Hello the Net

Posted: February 16, 2016 in Coretan Dinding

Hello the Net, im a live

#!/bin/sh

################################################# #
# Parsing table routing IIX #
# #
# Tri Budi – tribudi@hijaunet.com #
# $ readIIX.sh, v.1.1 2010/05/21 14:38 $ #
##################################################

NICE=/etc/nice.rsc

cidr=`find $NICE -exec grep ‘[0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*’ {} \;| sed ‘s/^[add list=nice address=”]*//’|perl -pe ‘s/.$//’`

for i in $cidr
do
echo “$cidr” >> /etc/iix
done

Download here