<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Büşra</title>
    <description>The latest articles on Forem by Büşra (@busratekin).</description>
    <link>https://forem.com/busratekin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1221403%2Fd1347347-136d-44be-b66a-88c789ecc5b0.jpg</url>
      <title>Forem: Büşra</title>
      <link>https://forem.com/busratekin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/busratekin"/>
    <language>en</language>
    <item>
      <title>Harbor'da Backup ve Restore</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Wed, 11 Dec 2024 06:29:58 +0000</pubDate>
      <link>https://forem.com/busratekin/harborda-backup-ve-restore-3oh2</link>
      <guid>https://forem.com/busratekin/harborda-backup-ve-restore-3oh2</guid>
      <description>&lt;p&gt;Bu yazıda Harbor da backup ve restore işlemlerinin nasıl yapıldığını anlatacağım.&lt;br&gt;
Öncelikle backup için bir harbor-backup.sh hazırlanır.&lt;br&gt;
&lt;strong&gt;harbor-backup.sh :&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;create_dir(){
    rm -rf harbor
    mkdir -p harbor/db
    mkdir -p harbor/secret
    chmod 777 harbor
    chmod 777 harbor/db
    chmod 777 harbor/secret
}

launch_db() {
    if [ -n "$($DOCKER_CMD ps -q)" ]; then
        echo "There is running container, please stop and remove it before backup"
        exit 1
    fi
    $DOCKER_CMD run -d --name harbor-db -v ${PWD}/harbor:/backup/harbor -v ${harbor_db_path}:/var/lib/postgresql/data ${harbor_db_image} "postgres"
}

clean_db() {
    $DOCKER_CMD stop harbor-db
    $DOCKER_CMD rm harbor-db
}

wait_for_db_ready() {
    set +e
    TIMEOUT=12
    while [ $TIMEOUT -gt 0 ]; do
        $DOCKER_CMD exec harbor-db pg_isready | grep "accepting connections"
        if [ $? -eq 0 ]; then
                break
        fi
        TIMEOUT=$((TIMEOUT - 1))
        sleep 5
    done
    if [ $TIMEOUT -eq 0 ]; then
        echo "Harbor DB cannot reach within one minute."
        clean_db
        exit 1
    fi
    set -e
}

dump_database() {
    $DOCKER_CMD exec harbor-db sh -c 'pg_dump -U postgres registry &amp;gt; /backup/harbor/db/registry.back'
    $DOCKER_CMD exec harbor-db sh -c 'pg_dump -U postgres postgres &amp;gt; /backup/harbor/db/postgres.back'
    $DOCKER_CMD exec harbor-db sh -c 'pg_dump -U postgres notarysigner &amp;gt; /backup/harbor/db/notarysigner.back'
    $DOCKER_CMD exec harbor-db sh -c 'pg_dump -U postgres notaryserver &amp;gt; /backup/harbor/db/notaryserver.back'
}

backup_registry() {
    cp -rf /data/registry  harbor/
}

backup_chart_museum() {
    if [ -d /data/chart_storage ]; then
        cp -rf /data/chart_storage harbor/
    fi
}

backup_redis() {
    if [ -d /data/redis ]; then
        cp -rf /data/redis harbor/
    fi
}

