sysctl -w net.ipv4.ip_forward=1 # у вас уже сделано
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
echo 'deb http://mirror.yandex.ru/debian/ bookworm main contrib non-free non-free-firmware
deb-src http://mirror.yandex.ru/debian/ bookworm main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://mirror.yandex.ru/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src http://mirror.yandex.ru/debian/ bookworm-updates main contrib non-free non-free-firmware' > /etc/apt/sources.list
#!/bin/bash
[ -x /usr/bin/rpmbuild ] || { echo 'rpmbuild not found'; exit 1; }
mkdir -p /tmp/rb
cd /tmp/rb
echo 'Name: testpackage
Version: 999
Release: 111
Summary: test summary
License: qwe
%description
test package
%install
cp $HOME/your_file %buildroot
%files
/your_file' > temp.spec
rpmbuild -v --target noarch --define "_topdir $PWD" -ba temp.spec
truncate -s1g /tmp/disk
mkfs.ext4 -Fm0 -N10000 /tmp/disk
pacman -Qkk linux mkinitcpio