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:40] – [Configuring a Simple Firewall] 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 90: | Line 87: | ||
</ | </ | ||
- | ====== | + | ====== |
+ | |||
+ | > IMPORTANT! | ||
+ | > This firewall does not filter any traffic. It allows anything to talk to anything. | ||
+ | > At this stage I just want to trigger NAT as appropriate to allow hosts on different networks to communicate. | ||
+ | > The " | ||
+ | > If your TrueNAS box connects directly to the Internet, DO NOT USE THIS EXAMPLE !!! | ||
< | < | ||
Line 106: | Line 109: | ||
< | < | ||
+ | |||
+ | # enable IP forwarding | ||
+ | jexec " | ||
+ | |||
+ | # enable the firewall service (aka ipfw) | ||
+ | jexec " | ||
# enable the NAT service | # enable the NAT service | ||
Line 114: | 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 123: | Line 137: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | |||