LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-30-2003, 03:06 AM   #1
jrgalan
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
No Internet Connection From Private Network


greetings all! this is my first post, so here goes:

i am attempting to set-up a web server on a linux box running red hat 9.1. this machine is connected directly to the cable modem, and is the first machine hit as the internet connection comes into my network.

there are 2 nics in this machine - eth1 connects to the cable modem and is assigned an ip address dynamically by my isp; eth0 is connected by a crossover cable to the wan port on a linksys router (BEFSR41), which connects to 2 workstations (mac/2000win)

-------------------------------------
| ip provided by isp - eth1 |
| linux box
| 192.168.2.254/24 - eth0 |
--------------------------------------
|
|
---------------------------------------
| 192.168.2.1/24 - wan port |
| linksys router
| 192.168.1.1/24 - lan ip |
----------------------------------------
| |
| |
----------------------- ----------------------
|192.168.1.100 - 192.168.1.101
| mac + win2000
---------------------- -----------------------

the issue is that i have no internet connection from the workstations. i do have an internet connection from the linux box.

from the linux box, i can ping 192.168.2.1

however, from a workstation, i can ping 192.168.2.1, but i can NOT ping 192.168.2.254

i have tried this after flushing all iptables chain policies so the system is completely open.

it seems the connection is broken from the router to the eth0 on the linux machine. any ideas? thanks in advance.
 
Old 07-30-2003, 06:42 AM   #2
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
"however, from a workstation, i can ping 192.168.2.1, but i can NOT ping 192.168.2.254"

Can you ping 192.168.2.1 from the linux box? And can you ping the outside world from the linux box?
 
Old 07-30-2003, 02:08 PM   #3
jrgalan
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
FIREWALL ISSUE?

from the linux box, i can ping 192.168.2.1

i also have an internet connection from the linux box, thus i can also ping the outside world.

i'm thinking it might be something to do with the firewall.

i tried flushing all the chains with:

iptables --policy INPUT ACCEPT
iptables --policy OUTPUT ACCEPT
iptables --policy FORWARD ACCEPT

iptables --flush
iptables --flush -t nat

however, with no chains established, do i need to still set a POSTROUTING rule?

can somebody tell me what's wrong with these commands:

modprobe iptables_nat
iptables -A POSTROUTING -t nat -o eth1 -j SNAT --to (ip adddress assigned by isp)

these commands are not working.

thanks for your reply
 
Old 07-31-2003, 08:19 PM   #4
jrgalan
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
i guess it would help if i pointed out that the linux machine is also acting as a gateway/router (please excuse my newbiness for not pointing that out before.)

in addition, i performed tcpdump on both eth interfaces on the linux box:

eth0 receives packets when i ping or try to connect to the internet from the private network.

however, it appears that the ping is not replied to, and eth1 does not pass the packets to the default gateway.

can anybody point me in the right direction?

thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slow internet/network connection. cjnodell Ubuntu 2 06-19-2005 03:33 AM
problems connecting to the internet via private home network pinzerbib Linux - Newbie 3 04-20-2004 04:27 PM
how to I share my internet connection over a network jax8 Linux - Newbie 4 03-17-2004 05:11 PM
network connection over internet tcarradine Linux - Networking 0 07-10-2003 01:52 PM
internet/network connection problems denster23 Linux - Networking 3 06-07-2002 09:19 AM


All times are GMT -5. The time now is 02:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration