LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-14-2003, 11:32 AM   #1
Wild-A
LQ Newbie
 
Registered: Dec 2002
Posts: 6

Rep: Reputation: 0
Routing problem


I have problem with router on Red Hat 7.3.

I can't access Internet from computers attached to inner interface of router (192.168.0.0). I can ping to both router interfaces, but not to inet. From router is inet normal accessible.

I think, that problem is in NAT (masquerade). Firewall - ipchains and iptables are disabled (services xxxx stop).

Thnx for help.
 
Old 01-14-2003, 03:02 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need NAT to have Internet access from your local network. You need one of the two: ipchains of iptables running and configured for masquerading.
 
Old 01-14-2003, 03:28 PM   #3
Dumpsterm0uth
Member
 
Registered: Jan 2003
Location: Not telling
Distribution: Slackware, Mandrake, Redhat, -TRYING GENTOO
Posts: 64

Rep: Reputation: 15
Isn't the router 192.168.1.1?
 
Old 01-14-2003, 07:15 PM   #4
DFossmeister
LQ Newbie
 
Registered: Jan 2003
Location: Richmond, VA
Distribution: Redhat 7.1-RHEL 4r2, Gentoo
Posts: 15

Rep: Reputation: 0
Cool You must have either ipchains or iptables

If you are doing pure routing on public IP address space, then you can just enable IP forwarding and be done with it. You, however, are using non-routable IP addresses. Therefore, you must use iptables or ipchains to do your NAT stuff for you.

You also must have IP forwarding turned on. You can do this by "echo 1 > /proc/sys/net/ipv4/ip_forward". This will turn it on temporarily, until you reboot. To make that permanent, you must use "sysctl -a net.ipv4.ip_forward=1"

There are a host of HOWTOs on setting up firewalls. Look at the LDP.
 
  


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
routing problem DRagonRage Debian 8 09-21-2005 03:29 PM
routing problem DRagonRage Linux - Networking 1 09-21-2005 01:02 PM
Routing problem Infernal211283 Linux - Networking 3 02-28-2005 02:59 AM
Another Routing problem Bambi Linux - Networking 2 06-03-2004 03:13 PM
routing problem nowonmai Linux - Networking 2 10-09-2003 07:59 AM

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

All times are GMT -5. The time now is 04:00 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