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

VFB's avatar
VFB
Icon for Cirrus rankCirrus
May 23, 2014

Adding source address perstince in TMOS

I'm trying to figure out how to add a source address profile to my VS and cannot see a clear cut way to doing it in TMOS. I'm trying to work on my command line skills. Any assistance would be great.

 

4 Replies

  • e.g.

    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
    ltm virtual bar {
        destination 172.28.24.10:80
        ip-protocol tcp
        mask 255.255.255.255
        pool foo
        profiles {
            tcp { }
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        vs-index 32
    }
    
    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) modify ltm virtual bar persist replace-all-with { source_addr }
    
    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
    ltm virtual bar {
        destination 172.28.24.10:80
        ip-protocol tcp
        mask 255.255.255.255
        persist {
            source_addr {
                default yes
            }
        }
        pool foo
        profiles {
            tcp { }
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        vs-index 32
    }
    
    • VFB's avatar
      VFB
      Icon for Cirrus rankCirrus
      thanks for the help. worked like a charm
  • e.g.

    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
    ltm virtual bar {
        destination 172.28.24.10:80
        ip-protocol tcp
        mask 255.255.255.255
        pool foo
        profiles {
            tcp { }
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        vs-index 32
    }
    
    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) modify ltm virtual bar persist replace-all-with { source_addr }
    
    root@(ve11a)(cfg-sync In Sync)(Active)(/Common)(tmos) list ltm virtual bar
    ltm virtual bar {
        destination 172.28.24.10:80
        ip-protocol tcp
        mask 255.255.255.255
        persist {
            source_addr {
                default yes
            }
        }
        pool foo
        profiles {
            tcp { }
        }
        source 0.0.0.0/0
        source-address-translation {
            type automap
        }
        vs-index 32
    }
    
    • VFB's avatar
      VFB
      Icon for Cirrus rankCirrus
      thanks for the help. worked like a charm