Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No outgoing network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cogitate
n00b
n00b


Joined: 05 Dec 2003
Posts: 46
Location: Ontario, Canada

PostPosted: Mon Jul 19, 2004 7:40 pm    Post subject: No outgoing network Reply with quote

I have an interesting problem that I have not been able to figure out for a couple of weeks. I set up a Gentoo webserver and FTP server for a local intranet in an office. The install was done at my house, then I brought the box to the office. The office uses static IPs.

The problem is that, although any incomming connection succeeds, all outgoing connections fail. The server is serving web pages successfully, the anonymous FTP access works like a charm, ssh from any windows box works great. emerge sync fails, as does any ping attempts to any box. Hostnames do resolve, but no connection ever gets established with any other box (windows or linux). I'm thinking it might be a firewall that is blocking the box, but all the other servers in this office have internet connections (they are all windows boxes).

output of ifconfig -a:
Code:
eth0      Link encap:Ethernet  HWaddr 00:A0:C9:B2:E7:A8 
          inet addr:10.29.60.39  Bcast:10.29.63.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:74207 errors:0 dropped:0 overruns:2 frame:0
          TX packets:36353 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9523033 (9.0 Mb)  TX bytes:19203424 (18.3 Mb)
          Interrupt:10 Base address:0x4000

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:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9136 (8.9 Kb)  TX bytes:9136 (8.9 Kb)

route -n output:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.29.60.0      0.0.0.0         255.255.252.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         10.29.60.1      0.0.0.0         UG    1      0        0 eth0


Also, here is the /etc/conf.d/net file (comments trimmed)
Quote:

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="10.29.60.39 broadcast 10.29.63.255 netmask 255.255.252.0"

# For setting the default gateway
#
gateway="eth0/10.29.60.1"


Again, this is not my box (or office), so I am not entirely familiar with their network, but I think I've got things configured correctly. One thing to note is that I thought the broadcast address was funny, but apparently this is what it is supposed to be, also, I don't see how it would affect anything. Just as a check, I have also tried using the 10.29.60.255 broadcast address with no success.

Any ideas are appreciated. If you need any other info, let me know. Thanks in advance.
Back to top
View user's profile Send private message
ynef
n00b
n00b


Joined: 14 Jan 2004
Posts: 69
Location: Lund, Sweden

PostPosted: Mon Jul 19, 2004 8:34 pm    Post subject: Reply with quote

Post any and all iptables rules you've got running. You could reproduce this error by letting only established and related traffic get out from the box, but otherwise have a default policy of DROP on the output chain. You know, in theory.

Output of "iptables -L -v" please. :)
Back to top
View user's profile Send private message
cogitate
n00b
n00b


Joined: 05 Dec 2003
Posts: 46
Location: Ontario, Canada

PostPosted: Mon Jul 19, 2004 10:18 pm    Post subject: Reply with quote

I haven't got any iptables rules set up. There is a hardware firewall later on up the network stream, but I don't have access to that firewall. I was thinking about a firewall on the box, but I just wanted it to get setup before I put one in place.

I don't have access to the box right now, but I will try to run the iptables list anyway (just incase) and try an emerge sync again tomorrow.
Back to top
View user's profile Send private message
cogitate
n00b
n00b


Joined: 05 Dec 2003
Posts: 46
Location: Ontario, Canada

PostPosted: Tue Jul 20, 2004 1:17 pm    Post subject: Reply with quote

Code:
# iptables -L -v
-bash: iptables: command not found

so I've got no firewall rules on the box

Code:
# emerge sync
starting rsync with rsync://156.56.111.198/gentoo-portage...
checking server timestamp ...

rsync: failed to connect to 156.56.111.198: No route to host
rsync error: error in socket IO (code 10) at clientserver.c(88)
retry ...

Starting retry 1 of 3 with rsync://65.19.163.230/gentoo-portage
checking server timestamp ...

rsync: failed to connect to 65.19.163.230: No route to host
rsync error: error in socket IO (code 10) at clientserver.c(88)
 retry ...

As you can see, I'm still not able to connect to anything outside of this box, yet these commands were run through putty from a windows box (same results from the console), and requesting web pages works fine.
Back to top
View user's profile Send private message
cogitate
n00b
n00b


Joined: 05 Dec 2003
Posts: 46
Location: Ontario, Canada

PostPosted: Thu Jul 22, 2004 1:28 pm    Post subject: Reply with quote

Just so people know, this whole issue has been solved by setting a proxy which I had forgotten. I put the proxy settings in /etc/profile and it works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum