Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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

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

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

Is it possible maybe with iptables ?

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

share|improve this question

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

This question was marked as an exact duplicate of an existing question.

you are certainly looking for this ? tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.simple.html, also you should complete your question with your OS and what your have try already – Kiwy Feb 18 '14 at 11:15

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

share|improve this answer

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