题主悬赏了40铜    |    问题正被解决中

关于远程遥控PS4与PC不在一个网段的问题

微博   微信 2018-01-19 16:49     1个回答 PS4
冬天太冷了,但是PS4又和空调不在一个房间,想玩游戏就只能远程遥控了。
问题是网络游戏都要挂代理,但我是用单独的路由器提供代理功能。
导致每次遥控时不能本地发现,必须网络搜索后才能连上,太糟心了。
抓包后发现,原来是UPnP Device这个发现协议(广播给当前网段,PS4在这个网段就会响应并开机),
我本以为可以做DNAT直接发个PS4后就完成发现(应该并没有发个PS4)。
但是,并不能...
upnp的协议书里对转发是这么说的,感觉大概意思是不在同一个网就没发发现。
0.4 Forwarding rules
IP packets whose source or destination addresses are in the 169.254/16 range MUST NOT be sent to any router for forwarding.
Instead, the senders MUST ARP for the destination address and then send the packets directly to the destination on the same link.
IP datagrams with a multicast destination address and an Auto-IP source address MUST NOT be forwarded off the local link.
Devices and control points MAY assume that all 169.254/16 destination addresses are on-link and directly reachable. The
169.254/16 address range MUST NOT be subnetted.
所以,我想了想能不能用这个方法:
iptables -A INPUT -d 192.168.0.255/32 -i eth1 -j ACCEPT
iptables -t nat -A PREROUTING -d 192.168.0.255/32 -i eth1 -j DNAT --to 192.168.1.255
就是把包的广播地址改成PS4所在的网段再广播,但是我抓包并不能抓到这个改过地址的包(说明应该是并没有被改,所以应该是在什么地方没进入nat链就被丢包了吧.)
路由器设置规则入站出站转发规则都是接受.
所以,应该如何设置才能把这个广播包发到PS4的网段中,包是在什么地方被丢的,为何处理下都不愿意.
不要说为啥不多等一会,我就是要立马就能连接上的快感,不能快速连上PS4,我会焦虑的.
回答
  • 瑟瑟发抖,纯瞎猜,网关没设对,或者路由器的防火墙
    2018-01-19 16:58
    •    2018-01-19 17:11 回复 pokemon_233  @lawlist4423 路由表是对的,WAN 192.168.0.0/24,LAN 192.168.1.0/24.防火墙是所有包都接受.
发表评论,请先 登录
T