My raspberry pi is connected to a OpenVPN server on interface tun0. The internet connection is setup over a 3G/UMTS mobile stick(eth1).
How can I forward all traffic coming from tun0 to a device with a static ip-adress behind eth0(ethernet port) with iptables?
I added this rule to allow forwarding:
iptables -A FORWARD -i tun0 -o eth0 -j ACCEPT
But how can I route all traffic on a specific ip behind eth0?