LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2008, 01:22 PM   #1
vijaya_svk
Member
 
Registered: Nov 2007
Posts: 61

Rep: Reputation: 15
How to allow access internet


Hi
I have two LAN ports (eth0 and eth1) on my Fedora 8 machine.I have connected Internet to eth0 and it gets internet on a static IP(125.63.88.216, GW 125.63.88.193)

Now i have installed DHCP server and started on eth1 with IP(192.168.0.1). Now I want to access internet on the machines that will be connected to the eth1. My client machines will get IP's in the range of 192.168.0.XXX

What are the configurations that i have to make inorder to get internet to my eth1 connected machines.
 
Old 09-04-2008, 01:25 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vijaya_svk View Post
Hi
I have two LAN ports (eth0 and eth1) on my Fedora 8 machine.I have connected Internet to eth0 and it gets internet on a static IP(125.63.88.216, GW 125.63.88.193)

Now i have installed DHCP server and started on eth1 with IP(192.168.0.1). Now I want to access internet on the machines that will be connected to the eth1. My client machines will get IP's in the range of 192.168.0.XXX

What are the configurations that i have to make inorder to get internet to my eth1 connected machines.
I'd suggest installing and configuring Squid, which does exactly what you want.
 
Old 09-04-2008, 01:34 PM   #3
vijaya_svk
Member
 
Registered: Nov 2007
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TB0ne View Post
I'd suggest installing and configuring Squid, which does exactly what you want.
I tried squid, and i am not able to understand, can u please tell me how to configure squid. I have squid 2.6 on my machine.
 
Old 09-04-2008, 02:01 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vijaya_svk View Post
I tried squid, and i am not able to understand, can u please tell me how to configure squid. I have squid 2.6 on my machine.
Read the documentation on their web page, http://www.squid-cache.org/

There is a How-To section. Things vary quite a bit, depending on your environment, and what you're trying to do. Setting up a transparent Squid proxy server is fairly easy.
 
Old 09-05-2008, 06:41 AM   #5
dbmacartney
Member
 
Registered: Mar 2007
Location: London, UK
Distribution: Debian, Red Hat Enterprise, Fedora
Posts: 70

Rep: Reputation: 15
Using Squid is a great way of passing the net through to your clients. If you didn't wish to use a proxy to give them access, you could simply enable routing on your box by doing the following

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

to make this a persistant change after a reboot add the below line to /etc/sysctl.conf

net.ipv4.ip_forward = 1

then to apply the new changes, run:

sysctl -p /etc/sysctl.conf

................

this will turn your box into a router/gateway for your clients. To allow dns to be passed on and give your clients a response, install bind.

yum install named (to install named)

chkconfig named on (to set named to start automatically on reboot)

service named start (to start named in your current session)


if you point your dhcp config to use 192.168.0.1 as its gateway and DNS, internet should start passing through to your clients.
 
  


Reply



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
vsftp - Can access FTP within office network BUT cant access via Internet! kokfei77 Red Hat 2 03-07-2012 07:24 PM
internet server that use a prepaid account to access the internet elgieb1 Linux - General 0 02-19-2007 11:59 PM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 10:28 AM
Connection to access point OK, but cannot access the network/internet Nymphetamine Linux - Wireless Networking 29 01-13-2005 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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