alexsen
Dec 27 2003, 09:28 PM
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
Dec 27 2003, 10:37 PM
Your Computer has to act as a Gateway for the other Pc's but i donno how it works under Red hat

Under FreeBSD you can select this while the installation
yuliang11
Dec 28 2003, 02:58 AM
use iptables

) 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
Dec 28 2003, 11:04 AM
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
Dec 28 2003, 11:59 AM
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
Dec 28 2003, 01:30 PM
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
Dec 23 2004, 03:28 PM
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
Dec 28 2004, 08:29 AM
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
Dec 28 2004, 11:52 PM
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.