summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.version2
-rw-r--r--README.pod32
-rw-r--r--debian/changelog8
-rw-r--r--debian/files2
-rw-r--r--docs/fapi.138
-rw-r--r--docs/fapi.txt33
-rw-r--r--docs/synopsis.txt13
7 files changed, 108 insertions, 20 deletions
diff --git a/.version b/.version
index faef31a..39e898a 100644
--- a/.version
+++ b/.version
@@ -1 +1 @@
-0.7.0
+0.7.1
diff --git a/README.pod b/README.pod
index b5cfa9b..163b025 100644
--- a/README.pod
+++ b/README.pod
@@ -140,13 +140,39 @@ And everything can be deleted as folows:
fapi node fooserver1.example.com delete
fapi node fooserver2.example.com delete
-=head2 Setting up simple NAT Services
+=head2 Setting up simple HTTP NAT Services
- (Docu to be written)
+A simple HTTP NATed service can be created as follows.
+
+ # Create a NATed HTTP vserver
+ # fapi auto resolves the IP address.
+ fapi vserver myvserver.example.com:80 create PROTOCOL_TCP /Common/http
+
+ # Add the pool to the vserver.
+ fapi vserver myvserver.example.com:80 set pool foopool
+
+ # Add a NATed HTTPS vserver
+ fapi vserver myvserver.example.com:443 create PROTOCOL_TCP /Common/http
+ 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 vlan VLANNAME
+
+ # Put the VirtualAddress of the vserver into a specific traffic group
+ fapi vip myserver.example.com set tgroup some-traffic-group
+
+In order to make this work your application servers need to have setup a
+default route to the loadbalancers floating self IP.
=head2 Setting up simple SNAT Services
- (Docu to be written)
+Same as setting up a NATed services, but you don't need to configure default
+routes from your application servers to the loadbalancers floating self IP.
+
+You need also to set the SNAT flag as follows:
+
+ fapi vserver myvserver.example.com:443 set snat automap
=head2 About the NAME argument
diff --git a/debian/changelog b/debian/changelog
index a041bbc..5e32861 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+fapi (0.7.1) stable; urgency=low
+
+ * Add example how to create a NATed VirtualServer...
+ * Add example how to create a SNATed VirtualServer...
+ ... to the manpage
+
+ -- Paul Buetow <paul@buetow.org> Fri, 16 May 2014 20:01:48 +0200
+
fapi (0.7.0) stable; urgency=low
* Can also set and get the vlan of a vserver
diff --git a/debian/files b/debian/files
index 5a378c3..04da810 100644
--- a/debian/files
+++ b/debian/files
@@ -1 +1 @@
-fapi_0.7.0_all.deb utils optional
+fapi_0.7.1_all.deb utils optional
diff --git a/docs/fapi.1 b/docs/fapi.1
index 1dc317f..78b7cdb 100644
--- a/docs/fapi.1
+++ b/docs/fapi.1
@@ -124,7 +124,7 @@
.\" ========================================================================
.\"
.IX Title "FAPI 1"
-.TH FAPI 1 "2014-05-16" "fapi 0.7.0" "User Commands"
+.TH FAPI 1 "2014-05-16" "fapi 0.7.1" "User Commands"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
@@ -281,15 +281,41 @@ And everything can be deleted as folows:
\& fapi node fooserver1.example.com delete
\& fapi node fooserver2.example.com delete
.Ve
-.SS "Setting up simple \s-1NAT\s0 Services"
-.IX Subsection "Setting up simple NAT Services"
-.Vb 1
-\& (Docu to be written)
+.SS "Setting up simple \s-1HTTP\s0 \s-1NAT\s0 Services"
+.IX Subsection "Setting up simple HTTP NAT Services"
+A simple \s-1HTTP\s0 NATed service can be created as follows.
+.PP
+.Vb 3
+\& # Create a NATed HTTP vserver
+\& # fapi auto resolves the IP address.
+\& fapi vserver myvserver.example.com:80 create PROTOCOL_TCP /Common/http
+\&
+\& # Add the pool to the vserver.
+\& fapi vserver myvserver.example.com:80 set pool foopool
+\&
+\& # Add a NATed HTTPS vserver
+\& fapi vserver myvserver.example.com:443 create PROTOCOL_TCP /Common/http
+\& 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 vlan VLANNAME
+\&
+\& # Put the VirtualAddress of the vserver into a specific traffic group
+\& fapi vip myserver.example.com set tgroup some\-traffic\-group
.Ve
+.PP
+In order to make this work your application servers need to have setup a
+default route to the loadbalancers floating self \s-1IP\s0.
.SS "Setting up simple \s-1SNAT\s0 Services"
.IX Subsection "Setting up simple SNAT Services"
+Same as setting up a NATed services, but you don't need to configure default
+routes from your application servers to the loadbalancers floating self \s-1IP\s0.
+.PP
+You need also to set the \s-1SNAT\s0 flag as follows:
+.PP
.Vb 1
-\& (Docu to be written)
+\& fapi vserver myvserver.example.com:443 set snat automap
.Ve
.SS "About the \s-1NAME\s0 argument"
.IX Subsection "About the NAME argument"
diff --git a/docs/fapi.txt b/docs/fapi.txt
index 698a0cb..d875f43 100644
--- a/docs/fapi.txt
+++ b/docs/fapi.txt
@@ -128,11 +128,38 @@ EXAMPLES
fapi node fooserver1.example.com delete
fapi node fooserver2.example.com delete
- Setting up simple NAT Services
- (Docu to be written)
+ Setting up simple HTTP NAT Services
+ A simple HTTP NATed service can be created as follows.
+
+ # Create a NATed HTTP vserver
+ # fapi auto resolves the IP address.
+ fapi vserver myvserver.example.com:80 create PROTOCOL_TCP /Common/http
+
+ # Add the pool to the vserver.
+ fapi vserver myvserver.example.com:80 set pool foopool
+
+ # Add a NATed HTTPS vserver
+ fapi vserver myvserver.example.com:443 create PROTOCOL_TCP /Common/http
+ 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 vlan VLANNAME
+
+ # Put the VirtualAddress of the vserver into a specific traffic group
+ fapi vip myserver.example.com set tgroup some-traffic-group
+
+ In order to make this work your application servers need to have setup a
+ default route to the loadbalancers floating self IP.
Setting up simple SNAT Services
- (Docu to be written)
+ Same as setting up a NATed services, but you don't need to configure
+ default routes from your application servers to the loadbalancers
+ floating self IP.
+
+ You need also to set the SNAT flag as follows:
+
+ fapi vserver myvserver.example.com:443 set snat automap
About the NAME argument
In most cases NAME can be a hostname, FQDN or an IP address. Optionally
diff --git a/docs/synopsis.txt b/docs/synopsis.txt
index 054543f..8e7317c 100644
--- a/docs/synopsis.txt
+++ b/docs/synopsis.txt
@@ -1,4 +1,4 @@
-usage: fapi [-b B] [-e E] [-f F] [-h] [-i] [-l] [-n] [-v] [-V] [-C C]
+usage: fapi [-b B] [-d] [-e E] [-f F] [-h] [-i] [-l] [-n] [-v] [-V] [-C C]
[what] [name] [sub] [sub2] [sub3] [sub4] [sub5]
positional arguments:
@@ -12,19 +12,20 @@ positional arguments:
optional arguments:
-b B Forces to use the secified loadbalancer (overwrites -e)
+ -d Disable colorful output
-e E Env to use, e.g. dev,qa,live
-f F Overwrite partition/folder from fapi.conf
-h Print this help
-i Interactive shell
-l Use list output
- -n No color (disable colorful output)
+ -n No-op (don't do actual stuff)
-v Verbose
-V Print program version
-C C Config file
Synopsis:
- monitor
+ monitor
monitor NAME get desc|state
node
node NODENAME create|delete
@@ -50,9 +51,9 @@ Synopsis:
vserver NAME set nat|pat disabled|enabled
vserver NAME set pool POOLNAME
vserver NAME set snat automap|none
- vserver NAME set vlan [list,of,vlans,to,allow]
+ vserver NAME set vlan [list,of,vlans,to,allow]
The following partially needs admininstrator privileges on / and /Common
- -f Common -b balancer.example.com selfip
+ -f Common -b balancer.example.com selfip
-f Common -b balancer.example.com selfip NAME create NETMASK VLANNAME [TGROUP]
-f Common -b balancer.example.com selfip NAME delete
-f Common -b balancer.example.com selfip NAME get detail|tgroup
@@ -72,5 +73,5 @@ The following partially needs admininstrator privileges on / and /Common
-f / folder
-f / folder NAME create|delete
-f / folder NAME get detail|dgroup|tgroup
- -f / folder NAME set dgroup|tgroup DGROUP|TGROUP
+ -f / folder NAME set dgroup|tgroup DGROUP|TGROUP
Please consult the manpage for examples.