Page MenuHomeFreeBSD

g_amanakis_yahoo.com (George Amanakis)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 19 2016, 12:50 AM (429 w, 3 d)

Recent Activity

Mar 15 2016

g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

Another issue not addressed by fastforwarding is the change of the routing table through pfil (i.e. setfib in ipfw). After the outgoing pfil hook there should be a check to see if the routing table has changed. If it has ip_findroute() should be called to determine the new route.

Mar 15 2016, 2:30 AM

Feb 27 2016

g_amanakis_yahoo.com added inline comments to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..
Feb 27 2016, 5:54 PM
g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

Possible patch:

Feb 27 2016, 4:24 PM
g_amanakis_yahoo.com added inline comments to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..
Feb 27 2016, 4:13 AM
g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

After a lot of testing I found the culprit:
removal of the lines 515-516 resolves my bug.

515  if (mcopy)
516                m_freem(mcopy);

the question is why?

Feb 27 2016, 4:01 AM

Feb 26 2016

g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

I am trying to find where the problem lies but without success so far.
However if I add the following right after line 311 ("passin :") the bug dissappears:

Feb 26 2016, 3:33 AM

Feb 22 2016

g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

Regarding my previous comment, I was running 10.2-RELEASE and had not turned fastforwarding on.
The bug still persists. I think there might be a problem with the fastforwarding routine as this does not happen when fastforwarding is off.
Steps to reproduce:

  1. WAN-interface: route change default -mtu 1196
  2. Browse some pages with a client machine
  3. Try to access the gateway via ssh on the LAN-interface.
Feb 22 2016, 3:43 AM

Feb 21 2016

g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

@ae
I think you are right. I am currently trying with "hw.em.enable_msix=0" and it seems to work ok!

Feb 21 2016, 11:15 PM
g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

On a vanilla 10.2-STABLE with the latest available kernel and applied patch I get this (ipfw+nat):

Feb 21 2016, 3:25 PM

Feb 19 2016

g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

With the patch backported to 10.2-RELEASE I got a kernel panic today.
I will try to get a dump.

Feb 19 2016, 5:12 PM
g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

I backported this to 10.2-RELEASE and it runs ok. Mistakenly I was running the 10.2-STABLE kernel on a 10.2-RELEASE userland.

Feb 19 2016, 2:53 AM
g_amanakis_yahoo.com added a comment to D5330: Fix tryforward so that it can return ICMP errors to the correct origin, even in the face of IPFW and NAT..

I tried this on my gateway running 10.2-STABLE but it keeps crashing, meaning I am losing all connectivity including IPMI. On the IPMI console I do not see any panic. In the logs I do not see anything unusual.

Feb 19 2016, 1:26 AM