Hi all,
I'm trying to have a setup similar to the following but so far failing : Dedicate NIC to local traffic only
I have two NICs installed (eth0 and eth1) and want to route all outbound (Internet) traffic from Sabnzbd to eth1 (UID 'sabnzbd'), so from reading above added the below iptables rules:
Code
sudo iptables -A OUTPUT -m owner --uid-owner sabnzbd -d 192.168.0.0/24 -j ACCEPT
sudo iptables -A OUTPUT -m owner --uid-owner sabnzbd \! -o eth1 -j REJECT
However, Sabnzbd fails to connect (no error message, just downloads are not starting). Flushing the iptables rules makes it work again (although I can see from ifconfig that traffic then routes over eth0).
What I have observed is that ping on interface eth1 does not resolve - which makes me think it's a gateway issue (?):
Code
root@koopa:~# ping -I eth0 www.openmediavault.org
PING www.openmediavault.org (178.254.11.33) from 192.168.0.3 eth0: 56(84) bytes of data.
64 bytes from sh16-41.1blu.de (178.254.11.33): icmp_req=1 ttl=52 time=31.1 ms
64 bytes from sh16-41.1blu.de (178.254.11.33): icmp_req=2 ttl=52 time=31.2 ms
^C
--- www.openmediavault.org ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 31.196/31.202/31.208/0.006 ms
root@koopa:~# ping -I eth1 www.openmediavault.org
PING www.openmediavault.org (178.254.11.33) from 192.168.1.117 eth1: 56(84) bytes of data.
From koopa (192.168.1.117) icmp_seq=1 Destination Host Unreachable
From koopa (192.168.1.117) icmp_seq=2 Destination Host Unreachable
From koopa (192.168.1.117) icmp_seq=3 Destination Host Unreachable
^C
--- www.openmediavault.org ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3014ms
pipe 3
Alles anzeigen
Can anyone advise on what could be going wrong? Let me know if more information required.
Thanks,
Nicks