Displaying 1 result from an estimated 1 matches for "65535mark".
2010 Jun 01
4
Slightly OT: trying to mangle packets from Asterisk for a multiple ISP setup (reward)
....22 dev eth1 src 22.22.22.21
BUT I can't reliably know where the phones come from (long story), or what
IP they use (ISP1 or ISP2) to connect to me. So instead, I have done this
with iptables:
MARK all -- anywhere STRING match "22.22.22.21" ALGO
name bm TO 65535MARK set 0x64
Basically saying to mark all packets that have the string "22.22.22.21" in
it's SIP content (meaning they came in on NIC2 originally because the phone
registered to 22.22.22.21) with mark 0x64. And that works fine, because
another rule that LOGs these marked packets is l...