Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

I've seen many tools to use Ubuntu as a router in which an internet connection could be shared from Ethernet over Wifi or vice versa. I'm looking to achieve this except with 2 Ethernet connections:

Internet --> Computer 1 (with 2 Ethernet cards) --> Computer 2

How can I configure Computer 1 to be able to share the connection in the above method. I'm confident in using the terminal or editing config files, but I would much prefer some sort of automated GUI based program such as the settings available in OS X.

I cannot just use a router, I don't have a spare router to use for this temporary set up that I need. I can use any KDE, Gnome or XFCE based tool.

share|improve this question
up vote 3 down vote accepted

It can be done, if you have KDE I think the easiest applications to use are guarddog and guidedog. Both are in the Ubuntu repositories.

enter image description here

With that said, I would advise you use a firewall / router specific distro, smoothwall is one of several options.

Smoothwall screenshots (of the web interface)

The advantages of smoothwall (or similar) are

  1. Pre-configured out of the box / specifically designed for this task.

  2. Security. Less packages = more security. A full desktop, such as gnome or kde, let alone X can be a security risk on a router.

  3. Web (graphical) interface for easy configuration.

  4. Smoothwall web interface has whole sections on traffic monitoring.

So yes, it can be done with Ubuntu, but smoothwall (or similar) is probably easier and in many ways superior.

share|improve this answer
Or endian firewall community edition – Engels Peralta Dec 15 '11 at 19:11
Can i have your babies? i'll try it tomorrow but this seems really promising already. – AMomchilov Dec 15 '11 at 22:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.