<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0);font-size:small"><font face="verdana,sans-serif">Thanks for reporting the issue and below is the fix.</font><br></div><div class="gmail_default" style="color:rgb(0,0,0);font-size:small"><font face="verdana,sans-serif"><font face="Arial,Helvetica,sans-serif"></font><a href="https://gitweb.dragonflybsd.org/dragonfly.git/commit/72ce8e08d0708ac9f09d9cda56e3308ad8dcec48">https://gitweb.dragonflybsd.org/dragonfly.git/commit/72ce8e08d0708ac9f09d9cda56e3308ad8dcec48</a></font></div><div class="gmail_default" style="color:rgb(0,0,0);font-size:small"><font face="verdana,sans-serif"></font><br></div><font face="verdana,sans-serif"></font><br></div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Fri, 15 Feb 2019 at 09:34, Aaron LI <<a href="mailto:aly@aaronly.me">aly@aaronly.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Hi Nima,<br>
<br>
I can confirm this issue. I believe this is a bug in IPFW3.<br>
<br>
Hi Bill, would you please have a look? Actually, "ipfw3" cannot add any rules,<br>
complaining "ipfw3: getsockopt(IP_FW_ADD): Invalid argument". Thanks.<br>
<br>
Cheers,<br>
Aaron<br>
<br>
<br>
On Mon, 11 Feb 2019 17:09:04 +0330<br>
Nima Azizzadeh <<a href="mailto:n.azizzadeh@gmail.com" target="_blank">n.azizzadeh@gmail.com</a>> wrote:<br>
<br>
> Hi Aaron<br>
> Thanks for the response. Yes, all modules was loaded. It doesn't solve the<br>
> problem!<br>
> <br>
> Regards,<br>
> Nima<br>
> <br>
> On Thu, Feb 7, 2019 at 2:54 PM Aaron LI <<a href="mailto:aly@aaronly.me" target="_blank">aly@aaronly.me</a>> wrote:<br>
> <br>
> > Quoting Nima Azizzadeh (2019-02-07 17:18:55) <br>
> > > Hello,<br>
> > > We are working on a project that includes DragonFlyBSD and IPFW3. On<br>
> > > this phase of project we are trying to test all features. Based on<br>
> > > official DragonFlyBSD<br>
> > > documents(<a href="https://www.dragonflybsd.org/docs/ipfw3/" target="_blank" rel="noreferrer">https://www.dragonflybsd.org/docs/ipfw3/</a>) for <br>
> > using <br>
> > > stateful firewall and checking every traffic state, we must use "ipfw3 <br>
> > add <br>
> > > check-state" rule. When I use the syntax I got this error :<br>
> > > # ipfw3 add check-state<br>
> > > ipfw3: getsockopt(IP_FW_ADD): Invalid argument<br>
> > > <br>
> ><br>
> > Hi Nima,<br>
> ><br>
> > Did you load the necessary modules? If not, try and load all IPFW3<br>
> > modules, i.e., "ipfw3", "ipfw3_basic", "ipfw3_layer2", "ipfw3_layer4",<br>
> > and "ipfw3_nat".<br>
> ><br>
> > Hope this solves your problem.<br>
> ><br>
</blockquote></div>