Forum Discussion
Sharon_Lucas_55
Nimbostratus
Apr 28, 2010Problem creating a SNAT
Hi, we're using the F5's iControl SDK to create a Java application that automates configuring the F5 Proxy. Everything is working except for when we try to create a SNAT.
When using a web b...
Sharon_Lucas_55
Nimbostratus
Apr 29, 2010I fiigured this out. Using the following code to set the original_addresses and vlans when creating the SNAT works.
// To specify "All addresses", specify "0.0.0.0" for the
// original_address and for the wildmask
iControl.LocalLBSNATSNATOriginalAddress snatAddress =
new iControl.LocalLBSNATSNATOriginalAddress(
"0.0.0.0", "0.0.0.0");
iControl.LocalLBSNATSNATOriginalAddress[][] snatAddresses =
{ { snatAddress } };
// To specify all VLANs, set the state to disabled and set the
// VLANFilterList to an empty list
String[] vlans = {};
iControl.CommonVLANFilterList vlanFilterList =
new iControl.CommonVLANFilterList(
iControl.CommonEnabledState.STATE_DISABLED, vlans);
iControl.CommonVLANFilterList[] vlanFilters = { vlanFilterList };
m_snat.create(snats, snatAddresses, vlanFilters);
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects