1
This commit is contained in:
10
README.md
10
README.md
@@ -1706,7 +1706,7 @@ nginx -t && sudo systemctl reload nginx
|
|||||||
- Скачаем готовый nftables.conf с github, укажем путь для замены нашего nftables:
|
- Скачаем готовый nftables.conf с github, укажем путь для замены нашего nftables:
|
||||||
> !dos2unix и curl на HQ-RTR уже скачаны!
|
> !dos2unix и curl на HQ-RTR уже скачаны!
|
||||||
|
|
||||||
***curl -o /etc/nftables.conf https://raw.githubusercontent.com/4bobus/laba/refs/heads/main/files/hq-rtr/nftables.conf***
|
***curl -o /etc/nftables.conf https://raw.githubusercontent.com/shiraorie/demo2026-1/main/files/hq-rtr/nftables.conf***
|
||||||
|
|
||||||
***dos2unix /etc/nftables.conf***
|
***dos2unix /etc/nftables.conf***
|
||||||
|
|
||||||
@@ -1731,7 +1731,7 @@ nginx -t && sudo systemctl reload nginx
|
|||||||
|
|
||||||
***apt install curl -y***
|
***apt install curl -y***
|
||||||
|
|
||||||
***curl -o /etc/nftables.conf https://raw.githubusercontent.com/4bobus/laba/refs/heads/main/files/br-rtr/nftables.conf***
|
***curl -o /etc/nftables.conf https://raw.githubusercontent.com/shiraorie/demo2026-1/main/files/br-rtr/nftables.conf***
|
||||||
|
|
||||||
***dos2unix /etc/nftables.conf***
|
***dos2unix /etc/nftables.conf***
|
||||||
|
|
||||||
@@ -2083,7 +2083,7 @@ apt install rsyslog
|
|||||||
3. Настроить DNS на HQ-SRV:
|
3. Настроить DNS на HQ-SRV:
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="images/module3/new11.png" width="600" />
|
<img src="images\module3\dnsmasq new.png" width="600" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
- Теперь интерфейс будет доступен по адресу:
|
- Теперь интерфейс будет доступен по адресу:
|
||||||
@@ -2194,7 +2194,7 @@ apt install rsyslog
|
|||||||
- Скачиваем его с github в необходимую директори:
|
- Скачиваем его с github в необходимую директори:
|
||||||
> !dos2unix и curl на BR-SRV уже скачаны!
|
> !dos2unix и curl на BR-SRV уже скачаны!
|
||||||
|
|
||||||
***curl -o /etc/ansible/inventory.yml https://raw.githubusercontent.com/4bobus/laba/refs/heads/main/files/inventory.yml***
|
***curl -o /etc/ansible/inventory.yml https://raw.githubusercontent.com/shiraorie/dewmo2026-1/main/files/inventory.yml***
|
||||||
|
|
||||||
***dos2unix /etc/ansible/inventory.yml***
|
***dos2unix /etc/ansible/inventory.yml***
|
||||||
|
|
||||||
@@ -2247,7 +2247,7 @@ apt install rsyslog
|
|||||||
- Скачаем файл с github в нужную директорию:
|
- Скачаем файл с github в нужную директорию:
|
||||||
> !dos2unix и curl на BR-SRV уже скачаны!
|
> !dos2unix и curl на BR-SRV уже скачаны!
|
||||||
|
|
||||||
***curl -o /etc/ansible/backup.yml https://raw.githubusercontent.com/4bobus/laba/refs/heads/main/files/backup.yml***
|
***curl -o /etc/ansible/backup.yml https://raw.githubusercontent.com/shiraorie/demo2026-1/main/files/backup.yml***
|
||||||
|
|
||||||
***dos2unix /etc/ansible/backup.yml***
|
***dos2unix /etc/ansible/backup.yml***
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ table inet filter {
|
|||||||
table inet nat {
|
table inet nat {
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
type nat hook prerouting priority filter; policy accept
|
type nat hook prerouting priority filter; policy accept
|
||||||
ip daddr 172.16.50.2 tcp dport 3015 dnat ip to 192.168.200.2:3015
|
ip daddr 172.16.2.2 tcp dport 2026 dnat ip to 192.168.200.2:2026
|
||||||
ip daddr 172.16.50.2 tcp dport 80 dnat ip to 192.168.200.2:8080
|
ip daddr 172.16.2.2 tcp dport 8080 dnat ip to 192.168.200.2:8080
|
||||||
}
|
}
|
||||||
chain postrouting {
|
chain postrouting {
|
||||||
type nat hook postrouting priority srcnat
|
type nat hook postrouting priority srcnat
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ table inet filter {
|
|||||||
table inet nat {
|
table inet nat {
|
||||||
chain prerouting {
|
chain prerouting {
|
||||||
type nat hook prerouting priority filter; policy accept
|
type nat hook prerouting priority filter; policy accept
|
||||||
ip daddr 172.16.40.2 tcp dport 3015 dnat ip to 192.168.100.2:3015
|
ip daddr 172.16.1.2 tcp dport 2026 dnat ip to 192.168.100.2:2026
|
||||||
ip daddr 172.16.40.2 tcp dport 80 dnat ip to 192.168.100.2:80
|
ip daddr 172.16.1.2 tcp dport 8080 dnat ip to 192.168.100.2:80
|
||||||
}
|
}
|
||||||
chain postrouting {
|
chain postrouting {
|
||||||
type nat hook postrouting priority srcnat
|
type nat hook postrouting priority srcnat
|
||||||
|
|||||||
BIN
images/module3/dnsmasq new.png
Normal file
BIN
images/module3/dnsmasq new.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
Reference in New Issue
Block a user