You are not logged in.
Hi everyone,
I have a wierdproblem.
I have two network interfaces (wired and wireless).
My wired connection is realy fast and i want to use it for all TCP connections.
However, it does not accept UDP. (firewall witch i dont controll and stuf like that)
So i tought, maby i can send the UDP over wlan0 instead of eth0.
Would it me posible to split the networking so UDP goes to wlan0 and TCP goes to eth0?
Joran
Offline
What you're talking about is policy based routing. You basically create multiple routing tables (2 in your case; 1 with a default route via your eth0 and 1 with a default route via wlan0), then use netfilter to attach "marks" to different packets. These marks are then handled by the different routing tables.
I wrote this tool some time ago to generate a script that does this for you; it's not very polished, but it might help you get going:
https://github.com/fukawi2/pb-route
EDIT: spelling
Last edited by fukawi2 (2013-03-14 22:21:13)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Nice,
so should i set the polecies to:
default = gw1
proto = udp gw2
(if eth0 = gw1;wlan0=gw2)
I will give it a trie, tanks.
Offline
That sounds about right; let me know how you go
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline