Khang Nguyen
Cadet
- Joined
- Jul 11, 2016
- Messages
- 5
Hello,
I am new to FreeNas so please bear with me. I am following instructions from this article to configure IPFW for my FreeNAS. https://www.freebsd.org/doc/handbook/firewalls-ipfw.html
In my rc.conf I have these two firewall statements;
firewall_enable="yes"
firewall_script="/etc/myrules.sh"
In myrules.sh script has all the rules and it runs fine when I execute it manually (sh myrules.sh)
However, I have 2 problems.
My question is why my rule script is not running at boot and where is the "65535 allow ip from any to any" loading from? Please let me know if you have any advice on how to fix this.
Thanks,
Khang
I am new to FreeNas so please bear with me. I am following instructions from this article to configure IPFW for my FreeNAS. https://www.freebsd.org/doc/handbook/firewalls-ipfw.html
In my rc.conf I have these two firewall statements;
firewall_enable="yes"
firewall_script="/etc/myrules.sh"
In myrules.sh script has all the rules and it runs fine when I execute it manually (sh myrules.sh)
However, I have 2 problems.
- The myrules.sh script will not run at boot. After I reboot the FreeNAS and run "ipfw -show", it shows "65535 allow ip from any to any" and none of my rules in my rules script shows.
- If I manually execute the myrules.sh script and run "ipfw -show" again, it will list all my rules first and the 65535 allow ip from any to any" at bottom.
My question is why my rule script is not running at boot and where is the "65535 allow ip from any to any" loading from? Please let me know if you have any advice on how to fix this.
Thanks,
Khang