DNF Установка iptables-services –y
echo net.ipv4.ip_forward = 1> /etc/sysctl.conf
Systemctl inable –-now iptables neptables –t nat –a opstrouting –1166.06.0.06.06.0.06.0.06.0.06.0.0.06.0.0.06.0.06. MASQUERADE
iptables –t nat –a postrouting –s 172.16.50.0/28 –O ENS3 –J MASQUERADE
iptables-save>/etc/sysconfig/iptables
Systemctl Aptart Iptables lysctables systemctlart lyptables systemctlart systemctlart systemctlart systemctl -p
iptables –l –t nat
nano/etc/sysconfig/iptables yadalitth do Commit (?) 172.16.50.14
В nmtui
To hq – 172.16.40.14/28
To br – 172.16.50.14/28
HQ-RTR
en
conf t
int isp
ip Добавить 172.16.40.1/28
incapsulation te0
service-instance toisp
incapsulation untagged
connect interface isp
do />en
conf t
int ISP
ip add 172.16.50.1/28
port te0
service-instance toISP
encapsulation untagged
connect ip interface ISP
do wr mem
К. С. 172.16.50.0/28
Подробнее здесь: https://stackoverflow.com/questions/796 ... %b0-red-os