LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2004, 05:46 PM   #1
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Rep: Reputation: 15
Can't access Internet- Connection Refused


I have a machine running RH9, i just updated from 7.3. the DNS is my school's intranet that its hooked in to.

It can see everything on the intranet fine. But I can't get out to the Internet! Using a browser or trying to ping I get a Connection Refused error.

I know this has to be a simple thing, but where do I go to fix it? What do I look for?

Thanks for helping out an UberNoob.
 
Old 01-27-2004, 07:17 PM   #2
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
Clear the firewall
iptables -F;
If that works you need to configure iptables to block allow the connections out.
 
Old 01-28-2004, 11:53 AM   #3
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Tried that and didn't work.
I get this:

--------------------------------------------------------------------------------------
/lib/modules/2.4.20-8/kernel/net/ipv4/netfilter/ip_tables.o init_module: Device or resource busy

Hint: insmod errors can be caused by incorrect module paramaters, including invalid IO or IRQ parameters.

You may find more information in syslog or the output from dmesg

/lib/modules/2.4.20-8/kernel/net/ipv4/ip_tables.o insmod ip_tables failed

iptables v1.2.7a: can't initialize iptables table 'filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
-------------------------------------------------------------------------------------------
 
Old 01-28-2004, 12:44 PM   #4
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
No that is OK you don't have iptables loaded. Therefor you are not firewalling wiht iptables. YOu might me using ipchans, but I doubt it.
What is the output of
ifconfig -a;
netstat -rn;
sysctl -a | grep net.ipv4.ip_forward;
lsmod;
lspci -v | grep net;
 
Old 01-28-2004, 12:57 PM   #5
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Original Poster
Rep: Reputation: 15
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:10:5A:C9:B6:96
inet addr:205.170.4.168 Bcast:205.170.15.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:58998 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7299132 (6.9 Mb) TX bytes:240 (240.0 b)
Interrupt:10 Base address:0xe400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:70 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4582 (4.4 Kb) TX bytes:4582 (4.4 Kb)


# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
205.170.4.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
205.170.0.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo

# sysctl -a | grep net.ipv4.ip_forward;
net.ipv4.ip_forward = 0


# lsmod;
Module Size Used by Not tainted
nls_iso8859-1 3516 1 (autoclean)
ide-cd 35708 1 (autoclean)
cdrom 33728 0 (autoclean) [ide-cd]
autofs 13268 0 (autoclean) (unused)
3c59x 30704 1
ipchains 51592 12
keybdev 2944 0 (unused)
mousedev 5492 0 (unused)
hid 22148 0 (unused)
input 5856 0 [keybdev mousedev hid]
usb-uhci 26348 0 (unused)
usbcore 78784 1 [hid usb-uhci]
ext3 70784 5
jbd 51892 5 [ext3]

# lspci -v | grep net;
00:0c.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone]
(rev 30)
 
Old 01-28-2004, 01:01 PM   #6
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
You are missing a default route. How are you getting your ip address (static or DHCP)?
 
Old 01-28-2004, 01:34 PM   #7
killjoyce
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Original Poster
Rep: Reputation: 15
AHA!

There it is then.
IP is set statically, but I didn't have the subnet mask or default gateway set. Duh. Thanks for all your help!!
Works great now. *Sheepish grin*

At least I learned where to look for in the future.
 
  


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
Internet access problem -- irregular connection time out kaon Slackware 13 09-06-2005 02:51 AM
webmin access prob (connection refused) ryanzietlow Linux - Networking 3 03-02-2005 01:00 PM
Apache "Connection was refused" remote access error spicychicken Linux - Newbie 7 02-11-2005 01:14 PM
Connection to access point OK, but cannot access the network/internet Nymphetamine Linux - Wireless Networking 29 01-13-2005 03:59 PM
Internet access through router and wifi connection caudalie Linux - Wireless Networking 3 01-22-2004 04:51 PM


All times are GMT -5. The time now is 04:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration