Can';t从Windows ping我的MFP,但可以通过Linux

Can';t从Windows ping我的MFP,但可以通过Linux,windows,networking,ubuntu,printing,dhcp,Windows,Networking,Ubuntu,Printing,Dhcp,我有麻烦了。无法从Windows7客户端访问我的以太网连接的MFP,但通过Ubuntu(和路由器/服务器)机器它可以访问它 MFP=爱普生触笔颜色730 网络: MFP(192.168.0.100)+Win7客户端(192.168.0.101-200)--->Ubuntu服务器/路由器(192.168.0.1)--->互联网 MFP从DHCP服务器获取正确的IP和设置。在Windows计算机上禁用了所有防火墙等 从Ubuntu我可以用MFP做我想做的事情,但为什么我甚至不能从Windows pi

我有麻烦了。无法从Windows7客户端访问我的以太网连接的MFP,但通过Ubuntu(和路由器/服务器)机器它可以访问它

MFP=爱普生触笔颜色730

网络:

MFP(192.168.0.100)+Win7客户端(192.168.0.101-200)--->Ubuntu服务器/路由器(192.168.0.1)--->互联网

MFP从DHCP服务器获取正确的IP和设置。在Windows计算机上禁用了所有防火墙等

从Ubuntu我可以用MFP做我想做的事情,但为什么我甚至不能从Windows ping它呢

谢谢

编辑:

/etc/sysctl.conf的内容:

#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#
编辑2: 经过一些修复-所有,除了我在本地网络可以使用MFP。 因此,新的难题:

我的本地网络:

“Hakuhono”看不到MFP,但其他人可以

/etc/iptables.conf的内容:

# Generated by iptables-save v1.4.12 on Fri Nov  9 01:51:58 2012
*filter
:INPUT ACCEPT [23:1420]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [20:18904]
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -d 224.0.0.0/4 -i eth0 -j ACCEPT
-A INPUT -s 224.0.0.0/4 -i eth0 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 80:85 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 1985 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 25565 -j ACCEPT
-A INPUT -i eth0 -p tcp -m state --state NEW -m tcp --dport 60000:65000 -j ACCEPT
-A INPUT -i eth0 -j DROP
-A FORWARD -i eth0 -o br0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i br0 -o eth0 -j ACCEPT
-A FORWARD -d 224.0.0.0/4 -j ACCEPT
-A FORWARD -s 224.0.0.0/4 -j ACCEPT
-A FORWARD -i eth0 -p tcp --dport 81:85 -j ACCEPT
-A FORWARD -i eth0 -j DROP
COMMIT
# Completed on Fri Nov  9 01:51:58 2012
# Generated by iptables-save v1.4.12 on Fri Nov  9 01:51:58 2012
*nat
:PREROUTING ACCEPT [377:31747]
:INPUT ACCEPT [39:3558]
:OUTPUT ACCEPT [11:872]
:POSTROUTING ACCEPT [7:570]
-A PREROUTING -i eth0 -p tcp --dport 81:85 -j DNAT --to 192.168.0.101
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Fri Nov  9 01:51:58 2012
# Generated by iptables-save v1.4.12 on Fri Nov  9 01:51:58 2012
*mangle
:PREROUTING ACCEPT [1425:140833]
:INPUT ACCEPT [762:69219]
:FORWARD ACCEPT [495:56655]
:OUTPUT ACCEPT [643:122295]
:POSTROUTING ACCEPT [1152:179096]
-A PREROUTING -d 224.0.0.0/4 -p udp -j TTL --ttl-inc 1
COMMIT
# Completed on Fri Nov  9 01:51:58 2012

您是否将Ubuntu设置为转发数据包?
启用路由:(取自)

  • 通过启用IP转发,为两个接口之间的路由配置网关:

    sudo sh-c“echo 1>/proc/sys/net/ipv4/ip_forward”

  • 编辑/etc/sysctl.conf,并(直到10.04)添加以下行:

    net.ipv4.conf.default.forwarding=1

    net.ipv4.conf.all.forwarding=1

  • 从10.10开始,只需编辑/etc/sysctl.conf并取消注释即可:

    net.ipv4.ip_forward=1


  • 1) 是的,我做到了;2) 没有,但我明天就试试,谢谢;3) 是的,我也有。此外,我还将所有这些文件内容添加到问题中。您的计算机与其他计算机有什么不同吗?(可能是静态ip?)是的,它有一个静态ip=192.168.0.101;我需要将一些端口[81..85]转发到我的计算机。您可以在iptables.conf中看到它。请尝试设置一个IP地址,而不是您在服务器中设置的DHCP范围。(它必须在同一个子网中,可能类似于192.168.0.2)不,它不工作。我更改了192.168.0.101-->192.168.0.3和打印机静态192.168.0.100-->192.168.0.2