Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I am trying to test some network properties with a (partially self written) tool chain. As I would like to use one device with two WLAN adapters / interfaces, I have to prevent communication over the loopback interface and create real network traffic. The test inspects functionality, including ping, arp, multicast etc.

How do I force process 1 to use interface wlan1 only and process 2 the interface wlan2? I guess, this is a job for some magic iptables rules set?

share|improve this question… – bain Dec 7 '14 at 17:23

There seems to be a way developed by Daniel Ryde, which uses a self developed c-programm, which tells the dynamic linker to first load all libs into the process you want to run and then add some more ontop of it.

This explanation at and this discussion on Daniel Lange's blog may be helpful, but is there really no way to do it with the Ubuntu/Linux build-in tools?

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.