[mpls-linux-general] DNAT & MPLS
Status: Beta
Brought to you by:
jleu
|
From: Antonio M. <ant...@mu...> - 2003-07-09 12:46:48
|
Hello, I ma doing some testing with Linux + MPLS (/proc/net/mpls_version = 01010702) My test network is made by a front-end dispatcher (public IP address) that receive MPLS traffic and many back-end servers (private IP address). I'd like to dispatch the incoming traffic directed to the public IP address based on the MPLS label it carries. Simple Net: client ---> dispatcher (130.192.a.b) -->n back-end (192.168.c.x) let's assume a client send IP traffic to 130.192.a.b (dispatcher) with a MPLS label = 255 I'd like to set an iptables rule on the dispatcher as: iptables -t nat -A PREROUTING -d 130.192.a.b -j DNAT --to 192.168.c.x this works fine for IP. How can I modify it to match the MPLS label (255)? Is there a way to match an incoming packet based on the MPLS it carries? Thanks a lot and excuse my English :))) Antonio |