Forum Discussion
nitass
Oct 23, 2012Employee
in case of external data group.
[root@ve11a:Active:Changes Pending] config cat /config/filestore/files_d/Common_d/data_group_d/\:Common\:port_translation_file_1
"12080" := "200.200.200.101:8080",
"12081" := "200.200.200.111:8080",
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm data-group external port_translation
ltm data-group external port_translation {
external-file-name port_translation_file
type string
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when HTTP_REQUEST {
set node_address_port [class match -value [TCP::local_port] equals /Common/port_translation]
log local0.info "Node address/port is $node_address_port"
node $node_address_port
}
}
packet trace
[root@ve11a:Active:Changes Pending] config ssldump -Aed -nni 0.0 port 12080 or port 8080 New TCP connection 1: 172.28.20.11(34534) <-> 172.28.19.252(12080)
1350976437.3284 (0.0009) C>S
---------------------------------------------------------------
HEAD /something HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252:12080
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.11(34534) <-> 200.200.200.101(8080)
1350976437.3315 (0.0010) C>S
---------------------------------------------------------------
HEAD /something HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252:12080
Accept: */*
---------------------------------------------------------------
[root@ve11a:Active:Changes Pending] config ssldump -Aed -nni 0.0 port 12081 or port 8080
New TCP connection 1: 172.28.20.11(49751) <-> 172.28.19.252(12081)
1350976511.4554 (0.0009) C>S
---------------------------------------------------------------
HEAD /something HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252:12081
Accept: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.11(49751) <-> 200.200.200.111(8080)
1350976511.4564 (0.0009) C>S
---------------------------------------------------------------
HEAD /something HTTP/1.1
User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Host: 172.28.19.252:12081
Accept: */*
---------------------------------------------------------------
log
[root@ve11a:Active:Changes Pending] config tail /var/log/ltm
Oct 23 15:13:22 tmm notice tmm[23647]: 013e0001:5: Tcpdump starting bcast on 127.1.1.2:2 from 127.1.1.1:33582
Oct 23 15:13:57 tmm info tmm[23647]: Rule /Common/myrule : Node address/port is 200.200.200.101:8080
Oct 23 15:14:43 tmm notice tmm[23647]: 013e0001:5: Tcpdump starting bcast on 127.1.1.2:2 from 127.1.1.1:47996
Oct 23 15:15:09 tmm notice tmm[23647]: 013e0001:5: Tcpdump starting bcast on 127.1.1.2:2 from 127.1.1.1:39223
Oct 23 15:15:11 tmm info tmm[23647]: Rule /Common/myrule : Node address/port is 200.200.200.111:8080
Oct 23 15:15:13 tmm notice tmm[23647]: 013e0002:5: Tcpdump stopping on 127.1.1.2:2 from 127.1.1.1:39223