I am trying to use my Mac as a wifi hotspot. Currently, Im running Yosemite on it. The internet connection is through en0 and the local connection is through en1 network interface. Now, I want to bypass all my traffic that comes through en1 to en0. If a packet comes from a device connected to en1,
device -> en1 -> en0 -> global internet
When the response packet is received,
internet -> en0 -> en1 -> device
I have tried IP forwarding an changing the NAT tables but I think I did not implement it properly. Please help me out. How do I make it work through terminal commands?