I am running an OpenVPN client on my Raspberry Pi, which is running Xbian, a variant of Debian. Currently all traffic goes through the VPN, but I'd like to set certain applications to use the regular network interface. After some googling it seemed the best solution was to use iptables.
I've been trying to set port 7000,6697 and 9999 to only use eth0 but iptables isn't cooperating. When I do:
sudo iptables -A PREROUTING -i eth0 -t mangle -p tcp --dports 7000,6697,9999 -j MARK --set-mark 1
All I get is
iptables v1.4.18: unknown option "--dports"
I've tried recompiling from the latest tarballs but there was no difference. Any ideas what I could do?