Skip to content

huawei ağ ekipmanlarında arayüzlerin lan/wan ayarı

huawei ağ ekipmanlarında destekleyen arayüzlerde wan ve lan modu ayarı yapılabilmektedir.

[fcicek-route]display  device  pic-status
Pic-status information in Chassis 1:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SLOT PIC Status     Type                   Port_count Init_result   Logic_down 
1    0   Registered LAN_WAN_2x10GF_B_CARD  2          SUCCESS       SUCCESS    
1    1   Registered ETH_24xGF_B_CARD       24         SUCCESS       SUCCESS    
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

örnekteki yönlendirici de 1 tane lpuf kartı ve 2 tane pic kartı olduğu görülmektedir. 1. pic 2 tane 10G arayüze sahip bir kartıdır.. bu arayüzler adında anlaşılabileceği üzere lan/wan modunda kullanılabilir.

huaweide lan modu öntanımlı konfigüasyon olarak gelmektedir.

örnek olması için şimdi 1/0/0 arayüzünün modunu değiştirelim.

[fcicek-route-GigabitEthernet1/0/0]display this
interface GigabitEthernet1/0/0
undo shutdown
eth-trunk 1
undo dcn

[fcicek-route-GigabitEthernet1/0/0]set transfer-mode ?
  lan  LAN interface
  wan  WAN interface
          

[fcicek-route-GigabitEthernet1/0/0]set transfer-mode wan
Error: Has configurations or the undo-shutdown state port, please clear them first.

yukarıda başarısız mod değişikliği teşebbüsünden görüleceği üzere arayüz altında konfigürasyon olmaması ve portun kapalı olması gerekmektedir. arayüz altındaki konfigürasyonu kaldırıp wan moduna alalım. mod değişikliği için “set transfer-mode ” komut dizilimini kullanıyoruz.

[fcicek-route-GigabitEthernet1/0/0]set transfer-mode wan
Info: Switch wan mode is succeed.
                        
[fcicek-route-GigabitEthernet1/0/0]display this                         
interface GigabitEthernet1/0/0
set transfer-mode wan
shutdown
undo dcn

huawei ağ ekipmanlarında cpu-depend ile paket analizi – 2

huawei ağ ekipmanlarında cpu-depend ile paket analizi yazısında temel olarak cpu-depend komutuna, kullanım amacına değinilmişti. bu yazıda ise daha özelleştirilmiş fonksiyonlarına göz atalım…

eğer bir slottakii servisleri ait bir incele yapmak istersek

[fc-route]  display cpu-defend application-apperceive statistics slot 3
Slot      Attack-Type               Total-Packets Passed-Packets Dropped-Packets
--------------------------------------------------------------------------------
3         Application-Apperceive         12488631       12488631              0
--------------------------------------------------------------------------------
          FTPSERVER                             0              0              0
          SSHSERVER                             0              0              0
          SNMP                                  0              0              0
          TELNETSERVER                          0              0              0
          TFTPCLIENT                            0              0              0
          BGP                                   0              0              0
          LDP                                   0              0              0
          RSVP                                  0              0              0
          OSPFV2                                0              0              0
          RIP                                   0              0              0
          ISIS                            2455839        2455839              0
          ICMP                                482            482              0
          MSDP                                  0              0              0
          PIM                                   0              0              0
          DHCP                            1914136        1914136              0
          LACP                            2306476        2306476              0
          RADIUS                                0              0              0
          HWTACACS                              0              0              0
          LSPPING                               0              0              0
          IGMP                            5811698        5811698              0
          RRPP                                  0              0              0
          VRRP                                  0              0              0
          BFD                                   0              0              0
          MPLSOAM                               0              0              0
          802_1ag                               0              0              0
          DNSCLIENT                             0              0              0
          WEB_AUTH_SERVER                       0              0              0
          UNICAST_VRRP                          0              0              0
          IPFPM                                 0              0              0
--------------------------------------------------------------------------------

şüphelendiğimiz protokolleri/servisleri daha yakından incelemek istersek, arp için

[fc-route]display cpu-defend car protocol arp statistics             
 Slot               : 3
 Application switch : Close
 Default Action     : Drop
--------------------------------------------
 IPV4 ARP packet 
 Protocol switch: N/A
 Packet information:
  Passed packet(s)  : 10766537             
  Dropped packet(s) : 0                    
 Configuration information:
  Configured CIR : 448     kbps       Actual CIR in NP : 448     kbps
  Configured CBS : 60000   bytes      Actual CBS in NP : 60000   bytes
  Priority : The protocol has several CAR which have different priority.You can query the information by CAR
  Min-packet-length : NA
  CIR Configuration Type: Default
 History information: 
  Last drop: 
   Start time: -
   End   time: -
   Last drop rate(pps): -
   Total dropped packet(s): -
  Peak rate: 
   Time: 2018-11-13 17:04:28              
   Peak rate(pps): 1                   

slot 1 deki bgp protokü için ise

[fc-route] display cpu-defend car protocol bgp statistics slot 1
Slot                       :1
Application switch         :Open
Default Action             :Min-to-cp
-----------------------------------------------
BGP Packet
Protocol switch             :Close
Packet information         :
 Passed packet(s)         :0
 Dropped packet(s)        :0
  Peak drop rate    : 1075395    pps     2014-07-08 19:49:47
  Last drop rate    : 1008235    pps     2014-07-08 19:51:47


Configuration information  :
 Configured CIR: 512 kbps       Actual CIR in NP: 100 kbps
 Configured CBS: 9000000 bytes  Actual CBS in NP: 9000000 bytes
 Priority: BE
 Min-packet-length: 128 bytes

kullanılabilir.

huawei ağ ekipmanlarında cpu-depend ile paket analizi

güvenlik ve hizmet kalitesi açısından ağ ekipmanlarında sistem kaynaklarını ve trafikleri incelemek her zaman önemli olmuştur.

huawei ağ ekipmanlarında bir arayüzdeki, protokollerdeki durumu paket bazlı incelemek istersek cpu-depend istatistik komut işimize yarayacaktır.

komut dizilimi aşağıdaki şekildedir. bu durum ağ ekipmanı ve üzerindeki işletim sistemi versiyonuna göre değişiklik gösterebilir.

display cpu-defend { all | application-apperceive | tcpip-defend | total-packet | urpf } statistics [ slot slot-id ]

display cpu-defend ma-defend statistics [ slot slot-id ]

display cpu-defend car { blacklist | whitelist | whitelist-v6 | index index | user-defined-flow flow-id | fragment | tcpsyn } statistics [ slot slot-id ]

display cpu-defend car protocol { 802.1ag | arp | bfd | bgp | bpdu | arp-miss | ipv4-fib-miss | ipv4-multicast-fib-miss | ipv4-ttl-expire | ipv6-fib-miss | ipv6-nd-miss | ipv6-ttl-expire | lldp | mpls-arp-miss | mpls-ttl-expire | bgpv6 | ftpv6-client | ftpv6-server | icmpv6 | ospfv3 | pimv6 | sshv6-server | telnetv6-client | telnetv6-server | dhcp | dns-client | ftp-client | ftp-server | hwtacacs | icmp | igmp | isis | lacp | ldp | lspping | msdp | ntp | ospf | pim | radius | rip | rsvp | snmp | ssh-client | ssh-server | telnet-client | telnet-server | tftp | vrrp | syslog | tftpv6-client | dnsv6 | netstream | snmpv6 | eapol | rs | ra | ns | na | mld | dhcpv6 } statistics [ slot slot-id ]

cpu-depend ile genel olarak arayüz, donanım ve protokol bazlı özelleştirebilir olarak paket analizi yapılmasını sağlar.

çıktılarda temel olarak anormal seviyedeki paket durumu irdelenmelidir. örnek olarak aktif olmayan bir servis için doğru şekilde yapılandırma yoksa bu protokol/servis için oluşturulan paketler drop edilecektir. bu durum ise protokol veya servis için bir saldırı göstergesi olabilir. paketlerin drop edilmesi işlerin kısmen yolunda olduğunu gösterebilir ancak bu drop işlemi içinde sistem kaynağı tüketilmektedir. doğru şekilde yapılandırılma yoksa bu şekilde bir saldırı ile aşırı sistem tüketimi vb farklı sorunlar ortaya çıkacaktır. bu hizmet kalitesini etkileyebilecek ve farklı güvenlik problemlerine neden olabilecektir.

cpu-depend in en temel çıktısı aşagıdaki gibi olacaktır.

