For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

aj1's avatar
aj1
Icon for Nimbostratus rankNimbostratus
Sep 10, 2015

Getting the outside-to-inside NAT mapping using iControl

Trying to map an outside IP to an inside IP. I can get mappings the other way around, that is inside-to-outside, using

get_active_connection_v2
. The inside address is
cs-client-addr
and the outside is
ss-client-addr
.

I can use

cs-client-addr
as a parameter in
get_active_connection_v2
, but not
ss-client-addr
.

Example:

show /sys connection ss-client-addr 197.72.211.61
Sys::Connections
172.25.46.124%4:62262  107.21.224.38%4:443  197.72.211.61:1064  107.21.224.38:443  tcp  119  (slot/tmm: 1/0)  none

>>>import bigsuds
>>>b.System.Connections.get_active_connection_v2(cs_client, cs_server, protocol, ss_server)
[
    {
        "clientside_bytes_in": {
            "high": 0, 
            "low": 116
        }, 
        "clientside_bytes_out": {
            "high": 0, 
            "low": 60
        }, 
        "clientside_packets_in": {
            "high": 0, 
            "low": 2
        }, 
        "clientside_packets_out": {
            "high": 0, 
            "low": 1
        }, 
        "connection_id": {
            "clientside_client": {
                "address": "172.25.46.124%4", 
                "port": 62262
            }, 
            "clientside_server": {
                "address": "107.21.224.38%4", 
                "port": 443
            }, 
            "protocol": "PROTOCOL_TCP", 
            "serverside_server": {
                "address": "107.21.224.38", 
                "port": 443
            }
        }, 
        "idle_time": 213, 
        "idle_timeout": 213, 
        "lasthop_info": "/Common/VLAN_4708 2c:11:62:75:b5:c1", 
        "serverside_bytes_in": {
            "high": 0, 
            "low": 60
        }, 
        "serverside_bytes_out": {
            "high": 0, 
            "low": 116
        }, 
        "serverside_client": {
            "address": "197.72.211.61", 
            "port": 1064
        }, 
        "serverside_packets_in": {
            "high": 0, 
            "low": 1
        }, 
        "serverside_packets_out": {
            "high": 0, 
            "low": 2
        }, 
        "traffic_group": "/Common/traffic-group-1", 
        "virtual_path": {
            "address": "0.0.0.0", 
            "port": 0
        }
    }
]

Thanks in advance!