跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 使用IPTABLES端口转发
未分類
7 4 月 2020

使用IPTABLES端口转发

NoF 大佬有话说 :

使用IPTABLES端口转发

使用IPTABLES端口转发会导致SS UDP转发失败,求解yc014t
yc002t

ddo 大佬有话说 :

这是转发tcp啊

kzklot 大佬有话说 :

iptables -t nat -A PREROUTING -p udp –dport port -j DNAT –to-destination ip
iptables -t nat -A POSTROUTING -p udp -d ip –dport port-j SNAT –to-source ip

……………….yc022t

NoF 大佬有话说 :

kzklot 大佬有话说 : 2020-4-6 22:59
iptables -t nat -A PREROUTING -p udp –dport port -j DNAT –to-destination ip
iptables -t nat -A POS …

我是用的逗比的一键脚本yc013t

envoy 大佬有话说 :

kzklot 大佬有话说 : 2020-4-6 22:59
iptables -t nat -A PREROUTING -p udp –dport port -j DNAT –to-destination ip
iptables -t nat -A POS …

又看到大佬技术帖了yc010t

Drbo 大佬有话说 :

大佬们你们好

搬瓦工 大佬有话说 :

Firewall 就几行命令,不香吗?
echo 1 > /proc/sys/net/ipv4/ip_forward

systemctl start firewalld.service
systemctl enable firewalld.service

firewall-cmd –permanent –add-masquerade

firewall-cmd –permanent –add-port=8080/tcp
firewall-cmd –permanent –add-port=8080/udp
firewall-cmd –permanent –add-forward-port=port=8080:proto=tcp:toport=8080:toaddr=44.44.44.44
firewall-cmd –permanent –add-forward-port=port=8080:proto=udp:toport=8080:toaddr=44.44.44.44
firewall-cmd –reload

llyang 大佬有话说 :

转发,发源于iptable,firewalld用起来也还方便。

如果你要转换成ufw,最费劲:lol

llyang 大佬有话说 :

NoF 大佬有话说 : 2020-4-6 23:02
我是用的逗比的一键脚本

快10年前的脚本,系统变化太多了。确实该转换成 firewalld, ufw

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具