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 11-11-2003, 01:26 AM   #1
fluff
LQ Newbie
 
Registered: Sep 2003
Location: NZ
Distribution: Red Hat
Posts: 17

Rep: Reputation: 0
Really strange networking problem


I have redhat 7.3. Previously connected to the internet via a ppp connection through a alcatel home pro adsl modem. My linux box did all firewalling, snatting and routing.
I have now changed my setup so that I have a dynalink (askey) RTA 300 adsl router.
I have changed my routing table (default gateway) to use the RTA 300 (with lan ip address of 192.168.1.1).
My linux box has been reconfigured with a LAN ip address of 192.168.1.2 (eth0) and 192.168.0.250 (eth1).
The firewall is still running on the linux box - restricting users on the 192.168.0.X side of the network on the ports they are allowed to access the internet with.
There is NO problem with the machines on the 192.168.0.X address range connecting to the internet - they work ok.
I have another PC on the 192.168.1.X network which connects to the internet ok.
Bugga me if I can get the linux box to connect to the internet - the most I am able to do is ping a web site. I can smtp into the linux box from the internet (have virtual server setup on RTA 300) and can receive emails but cannot send.

Here is a visual representation of the network:

INTERNET
|
|
ADSL Router (192.168.1.1) ----- PC (192.168.1.10)
|
|
eth0 - 192.168.1.2
Linux Box A
eth1 - 192.168.0.250
|
|
Linux box B(192.168.0.1)

Linux Box B can connect to the internet using Linux box B as router/gateway but I cannot connect to the internet directly from Linux Box A...

Last edited by fluff; 11-11-2003 at 02:02 AM.
 
Old 11-11-2003, 02:13 AM   #2
carlywarly
Member
 
Registered: Feb 2003
Location: Sunny Southport, again.
Distribution: PCLinuxOS 0.93 and 0.92, Vector sometimes
Posts: 825

Rep: Reputation: 30
Have you set up dns for that box? /etc/resolv.conf ?
 
Old 11-11-2003, 02:17 AM   #3
fluff
LQ Newbie
 
Registered: Sep 2003
Location: NZ
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
I have named running, but to try and sort my problem out I have changed my resolv.conf to be somehing like this:
Quote:
nameserver 202.27.184.3
nameserver 192.168.0.250
So it goes to 202.27.184.3 for dns.

As far as I can tell, DNS is working OK because I can ping www.google.com from my linux box and it resolves and replies.... pinging is the only thing that is working both ways..
 
Old 11-11-2003, 02:42 AM   #4
fluff
LQ Newbie
 
Registered: Sep 2003
Location: NZ
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Also

I should also mention that I can lynx to my RTA 300 adsl router without a problem (ie lynx 192.168.1.1). But cannot lynx to www.google.com.
It stalls on "Making HTTP connection to www.google.com"
 
Old 11-11-2003, 06:34 AM   #5
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
sounds like the router is only allowing icmp and udp packets through and blocking tcp
 
Old 11-11-2003, 01:12 PM   #6
fluff
LQ Newbie
 
Registered: Sep 2003
Location: NZ
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
But yet Linux box A passes traffic through from machines on the other (192.168.0.X) side of the linux box....


I can smtp onto Linux Box A from the internet and receive mail but cannot get anything but pinging working on the outgoing side of things.... UNLESS it comes from Linux Box B (192.168.0.1) through Linux box A (192.168.0.250) ....
?????????????
 
Old 11-11-2003, 02:20 PM   #7
TheIrish
Member
 
Registered: Oct 2003
Location: ITALY
Distribution: Debian, Ubuntu, Fedora
Posts: 137

Rep: Reputation: 15
Probably you should give a look to the firewall configuration. It is possible that you have correct FORWARD rules but not INPUT or OUTPUT rules.
 
Old 11-12-2003, 12:10 AM   #8
fluff
LQ Newbie
 
Registered: Sep 2003
Location: NZ
Distribution: Red Hat
Posts: 17

Original Poster
Rep: Reputation: 0
Hi, Thanks for the suggestion. I have (i think) ruled out the firewall by having the following rules in my script..
Quote:
$IPTABLES -A OUTPUT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -j ACCEPT
$IPTABLES -A INPUT -j ACCEPT
So i presume that my firewall is not stopping anything.
PS. All Dropped IPTABLES packets are logged into a MYSQL database and displayed on web page and I cannot see any packets getting dropped by the firewall.........

AAAGGGGGGHHHHHHH!!!!!!!
 
  


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
Networking problem - very weird Arrowx7 Linux - Networking 3 07-14-2005 07:37 AM
Networking Problem -very weird Arrowx7 Linux - Hardware 1 07-11-2005 10:41 PM
Weird Wireless Networking Levels tubatodd Slackware 1 04-07-2005 01:44 AM
Really weird networking problem fluff Linux - Networking 3 11-11-2003 02:26 PM
Weird bootup networking problem! jlturbos Linux - Networking 15 06-24-2002 03:48 PM

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

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