[fc-route]display cpu-defend all statistics 
Slot/Intf Attack-Type               Total-Packets Passed-Packets Dropped-Packets
--------------------------------------------------------------------------------
1         Application-Apperceive         13166418       13166418              0
--------------------------------------------------------------------------------
          FTPSERVER                             0              0              0
          SSHSERVER                             0              0              0
          SNMP                                  1              1              0
          TELNETSERVER                          0              0              0
          TFTPCLIENT                            0              0              0
          BGP                                   0              0              0
          LDP                                   0              0              0
          RSVP                                  0              0              0
          OSPFV2                                0              0              0
          RIP                                 662            662              0
          ISIS                            7880595        7880595              0
          ICMP                             109827         109827              0
          MSDP                                102            102              0
          PIM                                   0              0              0
          DHCP                            4027692        4027692              0
          LACP                                  0              0              0
          RADIUS                              113            113              0
          HWTACACS                             10             10              0
          LSPPING                               2              2              0
          IGMP                            1145546        1145546              0
          RRPP                                  0              0              0
          VRRP                                  0              0              0
          BFD                                   0              0              0
          MPLSOAM                               0              0              0
          802_1ag                               0              0              0
          DNSCLIENT                          1783           1783              0
          WEB_AUTH_SERVER                      85             85              0
          UNICAST_VRRP                          0              0              0
          IPFPM                                 0              0              0
--------------------------------------------------------------------------------
1         MA-Defend                             0              0              0
--------------------------------------------------------------------------------
          FTP                                   0              0              0
          SSH                                   0              0              0
          SNMP                                  0              0              0
          TELNET                                0              0              0
          TFTP                                  0              0              0
          BGP                                   0              0              0
          LDP                                   0              0              0
          RSVP                                  0              0              0
          OSPF                                  0              0              0
          RIP                                   0              0              0
--------------------------------------------------------------------------------
1         URPF                                  0              0              0
--------------------------------------------------------------------------------
1         Tcpip-defend                       3521              2           3519
--------------------------------------------------------------------------------
          Abnormal-packet                       0              0              0
          Fragment-packet                       2              2              0
          Tcpsyn-packet                         0              0              0
          Udp-packet                         3519              0           3519
--------------------------------------------------------------------------------
2         Application-Apperceive          4881512        4881512              0
--------------------------------------------------------------------------------
          FTPSERVER                             0              0              0
          SSHSERVER                             0              0              0
          SNMP                                  0              0              0
          TELNETSERVER                          0              0              0
          TFTPCLIENT                            0              0              0
          BGP                                   0              0              0
          LDP                                   0              0              0
          RSVP                                  0              0              0
          OSPFV2                                0              0              0
          RIP                                   0              0              0
          ISIS                            2453572        2453572              0
          ICMP                                 29             29              0
          MSDP                                  0              0              0
          PIM                                   0              0              0
          DHCP                               3174           3174              0
          LACP                             578060         578060              0
          RADIUS                                0              0              0
          HWTACACS                              1              1              0
          LSPPING                               0              0              0
          IGMP                            1846676        1846676              0
          RRPP                                  0              0              0
          VRRP                                  0              0              0
          BFD                                   0              0              0
          MPLSOAM                               0              0              0
          802_1ag                               0              0              0
          DNSCLIENT                             0              0              0
          WEB_AUTH_SERVER                       0              0              0
          UNICAST_VRRP                          0              0              0
          IPFPM                                 0              0              0
--------------------------------------------------------------------------------
2         MA-Defend                             0              0              0
--------------------------------------------------------------------------------
          FTP                                   0              0              0
          SSH                                   0              0              0
          SNMP                                  0              0              0
          TELNET                                0              0              0
          TFTP                                  0              0              0
          BGP                                   0              0              0
          LDP                                   0              0              0
          RSVP                                  0              0              0
          OSPF                                  0              0              0
          RIP                                   0              0              0
--------------------------------------------------------------------------------
2         URPF                                  0              0              0
--------------------------------------------------------------------------------
2         Tcpip-defend                          7              0              7
--------------------------------------------------------------------------------
          Abnormal-packet                       0              0              0
          Fragment-packet                       0              0              0
          Tcpsyn-packet                         0              0              0
          Udp-packet                            7              0              7
--------------------------------------------------------------------------------

National Institute of Standards and Technology (NIST) Computer Security Resource Center (CSRC) Book

Series Number Title Status Release Date
Book Section Final 6/27/2018
Book Final 10/01/2017
Book Section Final 9/09/2016
Book Section Final 9/09/2016
Book Section Final 7/29/2015
Encyclopedia Entry Final 7/03/2015
Encyclopedia Entry Final 7/03/2015
Book Section Final 10/03/2014
Book Final 6/20/2013
Book
Download: None available
Final 7/24/2012
Encyclopedia Entry Final 6/25/2012
Encyclopedia Entry Final 1/01/2011
Book Section Final 10/22/2010
Book Section Final 2/01/2010
Book Section Final 8/12/2009
Book Section Final 6/15/2009
Encyclopedia Entry Final 2/13/2009
Book Section Final 12/19/2008
Book Section Final 12/19/2008
Encyclopedia Entry Final 10/07/2008
Book Final 1/31/2007
Book Final 1/01/2003
Book Section
Download: None available
Final 1/01/1991

