LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't access Internet- Connection Refused (https://www.linuxquestions.org/questions/linux-newbie-8/cant-access-internet-connection-refused-139355/)

killjoyce 01-27-2004 04:46 PM

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. :D

g-rod 01-27-2004 06:17 PM

Clear the firewall
iptables -F;
If that works you need to configure iptables to block allow the connections out.

killjoyce 01-28-2004 10:53 AM

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.
-------------------------------------------------------------------------------------------

g-rod 01-28-2004 11:44 AM

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;

killjoyce 01-28-2004 11:57 AM

#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)

g-rod 01-28-2004 12:01 PM

You are missing a default route. How are you getting your ip address (static or DHCP)?

killjoyce 01-28-2004 12:34 PM

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.


All times are GMT -5. The time now is 10:25 PM.