summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul C. Buetow <paul@buetow.org>2014-05-16 17:49:42 +0200
committerPaul C. Buetow <paul@buetow.org>2014-05-16 17:49:42 +0200
commitb5a64c14f6ad75add778b79dd57b97a76db5b2be (patch)
treee6645b08429eaa7c5fa4c82bb58111d9a26e1d5f
parent5da9b1d1dc99ae5550ff91ed09035f9ff2bf9469 (diff)
documentation
-rw-r--r--docs/fapi.pod4
-rwxr-xr-xsrc/fapi2
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/fapi.pod b/docs/fapi.pod
index e7a7bd1..21b9683 100644
--- a/docs/fapi.pod
+++ b/docs/fapi.pod
@@ -121,6 +121,10 @@ A simple nPath service can be created as follows.
fapi vserver myvserver.example.com:443 create PROTOCOL_TCP nPath
fapi vserver myvserver.example.com:443 set pool foopool
+ # Restrict the vserver to a specific VLAN (IMPORTANT! security
+ # hole otherwise!)
+ fapi vserver myvserver.example.com:443 set vlans VLANNAME
+
# Put the VirtualAddress of the vserver into a specific traffic group
fapi vip myserver.example.com set tgroup some-traffic-group
diff --git a/src/fapi b/src/fapi
index 55c0bcc..5a8515c 100755
--- a/src/fapi
+++ b/src/fapi
@@ -93,7 +93,7 @@ class FapiBase(object):
' vserver NAME set nat|pat disabled|enabled',
' vserver NAME set pool POOLNAME',
' vserver NAME set snat automap|none'
- ' vserver NAME set vlans list[,of,vlans,to,allow]',
+ ' vserver NAME set vlans [list,of,vlans,to,allow]',
+ reset,
'The following partially needs admininstrator privileges on / and /Common',
style +