Re: [mpls-linux-general] DNAT & MPLS
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2003-07-09 21:59:19
|
What if you could mark the packet based on incoming label (nfmark or tcindex)? Would that help? On Wed, Jul 09, 2003 at 02:46:30PM +0200, Antonio Mancuso wrote: > 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 > > > > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu |