Skip to content

Instantly share code, notes, and snippets.

@nhooyr
Created January 8, 2016 23:46
Show Gist options
  • Save nhooyr/8e815ec0dd586377cdaf to your computer and use it in GitHub Desktop.
Save nhooyr/8e815ec0dd586377cdaf to your computer and use it in GitHub Desktop.
I have two wireless cards connected to my rpi. I want to use one of them as a access point and connect to the internet at the same time (yes one of my cards supports this). The other one is connected to the internet at the same time as well. wl0 is the one that only connects to the internet. wl1 is the interface of the special card connected to the internet. wl1_ap is the ap interface for the same card. Now I want to configure it so that all normal traffic from the rpi goes through wl0 but traffic coming from wl1_ap goes through wl1. I already added multiple default routes via ip rule but it doesn't seem to work very well (stability). Is there any other way I can do this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment