A linux machine is connected to internet over two interfaces ppp0 and ppp1 using two modems. Also this machine acts as wireless access point through an interface say, eth0 with ip address and acts as gateway for the connected devices through this network with subnet mask

Now is it possible to achieve the following:

When any of the connected devices through wireless AP needs internet connection linux machine has to use ppp1 interface for internet.

If any of the applications on the linux machine needs internet connection linux machine should use ppp0 interface for the internet.

Can this be achieved by adding rules to chains in filter/nat tables?

If the kernel routing table has a default rule to route the default traffic through interface ppp0, wil kernel completely ignore ppp1 for internet?

PS: new to networking and routing concepts, If the question is not clear leave a comment, will try to give more information.


This site may be of interest to you - it's not 100% what you are wanting to achieve but it may give you some pointers - or some ideas of what else you can to.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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