Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computers:truenas:gateway [03-Nov-2021 11:39] – [Activating the Configuration] Steve Joynt | computers:truenas:gateway [02-Feb-2025 16:14] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 70: | Line 70: | ||
< | < | ||
- | jexec " | + | jexec " |
- | | + | |
- | jexec " | + | jexec " |
- | "cat >| ${NAT_CONF:? | + | |
- | <<END | + | |
use_sockets yes | use_sockets yes | ||
Line 82: | Line 79: | ||
END | END | ||
- | </ | + | # public gateway interface needs nat |
+ | jexec " | ||
- | ====== Configuring a Simple Firewall ====== | + | # extra settings for nat are in the file we defined above |
+ | jexec " | ||
- | < | + | </code> |
- | # enable IP forwarding | + | ====== Configure a Simple Firewall ====== |
- | jexec " | + | |
- | # enable | + | > IMPORTANT! |
- | jexec "ioc-${JAIL_NAME:? | + | > This firewall |
+ | > At this stage I just want to trigger NAT as appropriate to allow hosts on different networks to communicate. | ||
+ | > The "real" | ||
+ | > If your TrueNAS box connects directly to the Internet, DO NOT USE THIS EXAMPLE !!! | ||
+ | |||
+ | < | ||
# use the standard firewall template called " | # use the standard firewall template called " | ||
Line 106: | Line 109: | ||
< | < | ||
+ | |||
+ | # enable IP forwarding | ||
+ | jexec " | ||
+ | |||
+ | # enable the firewall service (aka ipfw) | ||
+ | jexec " | ||
+ | |||
+ | # enable the NAT service | ||
+ | jexec " | ||
# start the firewall & natd | # start the firewall & natd | ||
Line 111: | Line 123: | ||
</ | </ | ||
+ | |||
+ | ====== Firewall and Debugging Logs ====== | ||
+ | |||
+ | If you've turned on any logging for the ipfw service or natd, the output can be seen on the TrueNAS server OUTSIDE THE JAIL in this file... | ||
+ | < | ||
====== Credits ====== | ====== Credits ====== | ||
Line 120: | Line 137: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | |||