Juniper Security Policies: Zone Oluşturma, Address Book ve Güvenlik Politikaları

🔐 Juniper Security Policies ve Zone Tabanlı Güvenlik Yapılandırmaları

Juniper cihazlarında güvenlik politikaları, trafiğin zone’lar arasında nasıl hareket edeceğini tanımlar. Zone’lar, arayüzleri ve adresleri gruplandırarak ağ segmentasyonunu sağlar. Güvenlik politikaları ise bu zone’lar arasındaki trafik izinlerini kontrol eder.


📌 Kontrol Komutları

🔍 Zone ve Policy Bilgilerini Görüntüleme

AçıklamaKomut
Tanımlı güvenlik zone’larını gösterirshow security zones
Tanımlı güvenlik politikalarını gösterirshow security policies
Policy konfigürasyonunu set formatında gösterir`show configuration security policies
Belirli bir policy’yi filtreler`show
Default uygulamaları listeler`show groups junos-defaults applications

🔧 Zone Oluşturma ve Konfigürasyon

configure
set security zones security-zone Trust interfaces reth0.0
set security zones security-zone Untrust interfaces reth1.0
show | compare
commit check
commit

📒 Address-Book Oluşturma

Address-book, IP adreslerini mantıksal isimlerle tanımlamak için kullanılır ve zone’lara atanabilir.

set security zones security-zone TRUST address-book address NW1 192.168.10.0/24
# veya
set security address-book TRUST-NW address NW1 192.168.10.0/24
set security address-book TRUST-NW attach zone TRUST

Untrust zone için:

set security zones security-zone untrust address-book address test-01 x.x.x.x/32
set security zones security-zone untrust address-book address test-02 x.x.x.x/32
set security zones security-zone untrust address-book address-set test address test-01
set security zones security-zone untrust address-book address-set test address test-02

⚙️ Application Oluşturma

Belirli bir port için özel uygulama tanımı yapabilirsiniz.

set applications application test9999 protocol tcp
set applications application test9999 source-port 0-65535
set applications application test9999 destination-port 9999

🛡️ Güvenlik Politikası (Security Policy) Oluşturma

  1. Hedef IP’yi address-book’a ekleyin:
set security zones security-zone DMZ address-book address test-server1 100.100.100.11/32
  1. Policy tanımlayın:
set security policies from-zone untrust to-zone DMZ policy 030102013 match source-address any
set security policies from-zone untrust to-zone DMZ policy 030102013 match destination-address test-server1
set security policies from-zone untrust to-zone DMZ policy 030102013 match application junos-http junos-https
set security policies from-zone untrust to-zone DMZ policy 030102013 then permit
set security policies from-zone untrust to-zone DMZ policy 030102013 then log session-init

Alternatif Policy Tanımı (Kısa Yolla)

edit security policies from-zone UNTRUST to-zone TRUST
set policy UNTRUST2TRUST match source-address any
set policy UNTRUST2TRUST match destination-address NW1
set policy UNTRUST2TRUST match application junos-http junos-https
set policy UNTRUST2TRUST then permit
set policy UNTRUST2TRUST then count

🔄 Policy Güncelleme ve Yönetim

  • Yeni uygulama ekleme:
set security policies from-zone untrust to-zone DMZ policy 03102013 match application junos-smtp
  • Uygulama silme:
delete security policies from-zone untrust to-zone DMZ policy 03102013 match application junos-https
  • Policy silme:
delete security policies from-zone untrust to-zone DMZ policy 03102013

🧩 Policy Aktif / İnaktif Etme

edit security policies from-zone untrust to-zone DMZ policy 10
inactive
active

🔀 Policy Sıra Değiştirme (Policy Order)

edit security policies from-zone untrust to-zone DMZ
insert policy 10 before policy 6


Cem Kemal Erbaş sitesinden daha fazla şey keşfedin

Subscribe to get the latest posts sent to your email.

About Cem Kemal Erbaş

Check Also

Juniper NAT Yapılandırmaları: Source, Static ve Destination NAT Örnekleri

Bu Junos OS / SRX rehberi Source NAT, Static NAT ve Destination NAT örneklerini ayrı …

Bir yanıt yazın