Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Share internet in Linux

I have a linux laptop, connected to internet via wifi. I would like it to serve out the connection via its Ethernet port, so that another machine could access the internet via cable. What would be the best setup to do that?

share|improve this question

migrated from Nov 3 '11 at 10:27

This question came from our site for system and network administrators.

marked as duplicate by Sathya Nov 3 '11 at 11:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You should consider giving us the OS of your laptop :) – Antoine Benkemoun Nov 3 '11 at 9:44

What would be the best setup to do that?

Based on the information you've given, the answer is the setup you've already got. You just need to enable routing. There's lots of description of how to enable this on the internet. Try Google. Here's a simple example using masquerading. But there's other ways to allow access (application level proxying, conventional routing).

share|improve this answer
Why the mod-down? The resource symcbean links to is an excellent explanation. – vvanscherpenseel Nov 3 '11 at 10:00
I didn't downvote it, but good answers should be self contained - that way, if something happens to the source, we should still be able to find an answer. – Journeyman Geek Nov 3 '11 at 10:38