This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
REQ: ipfw NAT Support
-
fsbruva
- Advanced User

- Posts: 378
- Joined: 21 Sep 2012 14:50
- Status: Offline
REQ: ipfw NAT Support
Given the power of jails, it would be nice if the ipfw nat kernel module was included. This is the only workable way to allow multiple jails to live at a single address and all play nicely. By using ipfw nat rules, the host can act as a router between the physical network and the jailed network.
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: REQ: ipfw NAT Support
NAS4free have ipfw.
You can configure static rules in tab Network|Firewall. Also work dynamic rules.
You can check
You can configure static rules in tab Network|Firewall. Also work dynamic rules.
You can check
Code: Select all
# ipfw showHome12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
fsbruva
- Advanced User

- Posts: 378
- Joined: 21 Sep 2012 14:50
- Status: Offline
Re: REQ: ipfw NAT Support
.... sigh.....
I didn't ask for ipfw. I asked to enable a specific kernel functionality to allow ipfw to carry out NAT within the kernel.
If you attempt to create a NAT rule using ipfw, you receive an error,
Attempts to enable NAT via rc.conf, by adding:
Results in the hilariously ironic set of messages during boot:
Ascertaining the kernel options that the stock kernel was built with:
Verified at: http://sourceforge.net/p/nas4free/code/ ... FREE-amd64
Here are the additional kernel modules needed to do kernel nat:
Another option is to have those modules pre-built, included in the embedded image and available as part of the firewall config. I attempted this, but got a message about libalias depending on kernal : missing or mismatch.
I didn't ask for ipfw. I asked to enable a specific kernel functionality to allow ipfw to carry out NAT within the kernel.
If you attempt to create a NAT rule using ipfw, you receive an error,
Code: Select all
kernel: IP_FW_NAT_GET_LOG: ipfw_nat not present, please load itCode: Select all
firewall_enable="YES"
firewall_nat_enable="YES"Code: Select all
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to accept, logging disabled
kldload: can't load ipfw_nat: No such file or directory
/etc/rc: WARNING: Unable to load kernel module ipfw_natCode: Select all
sysctl -a | grep IPF
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE_LIMIT=5
options IPFIREWALL_VERBOSE
options IPFIREWALL
Here are the additional kernel modules needed to do kernel nat:
Code: Select all
options IPDIVERT
options IPFIREWALL_FORWARD
options DUMMYNET
options IPFIREWALL_NAT #ipfw kernel nat support
options LIBALIAS- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: REQ: ipfw NAT Support
OK, I understand you now. And I subscribe to your request.
Also
PLS add any dhcp server.
Also
PLS add any dhcp server.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
majortombelgium
- NewUser

- Posts: 1
- Joined: 16 Oct 2012 23:34
- Status: Offline
Re: REQ: ipfw NAT Support
Hey,
Nas4free looks super ok to me, except, one thing
=> this NAT feature would really be useful: I also have a box with 2 network interfaces that i want to use to share my internet connection. So I think i need this too(masquerading)
Nas4free looks super ok to me, except, one thing
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: REQ: ipfw NAT Support
When I execute kldload ipfw_nat I receive if I put ipfw_nat into folder /boot/modules I receive
Ok, I execute dmesg and:kldload: can't load /boot/modules/ipfw_nat.ko: No such file or directory
I copy libalias.ko into /boot/modules/ and WOWKLD ipfw_nat.ko: depends on libalias - not available or version mismatch
Code: Select all
kldload /boot/modules/ipfw_nat.koBut I have to check - something strange is going on with memory# kldstat
Id Refs Address Size Name
1 29 0x80400000 1201b2c kernel
2 1 0x81602000 11f48 isboot.ko
3 1 0x868f8000 4000 ng_socket.ko
4 1 0x868fc000 b000 netgraph.ko
5 1 0x86a13000 2000 green_saver.ko
6 1 0x86a68000 4000 nullfs.ko
7 1 0x86f74000 175000 zfs.ko
8 1 0x870e9000 3000 opensolaris.ko
9 1 0x8724f000 8000 aio.ko
10 1 0x875f7000 4000 ipfw_nat.ko
11 1 0x875fb000 d000 libalias.ko
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- raulfg3
- Site Admin

- Posts: 4865
- Joined: 22 Jun 2012 22:13
- Location: Madrid (ESPAÑA)
- Contact:
- Status: Offline
Re: REQ: ipfw NAT Support
+1fsbruva wrote:Given the power of jails, it would be nice if the ipfw nat kernel module was included. This is the only workable way to allow multiple jails to live at a single address and all play nicely. By using ipfw nat rules, the host can act as a router between the physical network and the jailed network.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)
Wiki
Last changes
HP T510
Wiki
Last changes
HP T510