Forum Discussion
nitass
Oct 23, 2012Employee
it seems okay to me.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar
ltm virtual bar {
destination 172.28.19.252:0
ip-protocol tcp
mask 255.255.255.255
profiles {
http { }
tcp { }
}
rules {
myrule
}
snat automap
vlans-disabled
}
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
}
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm data-group internal port_translation
ltm data-group internal port_translation {
records {
12080 {
data 200.200.200.101:8080
}
}
type string
}
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(34527) <-> 172.28.19.252(12080)
1350968783.1644 (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: */*
---------------------------------------------------------------
New TCP connection 2: 200.200.200.11(34527) <-> 200.200.200.101(8080)
1350968783.1654 (0.0007) 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: */*
---------------------------------------------------------------
log
[root@ve11a:Active:Changes Pending] config tail /var/log/ltm
Oct 23 13:06:21 tmm notice tmm[23647]: 013e0001:5: Tcpdump starting bcast on 127.1.1.2:2 from 127.1.1.1:49831
Oct 23 13:06:23 tmm info tmm[23647]: Rule /Common/myrule : Node address/port is 200.200.200.101:8080
Oct 23 13:06:25 tmm notice tmm[23647]: 013e0002:5: Tcpdump stopping on 127.1.1.2:2 from 127.1.1.1:49831