LinuxQuestions.org
Review your favorite Linux distribution.
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 02-06-2005, 09:33 PM   #1
dawn_angel
LQ Newbie
 
Registered: Dec 2003
Location: Malaysia
Distribution: Red Hat/Debian/OpenBSD
Posts: 19

Rep: Reputation: 0
linux router problem


hi,

i've installed redhat 9.0 for my router and managed to configure my connect to my isp(using rp-pppoe) on eth1. My client can ping to the router 192.168.0.1(eth0) but could not browse the Internet...what seems to be the problem?
 
Old 02-06-2005, 09:59 PM   #2
s34n
Member
 
Registered: Jun 2003
Distribution: Slackware 9.1 / Debian Sid
Posts: 57

Rep: Reputation: 15
If you are using your RedHat box only as a router, why not use IP Cop or Smoothwall instead. It would be alot easier to configure and maintain.
 
Old 02-06-2005, 11:44 PM   #3
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
hello dawn_angel ,

Do you proxy work well ? because proxy can influence that can't browsing

bye.....
 
Old 02-07-2005, 12:31 AM   #4
dawn_angel
LQ Newbie
 
Registered: Dec 2003
Location: Malaysia
Distribution: Red Hat/Debian/OpenBSD
Posts: 19

Original Poster
Rep: Reputation: 0
nope...just a normal linux router using RedHat 9.0...and i'm not using dhcp...
thanks
 
Old 02-07-2005, 01:04 AM   #5
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
Maybe your configuration is not complete or mistake ! Because Redhat 9.0 there is many bugs
 
Old 02-07-2005, 01:16 AM   #6
yenonn
Member
 
Registered: Feb 2003
Location: Malaysia
Distribution: Redhat 8.0, 9, Slackware 9.1
Posts: 511

Rep: Reputation: 30
may be u can try to use ip forwarding to route ur eth0 to eth1

echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD DROP
iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

try this..... hopefully it is working for u
 
Old 02-07-2005, 01:56 PM   #7
rhoyerboat
Member
 
Registered: Feb 2005
Posts: 40

Rep: Reputation: 15
and a -

youre probably going to need to set up te routing table too:

route add -net default gw 192.168.0.1 dev eth0
or maybe something like:
route add -net 0.0.0.0 gw (ip of eth1) <incomplete command>

(thats just one of the lines youll be using, if i could see your network in
my head id give you the rest of them, i find that making drawings helps
reign in the variables)

'man route' is good, but not as good as 'man tcpdump', but all youll need
is 'man route'

Last edited by rhoyerboat; 02-07-2005 at 02:00 PM.
 
Old 02-07-2005, 02:26 PM   #8
cowanrl
Member
 
Registered: Dec 2004
Location: Western Pennsylvania, USA
Distribution: Red Hat
Posts: 150

Rep: Reputation: 15
You will not be able to route directly between the computers connected to your 192.168.0.0 network and your ISP. You'll ned to use NAT(Network Address Translation) for that. It can be done with the iptables that comes with RH 9. See this link:

http://www.iptables.org/documentatio...NAT-HOWTO.html

You'll also need to execute this command that yenonn mentioned:

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

to start your machine forwarding packets between the interfaces.


If you are going to use iptables for the NATing, you should read through some of the other documentation on the iptables.org site to familiarize yourself with it.
 
  


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
Linux Router problem makapacs Linux - Networking 3 07-01-2004 03:11 AM
Linux Router Hardware problem TooToon Linux - Hardware 4 02-20-2004 03:50 AM
Dlink router problem w/ linux ziggie216 Linux - Networking 0 10-08-2003 01:53 AM
linux router problem(HELP ME OUT) bally Linux - Networking 5 06-21-2002 08:26 AM
Linux Router problem kjelle Linux - Networking 2 02-04-2002 07:32 AM

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

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