有没有全端口映射技术 只看楼主

vps有公网ip,但是配置低
家里的电脑无公网ip,但是配置高
把公网ip全端口映射到家里(ssh22除外)
求技术,软件,方案

要全端口,或者退一步要批量端口映射吧
  • 2# sasber
  • 2024-9-19 14:59:07
Frp...
可以试试先打个隧道,然后iptables多端口映射
  1. iptables -t nat -A PREROUTING -p tcp --dport 20000:22000 -j DNAT --to-destination 1.1.1.1:30000-32000
  2. iptables -t nat -A POSTROUTING -p tcp -d 1.1.1.1 --dport 30000:32000 -j SNAT --to-source 2.2.2.2
  3. 20000:22000
  4. iptables -t nat -A PREROUTING -p udp --dport 20000:22000 -j DNAT --to-destination 1.1.1.1:30000-32000
  5. iptables -t nat -A POSTROUTING -p udp -d 1.1.1.1 --dport 30000:32000 -j SNAT --to-source 2.2.2.2
  6. 20000:22000
  • 5# HOH
  • 2024-9-19 15:01:45
本帖最后由 HOH 于 2024-9-19 15:03 编辑

全端口直接做直通NAT就完事了
  • 6# Goood
  • 2024-9-20 07:25:53
gost可以端口段映射
  • 7# luckyc
  • 2024-9-20 07:46:11
直接下发IP,把IP播到你机子上,这是全端口了,包括22.
上原机子用内网IP
  • 8# acm
  • 2024-9-20 07:59:03
你猜高防IP是怎么用的
全端口直接做直通NAT就完事了
提示: 作者被禁止或删除 内容自动屏蔽