National Institute of Standards and Technology (NIST) Computer Security Resource Center (CSRC) White Paper

Series Number Title Status Release Date
White Paper Draft 10/17/2018
White Paper Final 9/10/2018
White Paper Final 9/07/2018
White Paper Draft 5/31/2018
White Paper Final 5/30/2018
White Paper Final 5/30/2018
White Paper Final 4/16/2018
White Paper Final 2/07/2018
White Paper Final 2/07/2018
White Paper Final 1/26/2018
White Paper Final 1/23/2018
White Paper Draft 1/16/2018
White Paper Final 12/14/2017
White Paper Final 11/09/2017
White Paper Final 10/23/2017
White Paper Draft 10/12/2017
White Paper Final 9/13/2017
White Paper Final 7/06/2017
White Paper
Download: Paper
Final 6/27/2017
White Paper
Download: Paper
Final 5/25/2017
White Paper Final 4/02/2017
White Paper Final 3/09/2017
White Paper Final 11/28/2016
White Paper Final 9/20/2016
White Paper Draft 9/13/2016
White Paper Draft 6/06/2016
White Paper
Download: Paper; GitHub site
Final 5/12/2016
White Paper Final 5/09/2016
White Paper Draft 5/09/2016
White Paper Final 4/21/2016
White Paper
Download: Paper
Final 10/27/2015
White Paper
Download: Paper
Final 9/21/2015
White Paper
Download: Report
Final 6/10/2015
White Paper
Download: Paper
Final 4/02/2015
White Paper
Download: None available
Final 3/10/2015
White Paper Final 6/03/2014
White Paper
Download: None available
Final 2/26/2014
White Paper Final 2/19/2014
White Paper Final 2/12/2014
White Paper
Download: None available
Final 7/10/2013
White Paper
Download: None available
Final 1/10/2013
White Paper
Download: Report
Final 12/01/2012
White Paper
Download: Paper
Final 11/19/2012
White Paper Final 8/23/2012
White Paper
Download: None available
Final 4/16/2012
White Paper
Download: Report
Final 12/01/2011
White Paper
Download: Paper
Final 6/17/2011
White Paper
Download: Report
Final 4/01/2011
White Paper
Download: Final Report
Final 12/19/2010
White Paper
Download: Report
Final 3/01/2002
White Paper
Download: Report
Final 10/01/2001
White Paper
Download: Report
Final 10/01/2001
White Paper
Download: Report
Final 12/01/2000
White Paper
Download: Report
Final 11/28/2000
White Paper
Download: Report
Final 2/28/2000
White Paper
Download: None available
Final 12/26/1985

alışveriş sitelerinde indirim yalanları

özel indirimler sunduğunu ileri süren siteler artık ömürlerini doldurdu. hala buralardan alışveriş yapanlar varmıdır ? Türkiye’nin ön popüler sitelerinden biri olan trendyolda arzuma ait bir ürün iki farklı kategori’de listeleniyor. bu ürün listelerde farklı fiyatlara satılıyor ve satış fiyatında 32 TL lik fark mevcut. bu nasıl bir saçmalık anlam vermeye uğraşmayıp   %21 link indirim olduğuna inarak sipariş verirseniz çok daha indirim oranlarını kaçırabilirsiniz.

aynı ürün hepsiburadada %47 indirimle trendyoldan 13TL daha ucuza satılıyor. beyin zorlayan bu indirim yalanları farklı sitelerde de devam ediyor.

sonuç olarak internetten bir ürün alacaksan en az 10 yere bakmakta fayda var.

linuxde klasör altındaki en büyük boyutlu dosyaları bulmak

find . -printf ‘%s %p\n’| sort -nr | head -10

ile en büyük 10 dosya aranmış olur.

root@cicekpc:/boot# find . -printf '%s %p\n'| sort -nr | head -10
59562456 ./initrd.img-4.13.0-46-generic
59549708 ./initrd.img-4.13.0-45-generic
43531219 ./initrd.img-4.10.0-32-generic
7870224 ./vmlinuz-4.13.0-46-generic
7870224 ./vmlinuz-4.13.0-45-generic
7579408 ./vmlinuz-4.10.0-32-generic
3884611 ./System.map-4.13.0-46-generic
3884611 ./System.map-4.13.0-45-generic
3719197 ./System.map-4.10.0-32-generic
2397909 ./grub/unicode.pf2

linuxde dizin altındaki dosya sayıları

du -a | cut -d/ -f2 | sort | uniq -c | sort -nr

fcicek@cicekpc:/media/fcicek/DOKUMAN$ du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
   1255 site
    605 mcu cpu
    338 turkce
Back To Top