Review your favorite Linux distribution.
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 08-11-2004, 11:21 AM   #1
LQ Newbie
Registered: Aug 2004
Location: Pune
Distribution: Redhat
Posts: 4

Rep: Reputation: 0
Linux Networking Internet connections

Hello All,

I want to make a Linux Router,I have installed Redhat9.0 with 2 NICS,eth0 and eth1, IP),
I have enabled ip farwarding.

echo 1 > /proc/sys/net/ipv4/ip_forward

I am having a DSL Line connected to Eth0,I am able to browse the internet properly on my Gateway Machine,
I am having 5 machines in my internal Network.

There are two methods to give internet connection to my internel netwok

1.Using the squid
2.Using IPtables NAT functionality

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

I want to know are there any other methods,apart from using Squid or Iptables NAT to give internet connection to my internal hosts.

Thanks in Advance,
Old 08-11-2004, 03:08 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Those are certainly the two main ways to go about it. If you weren't using private IP addresses, you could just route through the gateway without using NAT. So I can't think of any other way to send a networks request from your network to the outside world. In my case, if you didn't have any specific need for a proxy server, I would just set up NAT.


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
2 networks and 2 internet connections on linux router seer_tenedos Linux - Networking 6 03-27-2005 08:24 AM
New to Linux/internet connections?? blckspder Linux - Newbie 2 02-06-2005 12:33 AM
2 internet connections w/ coyote linux jac0b Linux - Networking 0 04-14-2004 01:56 PM
Linux won't establish internet connections blacbastard Linux - Networking 4 07-03-2003 08:05 AM
Linux server on multiple internet connections gt50 Linux - Networking 1 02-24-2002 06:16 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:56 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
Open Source Consulting | Domain Registration