Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question

marked as duplicate by Hauke Laging, Anthon, Zelda, Timo, slm Feb 18 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.

    
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 at 11:15

1 Answer 1

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.