After upgrading from FreeNAS 11 to TrueNAS 12, I noticed that my system date was incorrect. In examining it, I discovered that there is a set of ipfw rules in place:
root@nas:~ # ipfw list 00100 allow ip from any to any via lo0 00500 allow ip from table(internal) to any in 00500 allow ip from any to table(internal) out 01000 reject udp from any to me 111 01500 reject udp from me to any 65535 allow ip from any to any
This causes ntp to not work properly with the default servers. Or any servers not on the local network. I have been unable to figure out what is creating this. I have one plugin installed, Plex. The Plex jail has its own ipfw table, which is just to pass things through.
I also note that rule 1500 should probably be "reject udp from me to any 111"
Problem/Justification
None
Impact
None
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Show:
Waqar
February 28, 2021 at 9:38 PM
Sweet, thanks for confirming
Sean Eric Fagan
February 28, 2021 at 9:37 PM
I'm narrowing down on it. It appears to be my fault – I found that I have
INSERT INTO tasks_initshutdown VALUES(1,'script','','/mnt/NAS/do-ipfw.sh','postinit',1,10,'','');
and that's clearly what's doing it. And clearly I would have added it (based on the date of the file) for doing some testing. I've undone that and this can be closed .
Waqar
February 28, 2021 at 9:12 PM
Can you please upload a new debug of the system ?
Sean Eric Fagan
February 28, 2021 at 9:01 PM
Unchecked it via GUI and rebooted. After it was back, I did:
root@nas:~ # ipfw -a list
00100 0 0 allow ip from any to any via lo0
00500 6989 2010994 allow ip from table(internal) to any in
00500 171 19652 allow ip from any to table(internal) out
01000 0 0 reject udp from any to me 111
01500 3 1189 deny udp from me to any
65535 9124 33210290 allow ip from any to any
(And I'm going to go do an "ipfw delete 1500" now.)
I had tried "find / -type f -print0 | xargs -0 fgrep 'from any to me 111' /dev/null" but it turns out that managed to, somehow, EAT ALL MY MEMORY.
Waqar
February 28, 2021 at 8:23 PM
Thank you for confirming, you can do it via UI ( Plugins section ) or CLI with "iocage set boot=0 jailname"
After upgrading from FreeNAS 11 to TrueNAS 12, I noticed that my system date was incorrect. In examining it, I discovered that there is a set of ipfw rules in place:
root@nas:~ # ipfw list
00100 allow ip from any to any via lo0
00500 allow ip from table(internal) to any in
00500 allow ip from any to table(internal) out
01000 reject udp from any to me 111
01500 reject udp from me to any
65535 allow ip from any to any
This causes ntp to not work properly with the default servers. Or any servers not on the local network. I have been unable to figure out what is creating this. I have one plugin installed, Plex. The Plex jail has its own ipfw table, which is just to pass things through.
I also note that rule 1500 should probably be "reject udp from me to any 111"