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?

link|improve this question
feedback

migrated from stackoverflow.com Nov 13 '10 at 7:08

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

2 Answers

Docs at lartc.org contain this use case.

link|improve this answer
feedback

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 http://www.serverfault.com/.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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