From 3ad3bb4a3d264cba23b0de2a98cbc9b38044f8a4 Mon Sep 17 00:00:00 2001 From: lipinandrei306 Date: Wed, 7 Oct 2026 09:12:17 +0200 Subject: [PATCH] sfsd --- dc | 4 ++++ dhcp | 3 ++- ospf_brr | 4 ++-- ospf_hqr | 6 ++++-- qw | 0 5 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 dc create mode 100644 qw diff --git a/dc b/dc new file mode 100644 index 0000000..aa1173d --- /dev/null +++ b/dc @@ -0,0 +1,4 @@ +[libdefaults] +default_tgs_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 RC4-HMAC DES-CBC-CRC DES3-CBC-SHA1 DES-CBC-MD5 +default_tkt_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 RC4-HMAC DES-CBC-CRC DES3-CBC-SHA1 DES-CBC-MD5 +preferred_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 RC4-HMAC DES-CBC-CRC DES3-CBC-SHA1 DES-CBC-MD5 \ No newline at end of file diff --git a/dhcp b/dhcp index 12d22d1..20e5835 100755 --- a/dhcp +++ b/dhcp @@ -77,6 +77,7 @@ authoritative; subnet $Q netmask $E { range $S $K; option domain-name-servers $R, $B; + option domain-name "au-team.irpo"; option subnet-mask $E; option routers $T; } @@ -97,4 +98,4 @@ EOF echo "_________________Перезагрузка и старт dncpd________________________" systemctl restart dhcpd -systemctl enable dhcpd -now +systemctl enable dhcpd --now diff --git a/ospf_brr b/ospf_brr index a899a53..8214817 100755 --- a/ospf_brr +++ b/ospf_brr @@ -1,6 +1,6 @@ #!bin/bash -read -p "Введите id роутера(1.1.1.1): " r_id +read -p "Введите id роутера(2.2.2.2): " r_id read -p "Введите подсеть для enp0s3 (172.16.5.0/28): " ip_s3 read -p "Введите подсеть для enp0s8(192.168.2.0/27): " ip_s8 read -p "Введите подсеть для туннеля(192.168.9.0/30): " ip_tun @@ -54,7 +54,7 @@ interface enp0s8 ip ospf authentication message-digest ip ospf message-digest-key 1 md5 1 ! -line vty +line vtysh ! EOF diff --git a/ospf_hqr b/ospf_hqr index cc97b74..2dc5ca9 100755 --- a/ospf_hqr +++ b/ospf_hqr @@ -2,9 +2,10 @@ read -p "Введите имя(HQ-RTR): " name read -p "Input name for tunnel(gre1): " tun -read -p "Введите id роутера(2.2.2.2): " r_id +read -p "Введите id роутера(1.1.1.1): " r_id read -p "Введите подсеть для enp0s3(172.16.4.0/28): " ip_s3 -read -p "Введите подсеть для enp0s8(192.168.3.0/26): " ip_s8 +read -p "Введите подсеть для HQ-SRV(192.168.3.0/26): " ip_s8 +read -p "Введите подсеть для HQ-CLI(192.168.4.0/29): " ip_s9 read -p "Введите подсеть туннеля(192.168.9.0/30): " ip_tun cat > /etc/frr/daemons << EOF bgpd=no @@ -42,6 +43,7 @@ router ospf passive-interface default network $ip_s3 area 0 network $ip_s8 area 0 + network $ip_s9 area 0 network $ip_tun area 0 exit ! diff --git a/qw b/qw new file mode 100644 index 0000000..e69de29