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?
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:
Last edited by fukawi2 (2013-03-14 22:21:13)
so should i set the polecies to:
default = gw1
proto = udp gw2
(if eth0 = gw1;wlan0=gw2)
I will give it a trie, tanks.