0

This question already has an answer here:

i have a dd-wrt router (ip 192.168.1.1) with the following network interfaces:

  • eth0
  • ath0
  • ppp0 (a pptp vpn client)

i would like to route all traffic from ip 192.168.1.10 to 192.168.1.20 through ppp0 interfaces.

Is it possible maybe with iptables ?

EDIT: i'm using dd-wrt v24sp2 running i think busybox

marked as duplicate by Hauke Laging, Anthon, Zelda, Timo, slm Feb 18 '14 at 12:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

You need policy routing in order to do that i.e. several routing tables and a rule set to determine which table to use for a certain packet.

This is explained in the answer to a similar question:

Route SSH to host through interface

Not the answer you're looking for? Browse other questions tagged or ask your own question.