Forums: Internet Sharing (nat) On Red Hat 9.0 - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Internet Sharing (nat) On Red Hat 9.0

#1 User is offline   alexsen 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 30
  • Joined: 13-August 03

Posted 27 December 2003 - 01: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
0

#2 User is offline   daTh0r 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 43
  • Joined: 23-December 03

Posted 27 December 2003 - 02: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 :huh:
0

#3 Guest_yuliang11_*

  • Group: Guests

Posted 27 December 2003 - 06:58 PM

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
0

#4 User is offline   alexsen 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 30
  • Joined: 13-August 03

Posted 28 December 2003 - 03:04 AM

ok used this:

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
0

#5 Guest_BlaStA_*

  • Group: Guests

Posted 28 December 2003 - 03: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?
0

#6 User is offline   alexsen 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 30
  • Joined: 13-August 03

Posted 28 December 2003 - 05:30 AM

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?
0

#7 User is offline   ANORIUS 

  • Private
  • Icon
  • Group: Members
  • Posts: 16
  • Joined: 14-February 04

Posted 23 December 2004 - 07:28 AM

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.
0

#8 User is offline   IcedOut3E 

  • Corporal
  • Icon
  • Group: Members
  • Posts: 154
  • Joined: 12-February 04

Posted 28 December 2004 - 12: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.
0

#9 Guest_GABRY_*

  • Group: Guests

Posted 28 December 2004 - 03:52 PM

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

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting