服务器的问题,帮我解决一下好吗?

由 cactus 在 09-26-2004 15:07 发表:

服务器的问题,帮我解决一下好吗?

我配置了一台RH8的代理服务器,当在字符状态下ping www.163.com

是可以连接的.但在XWINDOW下用mozilla上网就出现

当于 www.163.com联系时,连接被拒绝 的提示.用squid做的代理在客户端访问时也提示Cannot assign requested address.

是怎么回事呢?


由 Snoopy 在 09-27-2004 02:16 发表:

回复: 服务器的问题,帮我解决一下好吗?

> quote: > > * * * > > 最初由 cactus 发表
>
> **我配置了一台RH8的代理服务器,当在字符状态下ping www.163.com
>
> 是可以连接的.但在XWINDOW下用mozilla上网就出现
>
> 当于 www.163.com联系时,连接被拒绝 的提示.用squid做的代理在客户端访问时也提示Cannot assign requested address.
>
>
>
> 是怎么回事呢? ** > > * * *

是不是浏览器设置了代理 ?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 cactus 在 09-27-2004 09:41 发表:


没有呀。

这个问题困扰我很久了,请帮帮忙!


由 nbslr 在 09-27-2004 09:57 发表:


还是你的 代理。里面设了拒绝服务看看squid.conf


由 cactus 在 09-27-2004 10:23 发表:


帮我看看。

[root@Atmnet root]# ping ftp.freebsdchina.org

PING ftp.freebsdchina.org (61.241.82.63) from 61.161.72.211 : 56(84) bytes of data.

64 bytes from 61.241.82.63: icmp_seq=1 ttl=49 time=135 ms

64 bytes from 61.241.82.63: icmp_seq=2 ttl=49 time=122 ms

[root@Atmnet root]# ftp ftp.freebsdchina.org

ftp: connect: Cannot assign requested address

ftp>

应用域名的程序都出现上面的错误!


由 Snoopy 在 09-27-2004 10:26 发表:


a记录指了吗 ?


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 cactus 在 09-27-2004 10:34 发表:


我不清楚呀,我没有启动DNS,我是在XWINDOW里配置的网络。

但没有启动named呀。


由 smile787 在 09-27-2004 10:58 发表:


你这是在客户机器里的结果还是服务器里的结果?

网络结构?


由 cactus 在 09-27-2004 11:01 发表:


用putty ssh 到服务器上操作的。

服务器上执行的结果。

你们真的是热心人。感谢万分!


由 smile787 在 09-27-2004 11:05 发表:


贴一下服务器NAT设置和脚本,


由 cactus 在 09-27-2004 11:21 发表:


以下是我的rc.local脚本,

外网IP 61.161.72.211 eth1

内网IP 192.168.0.68 eth0

[root@Atmnet rc.d]# cat rc.local

#!/bin/bash

touch /var/lock/subsys/local

echo "Starting iptables nat rules ..."

service iptables stop

/sbin/modprobe ip_tables

/sbin/modprobe ip_nat_ftp

/sbin/modprobe ip_conntrack_ftp

echo 1 > /proc/sys/net/ipv4/ip_forward

/sbin/iptables -t nat -A POSTROUTING -j MASQUERADE

#qrt's SOHO server

iptables -A INPUT -p tcp -m multiport --dport 8000 -j ACCEPT

iptables -A INPUT -p tcp -m multiport --dport 8001 -j ACCEPT

iptab

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus