You are not logged in.

#1 2013-03-14 15:28:24

jorants
Member
Registered: 2013-01-25
Posts: 7

UDP over other interface

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

#2 2013-03-14 22:20:39

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: UDP over other interface

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)

Offline

#3 2013-03-15 08:52:43

jorants
Member
Registered: 2013-01-25
Posts: 7

Re: UDP over other interface

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

#4 2013-03-16 09:44:00

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,223
Website

Re: UDP over other interface

That sounds about right; let me know how you go smile

Offline

Board footer

Powered by FluxBB