Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-30-2005, 02:00 PM   #1
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
Question Setting up gateway

I currently have a home network on, with a Linux machine on the network with eth0, having an ISDN connection to the Internet on ippp0. The linux machine is running Ubuntu "Breezy Badger" with an IP address of

I want to be able to forward all traffic from eth0 that is destined for the internet to ippp0, i.e. setup the machine as a gateway for the LAN to the Internet.

How do I do this? This is my routing table (with info masked by x), sorry bout formatting


Last edited by jamie_barrow; 12-30-2005 at 02:03 PM.
Old 12-30-2005, 02:58 PM   #2
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 31
Your routing table should be fine. What you need to be looking at is setting up nat/masqerading with iptables.

This can be done with many different iptables/firewall setup proggies.

My favorite

All you have to do is follow the prompts and it will generate a iptables script for you.

Old 05-08-2007, 07:40 AM   #3
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Original Poster
Rep: Reputation: 15
Hey, thanks for that link. I actually never got round to sharing my internet connection last time But now I got a new pc and its 64 bit and i cant find drivers for the usb modem, so I'm going to try the script that gets generated so I can use the internet on the 64 bit machine. I have about 12 days left to activate the machine, so it'll give me some motivation


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up a gateway... beebs Linux - Networking 6 10-16-2004 05:26 PM
Setting Up Linux for GATEWAY extremebfn Linux - Networking 2 08-27-2004 05:30 AM
Gateway Setting ChangeOfPace Linux - Networking 4 05-05-2004 09:44 AM
SUSE 9 setting gateway stress Linux - Networking 16 02-22-2004 02:37 AM
setting up redhat 9 gateway? motiv8x Linux - Networking 2 09-17-2003 09:09 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration