Сегодня samba заработала сама по себе
Настроил ssh
ifconfig
eth0 Link encap:Ethernet HWaddr c4:e9:84:00:f3:ab
inet addr:192.168.1.39 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:253 errors:0 dropped:0 overruns:0 frame:0
TX packets:39 errors:0 dropped:0 overruns:0 carrier:39
collisions:0 txqueuelen:1000
RX bytes:31708 (31.7 KB) TX bytes:10404 (10.4 KB)
eth1 Link encap:Ethernet HWaddr 00:0a:e6:89:5c:e9
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::20a:e6ff:fe89:5ce9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4283 errors:0 dropped:0 overruns:0 frame:0
TX packets:2271 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:384948 (384.9 KB) TX bytes:272378 (272.3 KB)
eth2 Link encap:Ethernet HWaddr c4:e9:84:00:e2:e4
inet addr:192.168.11.1 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fe80::c6e9:84ff:fe00:e2e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40667 errors:0 dropped:37 overruns:0 frame:0
TX packets:2227 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8635430 (8.6 MB) TX bytes:221213 (221.2 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:315 errors:0 dropped:0 overruns:0 frame:0
TX packets:315 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20863 (20.8 KB) TX bytes:20863 (20.8 KB)
nano /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# интернет
auto eth0
iface eth0 inet dhcp
# сеть1
auto eth1
iface eth1 inet static
address 192.168.10.1
netmask 255.255.255.0
# сеть2
auto eth2
iface eth2 inet static
address 192.168.11.1
netmask 255.255.255.0
pre-up iptables-restore < /etc/iptables.up.rules
pre-up iptables-restore < /etc/iptables.up.rules
nano /etc/dnsmasq.conf
no-dhcp-interface=eth0
interface=eth1
dhcp-range=eth1,192.168.10.100,192.168.10.200,7d
dhcp-option=eth1,2,255.255.255.0
dhcp-option=eth1,3,192.168.10.1
interface=eth2
dhcp-range=eth2,192.168.11.100,192.168.11.200,7d
dhcp-option=eth2,2,255.255.255.0
dhcp-option=eth2,3,192.168.11.1
nano /etc/iptables.up.rules
# Generated by iptables-save v1.4.21 on Fri Apr 8 16:59:06 2016
*nat
:PREROUTING ACCEPT [1:229]
:INPUT ACCEPT [1:229]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Fri Apr 8 16:59:06 2016
# Generated by iptables-save v1.4.21 on Fri Apr 8 16:59:06 2016
*filter
:INPUT ACCEPT [17984:1638127]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2263:254999]
COMMIT
# Completed on Fri Apr 8 16:59:06 2016
iptables -L -v
Chain INPUT (policy ACCEPT 108 packets, 8233 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 42 packets, 4151 bytes)
pkts bytes target prot opt in out source destination
iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 11 packets, 1446 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 5 packets, 678 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 2 packets, 142 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 2 packets, 142 bytes)
pkts bytes target prot opt in out source destination
Если я правильно понял это то что вы просили, даже чуть больше ).
Еще просьба, обратите пожалуйста внимание на настройки dnsmasq.conf, все ли там правильно, я уже на несколько раз все просмотрел, по моему все верно, но dhcp на eth2 не хочет работать. Может там какая опечатка, а я её не замечаю.