Forum Discussion

akhil_2877's avatar
akhil_2877
Icon for Nimbostratus rankNimbostratus
Jun 19, 2013

Please help me understand Link/Lasthop Irule

when CLIENT_ACCEPTED {

 

if { [format %s [LINK::lasthop]] equals "5c:5e:ab:4b:e0:00" || [format %s [LINK::lasthop]] equals "78:19:f7:00:c4:00" } {

 

lasthop /Common/SSICLIENTFACINGVLAN 00:00:5e:00:01:01

 

}

 

 

 

}

 

5 Replies

  • i am not sure why format command is needed. anyway, i understand this irule is to specify lasthop mac address for specific connections (i.e. if packet is coming from 5c:5e:ab:4b:e0:00 or 78:19:f7:00:c4:00, send return packet to 00:00:5e:00:01:01).
  • || is OR ?? || is AND?it is OR.

     

     

    expr

     

    http://tmml.sourceforge.net/doc/tcl/expr.html
  • Thanks could you please answer the other Post i postedi am not familiar with sip. anyway, i believe another guy here will help. :-)