Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.