You are not logged in.

#1 20 Aug 2018 16:20

tomhsiung
Member
Registered: 20 Aug 2018
Posts: 15

Which file stores the setting of sudo sysctl -w net.inet.ip.forwarding

Hi, guys

My Mac has two Ethernet cards, and I want to turn it to a router. I searched and found the command to enable the routing / packet forwarding function for Mac. But which file stores the info of this setting?

sudo sysctl -w net.inet.ip.forwarding=1

This CLI just enable it, and I want to find the file which stores this setting.

Tom

Offline

#2 23 May 2019 14:26

kteague
Member
Registered: 07 May 2019
Posts: 14

Re: Which file stores the setting of sudo sysctl -w net.inet.ip.forwarding

Possibly /etc/sysctl.conf

Offline

#3 24 May 2019 16:07

tomhsiung
Member
Registered: 20 Aug 2018
Posts: 15

Re: Which file stores the setting of sudo sysctl -w net.inet.ip.forwarding

Thanks, Kt. I learn a lots these days.

Tom

Offline

Board footer

Powered by