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