Multi WAN + Captive Portal not working

Started by srijan, August 30, 2016, 08:07:01 PM

Previous topic - Next topic
Franco,

Superb..

This is exactly the issue.

error = (*ifp->if_output)(ifp, m0, sintosa(&dst), NULL);

-=Srijan Nandi

Hello Franco,

The comment on the piece of code says:

* If small enough for interface, or the interface will take
    * care of the fragmentation for us, we can just send directly.


So, how does this effect our case.

When gateway is set to 'default', ipfw process the packet first and sends it to captive portal. After authentication, ipfw passes it to pf.

As soon as route-to is set in pf, the connection is made directly with pf and ipfw does not come into play at all. How come route-to which comes later into the picture make ipfw not process the traffic.

ipfw should alway come into play no matter what. Shouldn't this be the case.
-=Srijan Nandi