alexsen
i face a small problem,

i have adsl and i want all my network share the connect, i have installed in a computer Red Hat 9.0, a better picture is:

adsl ---->eth0 (with ip 10.0.0.1) ---->eth1 (with ip 192.168.0.1) ----> rest of the local network,

could you tell me how i can be done?

thanks
daTh0r
Your Computer has to act as a Gateway for the other Pc's but i donno how it works under Red hat dry.gif
Under FreeBSD you can select this while the installation huh.gif
yuliang11
use iptables smile.gif) if you are on rh9 to do the nat. it's pretty simply and hard too. there are a lot of tutorials out there to configure linux box as a router.there are also those preprogrammed scirpt where you just cut ,paste then u can run linux as your router and firewall. u can try www.yolinux.com for beginner, then try www.siliconvalleyccie.com. have fun , linux is a powerful sh1t
alexsen
ok used this:

CODE
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT



i set the internal computer to ip: 192.168.0.2 netmask:255.255.255.0 getaway: 192.168.0.1 dns: 192.168.0.1 still nothing
BlaStA
afaik DNS-server has to be set to the IP of your ISP's DNS-server. Or do you run a dns-server on your rh-machine, too?
alexsen
no i dont run dns server on my the rh-machine, because i am new to the iptables part, where should i add isp's dns names?
ANORIUS
if your trying to set-up a router/firewall i recommend using webmin and shorewall.
for easy web configuration.

it makes setting up a server real easy.
IcedOut3E
Not that this is going to help buuuuuuut, I would suggest picking up one of those linux for dummies books and reading the networking section. Might be some good info even if it doesn't answer your question.

Peace.
GABRY
echo 1 > /proc/sys/net/ipv4/ip_forward
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.