/etc/sysctl.conf
Код: Выделить всё
net.ipv4.ip_forward=1
net.ipv4.conf.all.forwarding=1
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
iptables -t nat -A POSTROUTING -s 10.45.4.0/24 ! -d 10.45.4.0/24 -o ens3 -j SNAT --to-source 192.168.45.4