Re: [tanya-jawab] cara mengecek penggunaan bandwidth di server

2012-10-13 Terurut Topik Arief Yudhawarman
On Fri, Oct 12, 2012 at 07:26:42PM -0700, Indracyd wrote:

  Pakai layer7 di iptables.
  Caranya tangkap data di paket tcp port 80 yang mengandung GET 
  http://nama_web_hosting;
  Setelah itu mark packetnya ...
 
 mas arif bisa tolong bantu memberikan link2 referensi mengenai hal ini?

http://l7-filter.sourceforge.net/HOWTO

 saya menemukan satu artikel cukup menarik :
 http://www.linux.com/learn/tutorials/305767-bandwidth-monitoring-with-iptables
 

Mirip yang berbahasa indonesia:

Monitoring Trafik Network Menggunakan iptables dan MRTG
Monitoring Trafik Network Menggunakan iptables dan MRTG

 saya ingin merubah dari alamat IP ADDRESS menjadi domain, contoh
 
 # domain A Downloads
 iptables -A FORWARD -d 192.168.1.0/26 -j domain-a
 
 # Town A Uploads
 iptables -A FORWARD -s 192.168.1.0/26 -j domain-a
 
 
 destination  source saya ingin rubah ke domain, bagaimana mengganti 
 perintahnya ya?

man iptables

Tidak disebutkan domain melainkan hostname, namun ini adalah ide
yg jelek:

[!] -s, --source address[/mask][,...]
   Source specification. Address can be either a  network  name,  a
   hostname,  a  network  IP  address  (with  /mask), or a plain IP
   address. Hostnames will be resolved once only, before  the  rule
   is  submitted  to  the  kernel.  Please note that specifying any
   name to be resolved with a remote query such as DNS is a  really
   bad idea.  

Pakai ip atau subnet sudah cukup jelas.

Ngomong2, tujuan pakai domain itu untuk apa?

-- 
Arief Yudhawarman
http://awarmanf.wordpress.com

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke tanya-jawab-unsubscr...@linux.or.id
Arsip dan info milis selengkapnya di http://linux.or.id/milis



[tanya-jawab] Setting modem simbox Wavecomm Q2406B USB 8 port

2012-10-13 Terurut Topik Yo2 United
Dear All,

Mohon pencerahan nya donk. Saya mo setting modem Wavecomm Simbox Q2406B 8 port 
di fedora 16.
Saat saya coba mencari settingan modem tsb dgn wvdialconf ... tp modem tsb 
tidak di temukan/ tidak terdeteksi.
Padahal saat saya cek pakai dmesg :

[ 5034.837808] usb 2-1.3.1: Manufacturer: FTDI
[ 5034.838508] ftdi_sio 2-1.3.1:1.0: FTDI USB Serial Device converter detected
[ 5034.838590] usb 2-1.3.1: Detected FT4232H
[ 5034.838596] usb 2-1.3.1: Number of endpoints 2
[ 5034.838603] usb 2-1.3.1: Endpoint 1 MaxPacketSize 512
[ 5034.838610] usb 2-1.3.1: Endpoint 2 MaxPacketSize 512
[ 5034.838616] usb 2-1.3.1: Setting MaxPacketSize 512
[ 5034.839109] usb 2-1.3.1: FTDI USB Serial Device converter now attached to 
ttyUSB0
[ 5034.839466] ftdi_sio 2-1.3.1:1.1: FTDI USB Serial Device converter detected
[ 5034.839521] usb 2-1.3.1: Detected FT4232H
[ 5034.839525] usb 2-1.3.1: Number of endpoints 2
[ 5034.839529] usb 2-1.3.1: Endpoint 1 MaxPacketSize 512
[ 5034.839533] usb 2-1.3.1: Endpoint 2 MaxPacketSize 512
[ 5034.839537] usb 2-1.3.1: Setting MaxPacketSize 512
[ 5034.839894] usb 2-1.3.1: FTDI USB Serial Device converter now attached to 
ttyUSB1
[ 5034.840201] ftdi_sio 2-1.3.1:1.2: FTDI USB Serial Device converter detected
[ 5034.840255] usb 2-1.3.1: Detected FT4232H
[ 5034.840259] usb 2-1.3.1: Number of endpoints 2
[ 5034.840263] usb 2-1.3.1: Endpoint 1 MaxPacketSize 512
[ 5034.840267] usb 2-1.3.1: Endpoint 2 MaxPacketSize 512
[ 5034.840271] usb 2-1.3.1: Setting MaxPacketSize 512
[ 5034.840625] usb 2-1.3.1: FTDI USB Serial Device converter now attached to 
ttyUSB2
itu di kenali dr ttyUSB0 - ttyUSB7

lalu di cek juga menggunakan lsusb :
[root@merapi ~]# lsusb
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 046d:c52f Logitech, Inc. Wireless Mouse M305
Bus 002 Device 041: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 004: ID 174f:5216 Syntek 
Bus 002 Device 042: ID 0403:6011 Future Technology Devices International, Ltd 
FT4232H Quad HS USB-UART/FIFO IC
Bus 002 Device 043: ID 0403:6011 Future Technology Devices International, Ltd 
FT4232H Quad HS USB-UART/FIFO IC

[root@merapi ~]# ls -l /dev/ttyUSB*
crw-rw 1 root dialout 188, 0 Oct 13 14:51 /dev/ttyUSB0
crw-rw 1 root dialout 188, 1 Oct 13 14:51 /dev/ttyUSB1
crw-rw 1 root dialout 188, 2 Oct 13 14:51 /dev/ttyUSB2
crw-rw 1 root dialout 188, 3 Oct 13 14:51 /dev/ttyUSB3
crw-rw 1 root dialout 188, 4 Oct 13 14:51 /dev/ttyUSB4
crw-rw 1 root dialout 188, 5 Oct 13 14:51 /dev/ttyUSB5
crw-rw 1 root dialout 188, 6 Oct 13 14:51 /dev/ttyUSB6
crw-rw 1 root dialout 188, 7 Oct 13 14:51 /dev/ttyUSB7

Tapi saat di cari configurasi nya dgn wvdialconf :
[root@merapi ~]# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan*1: S0   S1   S2   S3   
ttyUSB0*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB0*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB1*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB1*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB2*1: ATQ0 V1 E1 -- [02]
ttyUSB2*1: failed with 2400 baud, next try: 9600 baud
ttyUSB2*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB2*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB3*1: ATQ0 V1 E1 -- 
ttyUSB3*1: failed with 2400 baud, next try: 9600 baud
ttyUSB3*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB3*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB4*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB4*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB4*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB5*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB5*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB5*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB6*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB6*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB6*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyUSB7*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB7*1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB7*1: ATQ0 V1 E1 -- and failed too at 115200, giving up.


Sorry, no modem was detected!  Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial


Kira2 solusi nya apa nya untuk mendapatkan konfigurasi modem tsb ? Atau mesti 
menggunakan cara atau aplikasi yang lain.
Terima kasih


Yo2


--
FAQ milis di