Merge pull request #60 from cedwards/docs_update
updating network documentation with seeded IP
This commit is contained in:
@@ -75,7 +75,9 @@ First, create the loopback interface:
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
ishmael ~ # sysrc cloned_interfaces+=lo1
|
ishmael ~ # sysrc cloned_interfaces+=lo1
|
||||||
|
ishmael ~ # sysrc ifconfig_lo1_name="bastille0"
|
||||||
ishmael ~ # service netif cloneup
|
ishmael ~ # service netif cloneup
|
||||||
|
ishmael ~ # ifconfig bastille0 inet 10.17.89.10
|
||||||
```
|
```
|
||||||
|
|
||||||
Second, enable the firewall:
|
Second, enable the firewall:
|
||||||
@@ -95,7 +97,7 @@ set block-policy drop
|
|||||||
scrub in on $ext_if all fragment reassemble
|
scrub in on $ext_if all fragment reassemble
|
||||||
|
|
||||||
set skip on lo
|
set skip on lo
|
||||||
nat on $ext_if from lo1:network to any -> ($ext_if)
|
nat on $ext_if from bastille0:network to any -> ($ext_if)
|
||||||
|
|
||||||
## rdr example
|
## rdr example
|
||||||
## rdr pass inet proto tcp from any to any port {80, 443} -> 10.17.89.45
|
## rdr pass inet proto tcp from any to any port {80, 443} -> 10.17.89.45
|
||||||
@@ -113,7 +115,7 @@ out.
|
|||||||
Note: if you have an existing firewall, the key lines for in/out traffic to jails are:
|
Note: if you have an existing firewall, the key lines for in/out traffic to jails are:
|
||||||
|
|
||||||
```
|
```
|
||||||
nat on $ext_if from lo1:network to any -> ($ext_if)
|
nat on $ext_if from bastille0:network to any -> ($ext_if)
|
||||||
|
|
||||||
## rdr example
|
## rdr example
|
||||||
## rdr pass inet proto tcp from any to any port {80, 443} -> 10.17.89.45
|
## rdr pass inet proto tcp from any to any port {80, 443} -> 10.17.89.45
|
||||||
|
|||||||
Reference in New Issue
Block a user