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

I have tried to make Linux(Ubuntu) as a router but it gets failed. My objective is to create a Linux router then have to share two broadband connection.So How to do it?

share|improve this question

migrated from Nov 13 '10 at 7:08

This question came from our site for professional and enthusiast programmers.

Docs at contain this use case.

share|improve this answer

The shortest answer: Look for a tutorial.

The short answer:

echo -n "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

This question is probably better off next door at

share|improve this answer

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.