bahrampeymani
Mar 06, 2024Nimbostratus
ISO 8583 pos transaction and one connect (multiplext to backend server)
Hello i have many pos and what connect to F5 for manage and loadbalance - all connection send to F5 and want to one session ( one connect ) multiplex like this pic
my v:
ltm virtual TEST {
cmp-enabled no
destination 192.168.1.27:2022
ip-protocol tcp
mask 255.255.255.255
pool TEST_POOL
profiles {
TEST-ISO { }
profile_mblb { }
tcp { }
}
rules {
TEST-3
}
serverssl-use-sni disabled
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
vs-index 2
}
my: mblb
ltm profile mblb profile_mblb {
defaults-from /Common/mblb
egress-high 1000
egress-low 900
ingress-high 1000
ingress-low 900
isolate-abort enabled
isolate-client disabled
isolate-expire enabled
isolate-server enabled
}
my: oneconnect
ltm profile one-connect TEST-ISO {
app-service none
defaults-from oneconnect
idle-timeout-override disabled
limit-type none
max-age 86400
max-reuse 1000
max-size 1
share-pools disabled
source-mask any
}
irule:
when CLIENT_ACCEPTED {
log local0. "[IP::client_addr]"
#LB::context_id "server"
TCP::collect
}
when CLIENT_DATA {
if {[binary scan [TCP::payload] S length] == 1 && [expr { ($length & 0xffff) +2 }] == [TCP::payload length]} {
log local0. "This packet length meets header length value : Header value : [expr { ($length & 0xffff) }] / Packet Length : [TCP::payload length]"
TCP::release
TCP::notify request
TCP::collect
} else {
log local0. "This packet length doesn't meet header length value... this is not a valid ISO 8583 packet. reject the connection"
reject
}
}
when USER_REQUEST {
TCP::notify response
LB::detach
}
can help me ?
plz