[root@F5:Active] ~ # b list datastor { low water mark 80 high water mark 90 } deduplication {} shell write partition Common route default inet { gateway 192.168.3.1 } profile http my_HTTP_1_http_profile { defaults from http-lan-optimized-caching compress content type include { "text/" "application/(xml|x-javascript)" "application/pdf" } } profile persist my_HTTP_1_persist_profile { defaults from cookie mode cookie } profile tcp my_HTTP_1_lan-optimized_tcp_profile { defaults from tcp-lan-optimized } node 10.0.0.41 {} node 10.0.0.51 {} node 172.16.0.5 {} node 172.16.0.9 {} node 172.16.0.10 {} node 172.16.0.11 {} node 172.16.0.12 {} node 192.168.3.5 {} node 192.168.3.9 {} node 192.168.3.10 {} pool Pool-Http { monitor all http members { 10.0.0.41:http {} 10.0.0.51:http {} } } pool my_HTTP_1_pool { monitor all http members { 192.168.3.5:http { priority 1 } 192.168.3.9:http { priority 1 } 192.168.3.10:http { priority 1 } } } pool mypool { monitor all http members { 172.16.0.5:http { priority 1 } 172.16.0.9:http { priority 1 } } } pool neo { monitor all http members { 172.16.0.5:http { monitor http } 172.16.0.9:http {} } } virtual TEST_HTTP { snat automap pool neo destination 172.16.0.25:http ip protocol tcp profiles { http-lan-optimized-caching {} tcp {} } } virtual VS-HTTP { snat automap pool Pool-Http destination 192.168.3.21:http ip protocol tcp persist source_addr profiles { http-lan-optimized-caching {} tcp {} } } virtual my_HTTP_1_virtual_server { snat automap pool my_HTTP_1_pool destination 192.168.3.11:http ip protocol tcp persist my_HTTP_1_persist_profile profiles { my_HTTP_1_http_profile {} my_HTTP_1_lan-optimized_tcp_profile {} } } virtual myvs { snat automap pool mypool destination 192.168.3.22:http ip protocol tcp persist source_addr profiles { http-wan-optimized-compression-caching {} tcp {} } }
[root@test:Active] config # b export /tmp/test.txt
[root@test:Active] config # cat /tmp/test.txt.scf provision apm {} provision asm {} provision gtm {} provision lc {} provision ltm { level nominal } provision psm {} provision wam { level nominal } provision wom {} provision woml {} mgmt 192.168.1.245 { netmask 255.255.255.0 } trunk trunk_1-2 { interfaces { 1.1 1.2 } } stp instance 0 { trunks trunk_1-2 { external path cost 20000 internal path cost 20000 } vlans Internal } self allow { default { tcp ssh tcp domain tcp snmp tcp https tcp f5-iquery udp domain udp snmp udp efs udp cap udp f5-iquery udp 12400 udp 12402 udp 12406 proto ospf } } partition Common { description "Repository for system objects and shared objects." } shell write partition Common vlan Internal { tag 4094 trunks trunk_1-2 } self 172.16.0.4 { netmask 255.255.255.0 vlan Internal allow all } user root { password crypt "$1$uNkiFcga$OiOWGbn5Kh58mJTNh1IIl0" } user admin { password crypt "$1$mZxbi34f$N8nxG2XDZtMG2esku1e1U/" group 500 home "/home/admin" shell "/bin/false" role administrator in all } failover { standby link down time 0 } ntp { timezone "Asia/Hong_Kong" } system { gui setup disable hostname "test.f5.com" mgmt dhcp disable } # No partition datastor { low water mark 80 high water mark 90 } deduplication {} shell write partition Common route default inet { gateway 172.16.0.254 } monitor my_HTTP_user_monitor { defaults from http interval 30 timeout 91 } profile httpclass httpclass { pool none redirect none url rewrite none asm disable wa enable hosts none paths none headers none cookies none } profile httpclass httpclass_new { defaults from httpclass pool none redirect none wa disable hosts none paths none headers none cookies none } profile http http_new { defaults from http-wan-optimized-compression-caching ramcache enable ramcache size 300mb ramcache max entries 10000 ramcache max age 86400 ramcache min object size 0 ramcache max object size 2M ramcache ignore client cache control all ramcache aging rate 9 ramcache insert age header enable ramcache uri exclude none ramcache uri include none ramcache uri pinned none } profile http my_HTTP_nginx_http_profile { defaults from http-wan-optimized-compression compress content type include { "text/" "application/vnd.ms-publisher" "application/(xml|x-javascript|javascript|x-ecmascript|ecmascript)" "application/(word|doc|msword|winword|ms-word|x-word|x-msword|vnd.word|vnd.msword|vnd.ms-word)" "application/(xls|excel|msexcel|ms-excel|x-excel|x-xls|xmsexcel|x-ms-excel|vnd.excel|vnd.msexcel|vnd.ms-excel)" "application/(powerpoint|mspowerpoint|ms-powerpoint|x-powerpoint|x-mspowerpoint|vnd.powerpoint|vnd.mspowerpoint |vnd.ms-powerpoint|vnd.ms-pps)" "application/(mpp|msproject|x-msproject|x-ms-project|vnd.ms-project)" "application/(visio|x-visio|vnd.visio|vsd|x-vsd|x-vsd)" "application/(pdf|x-pdf|acrobat|vnd.pdf)" } } profile http my_HTTP_user_http_profile { defaults from http-wan-optimized-compression compress content type include { "text/" "application/vnd.ms-publisher" "application/(xml|x-javascript|javascript|x-ecmascript|ecmascript)" "application/(word|doc|msword|winword|ms-word|x-word|x-msword|vnd.word|vnd.msword|vnd.ms-word)" "application/(xls|excel|msexcel|ms-excel|x-excel|x-xls|xmsexcel|x-ms-excel|vnd.excel|vnd.msexcel|vnd.ms-excel)" "application/(powerpoint|mspowerpoint|ms-powerpoint|x-powerpoint|x-mspowerpoint|vnd.powerpoint|vnd.mspowerpoint |vnd.ms-powerpoint|vnd.ms-pps)" "application/(mpp|msproject|x-msproject|x-ms-project|vnd.ms-project)" "application/(visio|x-visio|vnd.visio|vsd|x-vsd|x-vsd)" "application/(pdf|x-pdf|acrobat|vnd.pdf)" } } profile persist my_HTTP_nginx_persist_profile { defaults from cookie mode cookie } profile persist my_HTTP_user_persist_profile { defaults from cookie mode cookie } profile tcp my_HTTP_nginx_lan-optimized_tcp_profile { defaults from tcp-lan-optimized } profile tcp my_HTTP_nginx_wan-optimized_tcp_profile { defaults from tcp-wan-optimized } profile tcp my_HTTP_user_lan-optimized_tcp_profile { defaults from tcp-lan-optimized } profile tcp my_HTTP_user_wan-optimized_tcp_profile { defaults from tcp-wan-optimized } profile tcp tcp-lan { defaults from tcp-lan-optimized keep alive interval 1200 } profile tcp tcp-wan { defaults from tcp-wan-optimized keep alive interval 1200 } node 10.0.0.24 {} node 10.0.0.25 {} node 10.0.0.26 {} node 10.0.0.31 { session user disabled } node 10.0.0.68 {} node 10.0.0.69 {} node 172.16.0.5 {} node 172.16.0.6 {} node 172.16.0.22 { session user disabled } node 172.16.0.23 { session user disabled } node 192.168.80.197 { session user disabled } pool my_HTTP_nginx_pool { lb method member least conn monitor all http members { 10.0.0.68:http {} 10.0.0.69:http {} 172.16.0.5:http { priority 1 session user disabled } 172.16.0.6:http { priority 1 session user disabled } } } pool my_HTTP_user_pool { lb method member least conn monitor all my_HTTP_user_monitor members { 10.0.0.24:http { priority 1 } 10.0.0.25:http { priority 1 } 10.0.0.26:http { priority 1 } } } pool neo-nginx { lb method least conn monitor all http members { 172.16.0.5:http {} 172.16.0.6:http {} } } virtual my_HTTP_nginx_virtual_server { snat automap pool my_HTTP_nginx_pool destination 172.16.0.50:http ip protocol tcp persist my_HTTP_nginx_persist_profile profiles { my_HTTP_nginx_http_profile {} my_HTTP_nginx_lan-optimized_tcp_profile { serverside } my_HTTP_nginx_wan-optimized_tcp_profile { clientside } } } virtual my_HTTP_user_virtual_server { snat automap pool my_HTTP_user_pool destination 172.16.0.51:http ip protocol tcp persist my_HTTP_user_persist_profile profiles { my_HTTP_user_http_profile {} my_HTTP_user_lan-optimized_tcp_profile { serverside } my_HTTP_user_wan-optimized_tcp_profile { clientside } } } virtual neo-nginx-vs { pool neo-nginx destination 172.16.0.52:http ip protocol tcp profiles { http-wan-optimized-compression-caching {} tcp {} } }
[root@test:Active] config # b import /tmp/test.txt.scf Saving configuration to /var/local/scf/.backup-0.scf. Reading configuration from /config/low_profile_base.conf. Reading configuration from /defaults/config_base.conf. Reading configuration from /usr/share/monitors/base_monitors.conf. Reading configuration from /config/profile_base.conf. Reading configuration from /config/daemon.conf. Reading configuration from /tmp/test.txt.scf. Renaming /var/local/scf/.backup-0.scf to /var/local/scf/backup.scf. Loading the configuration ...