backup_secret() {
    # backup all files in secret
    if [ -d /data/secret/ ]; then
        cp -r /data/secret/* harbor/secret/
    fi
    # exclude the server.crt and server.key because they should be signed with new ca
    if [ -d harbor/secret/cert/  ]; then
        rm -rf harbor/secret/cert/
    fi
}

create_tarball() {
    timestamp=$(date +"%Y-%m-%d-%H-%M-%S")
    backup_filename=harbor-$timestamp.tgz
    tar zcvf $backup_filename harbor
    rm -rf harbor
}

note() { printf "\nNote:%s\n" "$@"
}

usage=$'harbor-backup.sh -- Backup Harbor script
./harbor-backup.sh      [options]   Backup Harbor with database and registry data      
Options
    --istile    Backup in Harbor tile env
    --dbonly    Backup Harbor with database data only
'
dbonly=false
istile=false
while [ $# -gt 0 ]; do
        case $1 in
            --help)
            note "$usage"
            exit 0;;
            --dbonly)
            dbonly=true;;
            --istile)
            istile=true;;            
            *)
            note "$usage"
            exit 1;;
        esac
        shift || true
done

set -ex

if [ $istile = true ]; then
    DOCKER_CMD="/var/vcap/packages/docker/bin/docker -H unix:///var/vcap/sys/run/docker/dockerd.sock"
else 
    DOCKER_CMD=docker
fi
harbor_db_image=$($DOCKER_CMD images goharbor/harbor-db --format "{{.Repository}}:{{.Tag}}" |head -1)
harbor_db_path="/data/database"


create_dir
launch_db
wait_for_db_ready
dump_database
backup_redis
if [ $dbonly = false ];  then
    backup_registry
    backup_chart_museum
fi
backup_secret
create_tarball
clean_db

echo "All Harbor data are backed up, backup file is $backup_filename."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;sudo nano harbor-backup.sh&lt;/li&gt;
&lt;li&gt;chmod +x harbor-backup.sh&lt;/li&gt;
&lt;li&gt;docker compose down&lt;/li&gt;
&lt;li&gt;./harbor-backup.sh&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Harbor için yedek alındıktan sonra restore işlemine başlanır.&lt;br&gt;
harbor-restore&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;docker stop harbor-db&lt;/li&gt;
&lt;li&gt;docker rm harbor-db (çalışan konteynarlar kaldırılır.)&lt;/li&gt;
&lt;li&gt;sudo nano ./harbor-restore.sh&lt;/li&gt;
&lt;li&gt;chmod +x ./harbor-restore.sh
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash
# Copyright Project Harbor Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

extract_backup(){
    if [ -n "$backupfile" ]; then
        tar xvf $backupfile
    else
        tar xvf harbor.tgz
    fi

}

launch_db() {
    if [ -n "$($DOCKER_CMD ps -q)" ]; then
        echo "There is running container, please stop and remove it before restore"
        exit 1
    fi
    $DOCKER_CMD run -d --name harbor-db -v ${PWD}/harbor:/backup/harbor -v ${harbor_db_path}:/var/lib/postgresql/data ${harbor_db_image} "postgres"
}

clean_db() {
    $DOCKER_CMD stop harbor-db
    $DOCKER_CMD rm harbor-db
}

wait_for_db_ready() {
    set +e
    TIMEOUT=12
    while [ $TIMEOUT -gt 0 ]; do
        $DOCKER_CMD exec harbor-db pg_isready | grep "accepting connections"
        if [ $? -eq 0 ]; then
                break
        fi
        TIMEOUT=$((TIMEOUT - 1))
        sleep 5
    done
    if [ $TIMEOUT -eq 0 ]; then
        echo "Harbor DB cannot reach within one minute."
        clean_db
        exit 1
    fi
    set -e
}

clean_database_data(){
  set +e
  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "drop database registry;"
  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "drop database postgres;"
  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "drop database notarysigner; "
  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "drop database notaryserver;"
  set -e

  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "create database registry;"
  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "create database postgres;"
  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "create database notarysigner;"
  $DOCKER_CMD exec harbor-db psql -U postgres -d template1 -c "create database notaryserver;"
}

restore_database() {
    $DOCKER_CMD exec harbor-db sh -c 'psql -U postgres registry &amp;lt; /backup/harbor/db/registry.back'
    $DOCKER_CMD exec harbor-db sh -c 'psql -U postgres postgres &amp;lt; /backup/harbor/db/postgres.back'
    $DOCKER_CMD exec harbor-db sh -c 'psql -U postgres notarysigner &amp;lt; /backup/harbor/db/notarysigner.back'
    $DOCKER_CMD exec harbor-db sh -c 'psql -U postgres notaryserver &amp;lt; /backup/harbor/db/notaryserver.back'
}

restore_registry() {
    cp -r harbor/registry/ /data/
    chown -R 10000 /data/registry
}

restore_redis() {
    cp -r harbor/redis/ /data/
    chown -R 999 /data/redis
}

restore_chartmuseum() {
    if [ -d ./harbor/chart_storage ]; then
        cp -r ./harbor/chart_storage/ /data/
        chown -R 10000 /data/chart_storage
    fi
}

restore_secret() {
    if [ -d harbor/secret/ ]; then
        cp -r harbor/secret/* /data/secret/
    fi
}

note() { printf "\nNote:%s\n" "$@"
}

usage=$'harbor-restore.sh -- Restore Harbor script
./harbor-restore.sh   [options]          Restore Harbor with database and registry data
Options:
    --istile      Run restore in Harbor tile env
    --dbonly      Restore Harbor with database data only
    --backupfile  &amp;lt;the backup file name&amp;gt;'

dbonly=false
istile=false
while [ $# -gt 0 ]; do
        case $1 in
            --help)
            note "$usage"
            exit 0;;
            --dbonly)
            dbonly=true;;
            --istile)
            istile=true;;
            --backupfile)
            backupfile=$2
            shift ;;
            *)
            note "$usage"
            exit 1;;
        esac
        shift || true
done

set -ex

if [ $istile = true ]; then
    DOCKER_CMD="/var/vcap/packages/docker/bin/docker -H unix:///var/vcap/sys/run/docker/dockerd.sock"
else
    DOCKER_CMD=docker
fi
harbor_db_image=$($DOCKER_CMD images goharbor/harbor-db --format "{{.Repository}}:{{.Tag}}" | head -1)
harbor_db_path="/data/database"

extract_backup
launch_db
wait_for_db_ready
clean_database_data
restore_database
restore_redis
if [ $dbonly = false ]; then
    restore_registry
    restore_chartmuseum
fi

restore_secret
clean_db
echo "All Harbor data is restored, you can start Harbor now"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;./harbor-restore.sh&lt;/li&gt;
&lt;li&gt;docker ps&lt;/li&gt;
&lt;li&gt;docker stop harbor-db (çalışan konteynerlar durdurulur.)&lt;/li&gt;
&lt;li&gt;docker rm harbor-db&lt;/li&gt;
&lt;li&gt;docker compose up -d&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Windows WSL2 ile Nextcloud Kurma</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Mon, 27 May 2024 12:01:56 +0000</pubDate>
      <link>https://forem.com/busratekin/windows-wsl2-ile-nextcloud-kurma-4oia</link>
      <guid>https://forem.com/busratekin/windows-wsl2-ile-nextcloud-kurma-4oia</guid>
      <description>&lt;p&gt;Nextcloud, kullanıcıların dosya depolama, senkronizasyon, paylaşım ve işbirliği yapabileceği açık kaynaklı bir bulut depolama platformudur. İster kişisel kullanım için ister kurumsal düzeyde olsun, kullanıcılar Nextcloud'u kendi sunucularında veya barındırılan hizmetlerde kullanarak dosyalarını güvenli bir şekilde yönetebilirler. Güvenlik, esneklik ve genişletilebilirlik gibi özellikleriyle dikkat çeker.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Windows 10'da Komut İstemini yönetici olarak çalıştırıyoruz. PowerShell'i yönetici olarak çalıştırıyoruz.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;PowerShell
# WSL özelliğini etkinleştiriyoruz
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
# Sanal makine platformunu etkileştiriyoruz
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bilgisayarı yeniden başlatıyoruz. Burada eğer sanal makine içinde sanal makine kuracaksak sanal makinenin CPU ayarlarından 'Virtualize IntelVT-x/EPT or AMD-V/RVI' ayarını etkinleştiriyoruz.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1d5ndherd16u5dpo7tz2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1d5ndherd16u5dpo7tz2.png" alt="Image description" width="800" height="647"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Sanallaştırma paltformunu etkinkleştiriyoruz.
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
# wsl2 yi etkinleştiriyoruz
wsl --set-default-version 2
# wsl çekirdek güncellemesini indiriyoruz.
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi -OutFile .\wsl_update_x64.msi
# ilerleme tercihni sıfırla
$ProgressPreference = 'Continue'
# indirilen dosyaları yüklüyoruz
.\wsl_update_x64.msi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Windows bilgisayarımızdan Microsoft Store girip Debianı indiriyoruz.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9m6y0oq7c5fjl0atxee.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq9m6y0oq7c5fjl0atxee.png" alt="Image description" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Debian sanal makinesini açıp kullanıcı adı ve şifre belirliyoruz.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
sudo apt upgrade -y
sudo apt install unzip wget -y
sudo apt install apache2 mariadb-server mariadb-client -y
sudo apt install php8.2-* -y
sudo service mariadb start
sudo su
mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08z7v05whyjyenjq16kz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F08z7v05whyjyenjq16kz.png" alt="Image description" width="800" height="653"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;mysql -u root -p&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Nextcloud veritabanını oluşturuyoruz
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE DATABASE nextclouddb;
GRANT ALL ON nextclouddb.* to 'nextcloud_rw'@'localhost' IDENTIFIED BY 'N3xtCl0ud!';
FLUSH PRIVILEGES;
EXIT;
exit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Apache web kökünde Nextcloud'u indirip çıkarmak için aşağıdaki komutlarla devam ediyoruz.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# en son nextcloud sürümünü indiriyoruz
wget -O /tmp/nextcloud.zip https://download.nextcloud.com/server/releases/latest.zip
# indirilen nextcloud versionunu çıkartıyoruz.
sudo unzip -q /tmp/nextcloud.zip -d /var/www
# Yeni nextcloud dizinin sahibini www-data olarak ayarlıyoruz
sudo chown -R www-data:www-data /var/www/nextcloud

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt; nextcloud.conf dosyası oluşturuyoruz.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo nano /etc/apache2/sites-available/nextcloud.conf&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Alias /nextcloud "/var/www/nextcloud/"
&amp;lt;directory /var/www/html/nextcloud/&amp;gt;
Options +FollowSymlinks
AllowOverride All
Require all granted

Dav off

SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
&amp;lt;/directory&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Siteyi etkinleştirmek için ve Apache'yi yeniden başlatmak için aşağıdaki komutlarla devam ediyoruz.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo a2ensite nextcloud
sudo a2enmod rewrite headers env dir mime dav
sudo service apache2 restart
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;localhost/nextcloud/ sitesine gidiyoruz&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;username: nextcloud_rw&lt;br&gt;
password: N3xtCl0ud!&lt;br&gt;
database name: nextclouddb&lt;br&gt;
database host: localhost&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4k1hxo0a7q82jox6c27m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4k1hxo0a7q82jox6c27m.png" alt="Image description" width="388" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Ubuntu 22.04'de Ansible Kurulumu ve Örnek Playbook Repositorie</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Tue, 14 May 2024 19:28:25 +0000</pubDate>
      <link>https://forem.com/busratekin/ubuntu-2204de-ansible-kurulumu-ve-ornek-playbook-repositorie-1g57</link>
      <guid>https://forem.com/busratekin/ubuntu-2204de-ansible-kurulumu-ve-ornek-playbook-repositorie-1g57</guid>
      <description>&lt;ul&gt;
&lt;li&gt;sudo apt güncelleme -y &amp;amp;&amp;amp; sudo apt yükseltme -y&lt;/li&gt;
&lt;li&gt;sudo apt install ansible sshpass -y&lt;/li&gt;
&lt;li&gt;sudo nano /etc/ansible/hosts
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[servers]
server1 ansible_host=192.168.56.103
server2 ansible_host=192.168.56.105

[all:vars]
ansible_python_interpreter=/usr/bin/python3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;ansible-envanter --list -y&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9sm0d7byz3tp5sekloas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9sm0d7byz3tp5sekloas.png" alt="Image description" width="700" height="226"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;sudo nano /etc/ansible/ansible.cfg
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[defaults]
host_key_checking = False
ansible_user = sysadmin
ask_pass = True
ask_become_pass = True
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Ping Test:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;ansible all -m ping -u sysadmin --ask-pass&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsxo7zhozta6no9ffxw2h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsxo7zhozta6no9ffxw2h.png" alt="Image description" width="700" height="194"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run Command Playbooks:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;ansible-playbook -i /etc/ansible/hosts ymlname.yml --ask-pass --ask-become-pass&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Playbook Repo:
&lt;a href="https://github.com/buusratekiin/ansible_playbook"&gt;https://github.com/buusratekiin/ansible_playbook&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Ubuntu 22.04 NTOPNG Kurulumu</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Wed, 08 May 2024 07:48:29 +0000</pubDate>
      <link>https://forem.com/busratekin/ubuntu-2204-ntopng-kurulumu-13gd</link>
      <guid>https://forem.com/busratekin/ubuntu-2204-ntopng-kurulumu-13gd</guid>
      <description>&lt;p&gt;NTOPNG, bir ağdaki trafiği analiz etmeye yardımcı olan açık kaynaklı bir ağ trafiği izleme aracıdır. Ağ kullanımını gerçek zamanlı olarak gösteren grafiksel bir ağ analyzer.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt update&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;sudo apt install ntopng&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;İndirdikten sonra "ip a " komutuyla ethernet ağ arayüzünü öğreniyoruz. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh3oxmojzj8wto80o2eu9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh3oxmojzj8wto80o2eu9.png" alt="Image description" width="800" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;" sudo nano /etc/ntopng.conf " içine giriyoruz. Kendi arayüzümüzü yazıyoruz.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# This configuration file is similar to the command line, with the exception
# that an equal sign '=' must be used between key and value. Example: -i=p1p2
# or --interface=p1p2 For options with no value (e.g. -v) the equal is also
# necessary. Example: "-v=" must be used.
#
# DO NOT REMOVE the following option, required for daemonization.
-e=

# * Interfaces to sniff on: one interface per line, prefix with -i=
# E.g.
-i=ens3
#-i=wlan0
# If none is specified, ntopng will try to auto-detect the best interface.
#
# * Port on which ntopng will listen for the web-UI.
-w=3000

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftccsvpinpkrhqc7msstu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftccsvpinpkrhqc7msstu.png" alt="Image description" width="800" height="327"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo systemctl start ntopng&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;sudo systemctl stop ufw&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;



&lt;p&gt;&lt;code&gt;http://10.10.2.10:3000&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;kullanıcı adı ve şifreye admin girip şifre değişikliği yapıyoruz. &lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Ubuntu 22.04 NMAP Kurulum Yolları</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Thu, 08 Feb 2024 13:56:58 +0000</pubDate>
      <link>https://forem.com/busratekin/ubuntu-2204-nmap-kurulum-yollari-20a9</link>
      <guid>https://forem.com/busratekin/ubuntu-2204-nmap-kurulum-yollari-20a9</guid>
      <description>&lt;p&gt;&lt;strong&gt;NMAP Derleyerek Nasıl Kurulur?&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget https://nmap.org/dist/nmap-7.91.tar.bz2
tar -xvf nmap-7.91.tar.bz2
cd nmap-7.91

./configure
make
sudo make install
nmap --version

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;NMAP .deb Paketiyle Nasıl Kurulur?&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;apt install  --download-only nmap
find / -iname nmap*.deb
cp /var/cache/apt/archives/nmap_7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1_amd64.deb
dpkg -i nmap_7.91+dfsg1+really7.80+dfsg1-2ubuntu0.1_amd64.deb
dpkg -l nmap

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;NMAP apt Paket Yöneticisi İle Nasıl Kurulur?&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
sudo apt install nmap
nmap --version

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Network Cihazlarında SNMPv3 Nasıl Açılır ?</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Thu, 04 Jan 2024 07:43:05 +0000</pubDate>
      <link>https://forem.com/aciklab/network-cihazlarinda-snmpv3-nasil-acilir--627</link>
      <guid>https://forem.com/aciklab/network-cihazlarinda-snmpv3-nasil-acilir--627</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Cisco L2 Switch
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;vIOS-L2-01#conf t
vIOS-L2-01(config)#snmp-server group btgroup v3 auth                
vIOS-L2-01(config)#snmp-server user btuser btgroup v3 auth md5 123456bt
vIOS-L2-01(config)#end
vIOS-L2-01#wr
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;p&gt;&lt;code&gt;snmpwalk -v3 -u btuser -l authNoPriv -A 123456bt &amp;lt;ip_address&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_rAaZd6v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/myrq5755e1lqlyz8vfc9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_rAaZd6v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/myrq5755e1lqlyz8vfc9.png" alt="Image description" width="800" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cisco Router
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;R6#conf t
R6(config)#snmp-server group btgroup v3 auth
R6(config)#snmp-server user btuser btgroup v3 auth md5 123456bt
R6(config)#
R6(config)#end
R6#wr
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;p&gt;&lt;code&gt;snmpwalk -v3 -u btuser -l authNoPriv -A 123456bt &amp;lt;ip_address&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rF0L0pqq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3a8rg96vwqq6nuhyf84j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rF0L0pqq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3a8rg96vwqq6nuhyf84j.png" alt="Image description" width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Juniper Switch-Router
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;root# set snmp v3 usm local-engine user superuser authentication-md5 authentication-password 12345678
root#set snmp v3 usm local-engine user superuser privacy-aes128 privacy-password 12345678
root# set snmp v3 vacm access group supergroup default-context-prefix security-model usm security-level authentication context-match exact
root# set snmp v3 vacm access group supergroup default-context-prefix security-model usm security-level authentication read-view readview
root# set snmp v3 vacm access group supergroup default-context-prefix security-model usm security-level authentication write-view writeview
root# set snmp v3 vacm access group supergroup default-context-prefix security-model usm security-level authentication notify-view notifyview
root# set snmp v3 vacm security-to-group security-model usm security-name superuser group supergroup
root# set snmp view readview oid .1 include
root# set snmp view writeview oid .1 include
root# set snmp view notifyview oid .1 include
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;p&gt;&lt;code&gt;snmpwalk -v3 -u superuser -l authNoPriv -A 12345678 &amp;lt;ip_address&amp;gt;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_oFlyVk---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wy1hh0uoj3hf1lh1xb18.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_oFlyVk---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wy1hh0uoj3hf1lh1xb18.png" alt="Image description" width="800" height="319"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Network Cihazlarında SNMPv2 Nasıl Açılır ?</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Thu, 28 Dec 2023 08:26:06 +0000</pubDate>
      <link>https://forem.com/busratekin/network-cihazlarinda-snmp-nasil-acilir--2k1j</link>
      <guid>https://forem.com/busratekin/network-cihazlarinda-snmp-nasil-acilir--2k1j</guid>
      <description>&lt;ul&gt;
&lt;li&gt;Cisco L3 Switch&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvaol3rlae1s3qbc5r9e5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvaol3rlae1s3qbc5r9e5.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Switch#configure terminal 
Switch(config)#snmp-server community public RO 
Switch(config)#exit 
Switch#write memory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Cisco Router&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wd85rkqgen8px4oh6jc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4wd85rkqgen8px4oh6jc.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Router#configure terminal 
Router(config)#snmp-server community public RO 
Router(config)#exit 
Router#write memory
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt; Juniper Router&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcjxdw5q7oforqiqfcq5q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcjxdw5q7oforqiqfcq5q.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[edit]
user@router# set snmp community public authorization read-only
user@router# commit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Huawei Router
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;snmp-agent community read testPublic
snmp-agent sys-info version v2c
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Huawei Switch
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;snmp-agent community read testPublic
snmp-agent sys-info version v2c
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SNMP izlemek için terminale yazılacak komut:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;snmpwalk -v2c -c public &amp;lt;ip_address&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fali09u5yf05i2z9g7iaq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fali09u5yf05i2z9g7iaq.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Oracle Linux Makinede Statik IP Adresi Nasıl Tanımlanır?</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Fri, 01 Dec 2023 06:10:07 +0000</pubDate>
      <link>https://forem.com/aciklab/oracle-linux-makinede-statik-ip-adresi-nasil-tanimlanir-4d6a</link>
      <guid>https://forem.com/aciklab/oracle-linux-makinede-statik-ip-adresi-nasil-tanimlanir-4d6a</guid>
      <description>&lt;p&gt;Bu yazıda Oracle Linux Makinede ağ arayüzlerini statik olarak yapılandırmayı göreceğiz.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Öncelikle sisteminizdeki ağ arayüzünün adını bulun. Arayüz adı, kurulum türüne ve sistem donanımına bağlı olarak farklılık gösterebilir. Arayüz adı türünü bulmak için:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo ip a&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ksbl794p7pkjpgv9oq5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ksbl794p7pkjpgv9oq5.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Genellikle, ağ konfigürasyonu /etc/sysconfig/network-scripts/ dizinindeki dosyalarda yapılır. Ethernet bağlantısı için genellikle "ifcfg-ens18" veya benzeri bir dosya bulunur. İlgili dosyayı düzenlemek için bir metin düzenleyici kullanabilirsiniz, örneğin vi veya nano. ifcfg'den sonra gelen kısım ağ arayüzünün adıdır.
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo nano /etc/sysconfig/network-scripts/ifcfg-ens18&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgvy2bwxhwxq7pgzmkqfh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgvy2bwxhwxq7pgzmkqfh.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;IPADDR, PREFIX, GATEWAY , DNS kısımlarını kendi ağ yapılandırmanıza göre değiştirin.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Değişikliklerin etkili olabilmesi için network servisini yeniden başlatmanız gerekebilir. Aşağıdaki komutu kullanarak bu işlemi gerçekleştirebilirsiniz:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo service network restart&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ya da VM'i yeniden başlatabilirsiniz
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo reboot now&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Yapılan değişikliklerin etkili olup olmadığını kontrol etmek için aşağıdaki komutları kullanabilirsiniz:
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;ip addr show ens18&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjxlevrsbfcqyqx31d4i4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjxlevrsbfcqyqx31d4i4.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Ubuntu Makinede Statik IP Adresi Nasıl Tanımlanır?</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Fri, 01 Dec 2023 05:15:03 +0000</pubDate>
      <link>https://forem.com/aciklab/ubuntu-makinede-statik-ip-adresi-nasil-tanimlanir-i1n</link>
      <guid>https://forem.com/aciklab/ubuntu-makinede-statik-ip-adresi-nasil-tanimlanir-i1n</guid>
      <description>&lt;p&gt;Bu yazıda  Ubuntu 22.04 Masaüstü ve Ubuntu 22.04 Sunucu sürümlerinde ağ arayüzlerini statik olarak yapılandırmayı göreceğiz. Bunu iki yöntem ile yapabiliriz: &lt;/p&gt;

&lt;h1&gt;
  
  
  Yöntem 1: Ubuntu 22.04 Masaüstünde Statik IPv4 Adresini Yapılandırma
&lt;/h1&gt;

&lt;p&gt;Ubuntu Masaüstü sürümleri, ağ arayüzlerini yapılandırmak için grafiksel bir arayüze sahiptir. Ubuntu 22.04 Masaüstü sisteminde statik IP adresi yapılandırmak için aşağıdaki adımları izleyin.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sağ üst köşedeki ağ simgesini tıklayın.&lt;/li&gt;
&lt;li&gt;Ardından Wired Connected menüsünü genişletin.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Şimdi aşağıdaki resimde gösterildiği gibi Wired Connected  tıklayın .&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxv1nbytevcgb9ojtrddy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxv1nbytevcgb9ojtrddy.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Bir ağ ayarları iletişim kutusu görünecektir.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Şimdi sol kenar çubuğundaki “Network”ı tıklayın.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Kablolu bölümünün altında , aşağıdaki resimde gösterildiği gibi Dişli simgesine tıklayın.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Favczclj35hub49fy6eyz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Favczclj35hub49fy6eyz.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Yeni bir Kablolu iletişim kutusu görünecektir.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Şimdi “IPv4” sekmesine tıklayın.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;IPv4 Method Manuel olarak ayarlayın&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Geçerli bir IP adresi, Netmask ve Ağ Geçidi adresi girin&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DNS sunucusunu ayarlayın (isteğe bağlı)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Değişiklikleri kaydetmek için Apply düğmesini tıklayın&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2q1jsrlkwbabn3utyp12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2q1jsrlkwbabn3utyp12.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Son olarak değişiklikleri uygulamak için ağı devre dışı bırakın ve ardından tekrar etkinleştirin&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Yöntem 2:CLI ile Ubuntu 22.04 Sunucusunda Statik IPv4 Adresini Yapılandırma
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Öncelikle sisteminizdeki ağ arayüzünün adını bulun. Arayüz adı, kurulum türüne ve sistem donanımına bağlı olarak farklılık gösterebilir. Arayüz adı türünü bulmak için:
&lt;code&gt;

sudo ip a 

&lt;/code&gt;
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fclpfy6v6q10yx1sfbfmx.png" alt="Image description"&gt;
Yukarıdaki çıktı, sistemin ens3 ağ arayüz adı ile yapılandırıldığını gösterir . Bu sizin sisteminizde farklı olabilir.&lt;/li&gt;
&lt;li&gt;Şimdi /etc/netplan dizini altında ağ yapılandırma dosyasını  düzenleyin.
&lt;code&gt;

sudo nano /etc/netplan/01-network-manager-all.yaml 

&lt;/code&gt;
```
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;network:&lt;br&gt;
    version: 2&lt;br&gt;
    renderer: networkd&lt;br&gt;
    ethernets:&lt;br&gt;
        ens3:&lt;br&gt;
            addresses:&lt;br&gt;
                - 192.168.100.10/26&lt;br&gt;
            nameservers:&lt;br&gt;
                addresses: [8.8.8.8, 8.8.4.4]&lt;br&gt;
            routes:&lt;br&gt;
                - to: default&lt;br&gt;
                  via: 192.168.100.1 &lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- ens3– ağ arayüzü adıdır
- addresses– bir arayüzde IPv4 adresini yapılandırmak için kullanılır. Buraya birden fazla adres ekleyebilirsiniz
- nameservers– DNS sunucularını buradan ayarlayın. 8.8.8.8 ve 8.8.4.4 Google'ın sunucularıdır.
- routes– Bu, sisteminizde ağ geçidini ayarlamak için kullanılır.
IPv4 adresinin sistem ağına ait olduğundan ve doğru ağ geçidi IP adresine sahip olduğundan emin olun. Onaylandıktan sonra dosya içeriğini kaydedin ve kapatın.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
    <item>
      <title>Cisco Router'da Nasıl Netflow Verileri Açılır ?</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Thu, 30 Nov 2023 05:34:57 +0000</pubDate>
      <link>https://forem.com/aciklab/cisco-routerda-nasil-netflow-verileri-acilir--1h9m</link>
      <guid>https://forem.com/aciklab/cisco-routerda-nasil-netflow-verileri-acilir--1h9m</guid>
      <description>&lt;p&gt;Bu yazıda Cisco Router üzerinden Netflow verilerinin açılmasını ve Virtual Machinede izlemeyi göreceğiz.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1o57pgzucl2ivus3de3k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1o57pgzucl2ivus3de3k.png" alt="Image description" width="763" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;İlk olarak cisco router , cisco switchlerle topoloji oluşturulur. &lt;/li&gt;
&lt;li&gt;Routerlara gateway ve Statik yönlendirme ip'leri verilir.&lt;/li&gt;
&lt;li&gt;Yönlendirmler ile Ubuntu bilgisayarların ve routerların birbirine ping atmasını sağladım.&lt;/li&gt;
&lt;li&gt;Sonra hangi router üzerinden netflow verisi açacaksam ona netflow configurasyonu yaptım (R2 üzerinden yaptım).&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Router Üzerinde Ayarlar
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Router&amp;gt; enable
Router# configure terminal
Router(config)# interface g2/0
Router(config-if)# ip flow ingress (iletilen trafiği izlemek için egress yazılabilir, her ikisi için ayrı satırlarda ikisinide yazmak gerekir)
Router(config-if)# exit
Router(config)# end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;NetFlow'un çalışır durumda olduğunu doğrulamak ve NetFlow istatistiklerinin bir özetini görüntülemek için
&lt;code&gt;Router# show ip cache flow&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;NetFlow Veri Dışa Aktarma ile trafik verilerini dışa aktarmak için NetFlow'u yönlendiricideki en az bir arabirimde etkinleştirerek yapılandırmanız gerekir. (Export adımları)
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Router&amp;gt; enable
Router# configure terminal
Router(config)# ip flow-export destination 192.168.100.10 2055 (sanal bilgisayarın IP'si ve port adresi yazılır)
Router(config)# ip flow-export source g2/0
Router(config)# ip flow-export version 9
Router(config)# ip flow-export interface-names
Router(config)# ip flow-export template refresh-rate 15
Router(config)# ip flow-export template timeout-rate 90
Router(config)# ip flow-export template options export-stats
Router(config)# ip flow-export template options refresh-rate 25
Router(config)# ip flow-export template options timeout-rate 120
Router(config)# end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;NetFlow veri aktarımına ilişkin istatistikleri görüntülemek için
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;show ip flow export&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;
  
  
  VM'ler Üzerinde Testler
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Router da görüntüledikten sonra sanal bilgisayardan görüntülemek için Tcpdump kullanacağız.&lt;/li&gt;
&lt;li&gt;Sanal bilgisayarın terminaline
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;sudo su&lt;br&gt;
telnet 192.168.100.1 2055 (ping atılan ip)&lt;br&gt;
tcpdump port 2055&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Başka bir terminal ekranından 192.168.100.1 'e ping attığımızda flow veri akışını izleyebiliyoruz.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4eb6fdakojzsghi0u41z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4eb6fdakojzsghi0u41z.png" alt="Image description" width="800" height="616"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Cisco Router'da Statik Yönlendirme Nasıl Yapılır?</title>
      <dc:creator>Büşra</dc:creator>
      <pubDate>Thu, 30 Nov 2023 04:56:23 +0000</pubDate>
      <link>https://forem.com/aciklab/cisco-routerda-statik-yonlendirme-nasil-yapilir-4kj9</link>
      <guid>https://forem.com/aciklab/cisco-routerda-statik-yonlendirme-nasil-yapilir-4kj9</guid>
      <description>&lt;p&gt;Bu yazıda Cisco Router'dan nasıl statik yönlendirme yapılacağını göreceğiz. Statik yönlendirme (static routing), ağ trafiğini belirli bir yolu takip ederek hedefe yönlendirmek için kullanılan bir yönlendirme yöntemidir.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9taoqphc3ha8trrgyfry.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9taoqphc3ha8trrgyfry.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;İlk olarak topolojide kullanılacak IP'leri ve subnetmasklarını belirliyoruz. &lt;/li&gt;
&lt;li&gt;Sanal bilgisayarlara belirlediğimiz IP adreslerini, subnet masklarını ve gatewaylerini manuel olarak giriyoruz.&lt;/li&gt;
&lt;li&gt;Routerlara interface adreslerini veriyoruz ve no shutdown yazıp routerların interfacelerini açık hale getiriyoruz.&lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;
  
  
  Router Üzerinde Ayarlar
&lt;/h1&gt;

&lt;p&gt;Router4 için örnek :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;router&amp;gt;enable
router#conf t
router# int gig1/0 (interface isimleri yazılır)
router(if-config)# ip add 200.150.150.1 255.255.255.252 
router(if-config)# no shutdown
router# int gig2/0 (interface isimleri yazılır)
router(if-config)# ip add 200.100.100.1 255.255.255.252 
router(if-config)# no shutdown
router(config)# wr

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Sonra Routerlara Statik Yönlendirme ekliyoruz.
Static Yönlendirme : &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;Router(config)# ip route {hedef ağ} {hedef ağ subnet mask} {hedef ağ kanalına giderken geçeceği ilk kapı}&lt;/code&gt; &lt;br&gt;&lt;/p&gt;

&lt;p&gt;Router1 için Statik Yönlendirme:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;R4(config)# ip route 192.168.100.0 255.255.255.192 200.150.150.2&lt;br&gt;
  R4(config)# ip route 192.168.50.0 255.255.255.192 200.150.150.2&lt;br&gt;
  R4(config)# ip route 10.10.0.0  255.255.0.0 200.100.100.2&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Router2 için Statik Yönlendirme:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;R2(config)# ip route 200.100.100.0 255.255.255.252 200.150.150.1&lt;br&gt;
  R2(config)# ip route 10.10.0.0 255.255.0.0 200.150.150.1&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;Router3 için Statik Yönlendirme:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;R3(config)# ip route 200.150.150.0 255.255.255.252 200.100.100.1&lt;br&gt;
  R3(config)# ip route 192.168.100.0 255.255.255.192 200.100.100.1&lt;br&gt;
  R3(config)# ip route 192.168.50.0 255.255.255.128 200.100.100.1&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;h1&gt;
  
  
  VM'ler Üzerinde Testler
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;192.168.100.10 Ping Testi&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4eeggbyeat7hw7636bf5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4eeggbyeat7hw7636bf5.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;192.168.50.10 Ping Testi&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd1s3qrad39uvg6bbkc9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd1s3qrad39uvg6bbkc9r.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;10.10.0.10 Ping Testi&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foan10lh8lanssx44pbgz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foan10lh8lanssx44pbgz.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
