Project

General

Profile

Bug #22153

Tunables reset after setting static routes

Added by Moon-joong Kang over 3 years ago. Updated almost 3 years ago.

Status:
Closed: Not Applicable
Priority:
Nice to have
Assignee:
Sean Fagan
Category:
GUI (new)
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Added an tunable:
Variable = net.inet.ip.forwarding
Value = 1
Type = sysctl
Description = (blank)
Enabled = true

And adding a static route from Network > Static Routes will reset actual value of net.inet.ip.forwarding to 0, regardless of entry from System > Tunables.

History

#1 Updated by Moon-joong Kang over 3 years ago

  • File debug-nas-20170314023001.txz added

#2 Updated by Bonnie Follweiler over 3 years ago

  • Assignee set to William Grzybowski

#3 Updated by William Grzybowski over 3 years ago

  • Status changed from Unscreened to Screened
  • Priority changed from No priority to Nice to have
  • Target version set to 9.10.3

#4 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Target version changed from 9.10.3 to 9.10.4

#5 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Target version changed from 9.10.4 to 11.1

#6 Avatar?id=14398&size=24x24 Updated by Kris Moore over 3 years ago

  • Assignee changed from William Grzybowski to Sean Fagan

Load balancing

#7 Updated by Sean Fagan over 3 years ago

  • Status changed from Screened to Unscreened

#8 Updated by Sean Fagan over 3 years ago

FreeBSD requires that rc.conf have gateway_enable=YES in order for the net.inet.ip.forwarding to be set; when you change routing, "service routing" is restarted, which causes it to reset it.

#9 Updated by Sean Fagan over 3 years ago

(Which is to say that the way to fix this is a lot more invasive: either we change rc.d/routing to check sysctl.conf, or we set gateway_enable=YES in the rc.conf we generate if ip forwarding is enabled in sysctl.conf. And have to do so for ipv4 and ipv6.)

#10 Updated by Sean Fagan over 3 years ago

  • Status changed from Unscreened to Screened

So: this really requires a lot more work, with both UI and database. I think, anyway.

#11 Avatar?id=14398&size=24x24 Updated by Kris Moore about 3 years ago

  • Seen in changed from Unspecified to N/A

#12 Avatar?id=14398&size=24x24 Updated by Kris Moore almost 3 years ago

  • Target version changed from 11.1 to 11.1-U1

#13 Updated by Dru Lavigne almost 3 years ago

  • Status changed from Screened to 15
  • Seen in changed from N/A to 9.10.2

Moon-joong: is this still an issue for you? If so, on which version of FreeNAS?

#14 Updated by Moon-joong Kang almost 3 years ago

Moon-joong Kang wrote:

Added an tunable:
Variable = net.inet.ip.forwarding
Value = 1
Type = sysctl
Description = (blank)
Enabled = true

And adding a static route from Network > Static Routes will reset actual value of net.inet.ip.forwarding to 0, regardless of entry from System > Tunables.

Dru Lavigne wrote:

Moon-joong: is this still an issue for you? If so, on which version of FreeNAS?

The issue still exists in 11.0-U4. However, as my network environment is changed, this is no longer necessary for me.

#15 Updated by Dru Lavigne almost 3 years ago

  • Status changed from 15 to Closed: Not Applicable
  • Target version changed from 11.1-U1 to N/A
  • Private changed from Yes to No

Thanks for the update. I'll close this ticket out.

#16 Updated by Dru Lavigne almost 3 years ago

  • File deleted (debug-nas-20170314023001.txz)

Also available in: Atom PDF