The invention provides a cross-NAT (
Network Address Translation)
network segment ceph rbd block storage single
port access method and a cross-NAT
network segment ceph rbd block storage single
port access system, comprising a cross-NAT
network segment ceph rbd block storage single
port access method, comprising: accessing an internal
local area network through
the Internet according to a command request; network addresses of
the Internet and the internal
local area network are converted and matched, and then a ceph service is accessed; and accessing the vdisk through mapping of one port and a plurality of osd process port numbers. According to the invention, the rbd proxy is utilized, and the ceph rbd block storage single port access across the NAT network segment is realized. Only an rbd proxy needs to be configured to realize a ceph rbd block storage single port of a cross-NAT network segment, so that the abuse of a
public network port is reduced, the resource waste is avoided, the complexity of design and implementation of
application software for accessing storage is reduced, and the
fault rate of storage reading and writing is reduced.