Download your favorite Linux distribution at LQ ISO.
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 02-02-2006, 11:29 PM   #1
Registered: Jun 2003
Distribution: Ubuntu, Debian
Posts: 40

Rep: Reputation: 15
How to setup a gateway

I have a local network and using a linux machine as a gateway to get the internet connection. The gateway machine has two Ethernet cards, shownd below:

local network:

campus network:
campus gateway:

I need help to setup the linux gateway machine so that I can get internet connection from all my local machines.

Can I just use route command to do it? Or Do I have to use iptables?


Old 02-03-2006, 12:43 AM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Yes, you will have to use the NAT capabilities of iptables. There are some good tutorials to get you started at the iptables website.


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
Help me setup this gateway/network ziggy25 Linux - Networking 9 02-24-2008 01:41 PM
SMS Gateway Setup?!?! rohroh Linux - Software 9 03-07-2005 06:49 AM
Two gateway setup eqxro Linux - Networking 4 12-07-2004 01:32 AM
Linux RH 7.2 Gateway Setup goatr Linux - General 4 01-23-2002 12:17 PM
Gateway setup help! frost33 Linux - Networking 4 05-04-2001 07:55 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:37 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