Forum Discussion
Angus_2141
Jul 15, 2010Historic F5 Account
adding virtual servers via the cli
Hi,
I am able to create virtual servers from the command line and I have found the cli guide however for some reason I am having issues trying to do the following in the process of creating my virtual server
adding a fallback persist method
defining an ssl server profile
defining an ssl client profile
I just don't seem to see the option to define the ssl profiles and when I try to either enter a list of persist profiles to use the "fallback persist" method I generate a syntax error.
I have tried something like:
virtual vs-my-virtual-server { destination 10.10.15.15:443 profile http persist cookie fallback persist source addr rule my-custom-irule pool po-my-pool-servers }
or
virtual vs-my-virtual-server { destination 10.10.15.15:443 profile http persist cookie fallback persist 'source addr' rule my-custom-irule pool po-my-pool-servers }
or
virtual vs-my-virtual-server { destination 10.10.15.15:443 profile http persist cookie fallback persist (source addr) rule my-custom-irule pool po-my-pool-servers }
or
virtual vs-my-virtual-server { destination 10.10.15.15:443 profile http persist cookie source addr rule my-custom-irule pool po-my-pool-servers }
sample error:
BIGpipe parsing error:
012e0010:3: The requested value ((source addr)) is invalid (( | none)) for 'fallback persist' in 'virtual'
Thanks,
-ag
- Mark_Crosland_2Historic F5 Account
- Angus_2141Historic F5 AccountWell that was simple not sure how I missed that the persist profile was called source_addr but that worked of course. However, the other part of my question is not about how to create a client SSL or server SSL profile but rather how to assign them to the virtual server from the command line. I don't see an option in the CLI Guide under Virtual that shows me how to define the client and server ssl profiles.
- hoolio
Cirrostratus
Hi AG, - JRahm
Admin
Using bigpipe: - Angus_2141Historic F5 AccountThanks for the input on this question, the answer in the end was pretty straight forward. I took hoolio's comment and used the GUI to set it up and then checked the bigip.conf for the syntax. The ssl client and server certificates are just profiles so you just append them to your list of profiles like this:
- Nik
Cirrus
any chance you could post your script?
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