LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-26-2006, 11:47 PM   #1
simouzino
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Netgear router + linuxbox problem


hi i have the following question.
a netgear adsl router dg834G has lan ip 10.0.0.138 and wan Ip xxx.xxx.xxx.xx
a gentoo linuxbox has ip 10.0.0.2
from netgear firewall rules all incoming request forwarded to internal 10.0.0.2
the linuxbox has gw 10.0.0.138 ,DNS and of course has full access to the internet
also runs apache2 & ssh services
the netgear router provides NAT to the 10.0.0. network

my question is simple and - i hope not stupid ....

why i cant access the linux services thru the xxx.xxx.xxx.xx ip ?

#ifconfig
eth0 Link encap:Ethernet HWaddr 00:20:ED:7B:B0:05
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3021 errors:0 dropped:0 overruns:0 frame:0
TX packets:3238 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:250912 (245.0 Kb) TX bytes:1344942 (1.2 Mb)
Interrupt:185 Base address:0x4000


minoan ~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback localhost.local 255.0.0.0 UG 0 0 0 lo
default 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
minoan ~ #





tia for any reply
simouzino

Last edited by simouzino; 06-26-2006 at 11:58 PM.
 
Old 06-27-2006, 02:42 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Probably you haven't configured the firewall on your linux box to allow the services in. To check the firewall rules (as root):

Code:
iptables -L -v
 
Old 06-27-2006, 03:00 AM   #3
simouzino
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cdhgee
Probably you haven't configured the firewall on your linux box to allow the services in. To check the firewall rules (as root):

Code:
iptables -L -v
there are'nt rules currently !!
 
Old 06-27-2006, 03:41 AM   #4
sonajiso
Member
 
Registered: Oct 2003
Posts: 34

Rep: Reputation: 15
Try to make 10.0.0.2 a DMZ
Some (most?) netgear routers have very poor NAT and routing capabilities and if you have both a DMZ and port forwarding active, neither might work. Try taking upnp off as well.
 
Old 06-27-2006, 04:01 AM   #5
simouzino
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sonajiso
Try to make 10.0.0.2 a DMZ
Some (most?) netgear routers have very poor NAT and routing capabilities and if you have both a DMZ and port forwarding active, neither might work. Try taking upnp off as well.
thank you, i ll try it and i will post the results ...

>>netgear routers have very poor NAT and routing capabilities

that's really pretty strange,cause actually that netgear model is running a linux with iptables :-)
 
Old 06-27-2006, 09:59 PM   #6
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: Custom Debian Live ISO's
Posts: 1,291

Rep: Reputation: 62
also check the /etc/hosts.deny and /etc/hosts.allow files on your linux box, this will effect all tcp connections.
If you have ALL:ALL in your hosts.deny file you will need to put something in the hosts.allow file to allow the tcp connections, somthing similiar too:

sshd:ALL
httpd:ALL

Its been a while so hopefully these rules are correct.
 
Old 06-29-2006, 02:33 PM   #7
simouzino
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Exclamation thank you

for the replies... so far nothing !!!!
i sent an email to Netgear and wating for answer...
thanks again, i soon as i ll have news i ll post it here.
 
  


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
Help Newbie Networking rmsat Linux - Networking 2 06-29-2004 04:26 PM
Newbie Networking Lodnod Linux - Newbie 4 03-16-2004 12:20 AM
Networking Newbie Nice Guy Eddie Linux - Networking 6 05-17-2003 07:01 AM
Networking Newbie Nice Guy Eddie Linux - Networking 1 05-04-2003 01:35 AM
Networking newbie lolmc Linux - Networking 3 12-29-2001 07:58 AM

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

All times are GMT -5. The time now is 10:44 AM.

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