1

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?

1
  • What does this have to do with 802.1X authentication? You said it in your title but not your description.
    – Spiff
    Mar 28, 2015 at 2:49

1 Answer 1

0

Apple provides lots of ways to share the connection, but they don't detail how to do it from the command line.

I have tried IP forwarding an changing the NAT tables but I think I did not implement it properly...

I think you need to use sysctl(8) and net.inet.ip.forwarding and/or net.inet6.ip6.forwarding in combination with pfctl(8).

If you are using them, then you should show what you have done.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .