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.

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

I have my normal eth0 interface and an setup ppp0 interface, the problem I have is that I want to exclusively route all HTTP/HTTPS traffic through the ppp0 interface and everything else through the default eth0. I tried adding a route rule route add default dev ppp0 but of course this will route everything through the ppp0 interface, I might need iptables but I have no idea how.

share|improve this question

Assuming that http traffic will be limited to port 80 you could use the solution here

Sorry for the poor quality of my answer. Phone is not easy to master.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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