История изменений
Исправление S_Paul, (текущая версия) :
Итак, сейчас всё работает(похоже) и выглядит так:
cat /etc/network/interfaces : allow-hotplug eth0 iface eth0 inet static address 192.168.1.251 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 up /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j SNAT --to-source 192.168.10.5 up /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth2 -j SNAT --to-source 192.168.4.5 allow-hotplug eth1 iface eth1 inet static address 192.168.10.5 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 allow-hotplug eth2 iface eth2 inet static address 192.168.4.5 netmask 255.255.255.0 network 192.168.4.0 broadcast 192.168.4.255 gateway 192.168.4.1 post-up route add -net 192.168.3.0/24 gw 192.168.10.1 cat /etc/resolv.conf : nameserver 127.0.0.1 nameserver 192.168.4.1 в /etc/dnsmasq.conf добавлено: address=/.dom.com/192.168.3.209 address=/3.168.192.in-addr.arpa/192.168.3.209 dom.com - web-сервер за другим шлюзом
Всем спасибо на помощь.
Исходная версия S_Paul, :
Итак, сейчас всё работает(похоже) и выглядит так:
cat /etc/network/interfaces : allow-hotplug eth0 iface eth0 inet static address 192.168.1.251 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 up /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth1 -j SNAT --to-source 192.168.10.5 up /sbin/iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth2 -j SNAT --to-source 192.168.4.5 allow-hotplug eth1 iface eth1 inet static address 192.168.10.5 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 allow-hotplug eth2 iface eth2 inet static address 192.168.4.5 netmask 255.255.255.0 network 192.168.4.0 broadcast 192.168.4.255 gateway 192.168.4.1 post-up route add -net 192.168.3.0/24 gw 192.168.10.1 cat /etc/resolv.conf : nameserver 127.0.0.1 nameserver 192.168.4.1 в /etc/dnsmasq.conf добавлено: address=/.dom.com/192.168.3.209 address=/3.168.192.in-addr.arpa/192.168.3.209 dom.com - web-сервер за другим шлюзом