Linux端口转发一键包,iptables端口转发一键搞定

命令输入怕烦怕错,没问题,现在可以一键咯,输入以下蓝色部分。
wget -N --no-check-certificate https://softs.fun/Bash/iptables-pf.sh && chmod +x iptables-pf.sh && bash iptables-pf.sh

# 添加 端口转发规则
bash iptables-pf.sh add
# 删除 端口转发规则
bash iptables-pf.sh del
# 查看 端口转发规则 列表
bash iptables-pf.sh list
# 清空 端口转发规则
bash iptables-pf.sh uninstall
记得删除策略要用bash iptables-pf.sh uninstall
还有千万记得打开端口转发功能
#vi /etc/sysctl.conf
将“net.ipv4.ip_forward”改为1,变成下面的形式:
net.ipv4.ip_forward=1
保存退出,并执行下面的命令来生效它:
#sysctl -p
另外命令输入后如果没有生效,可以尝试reboot
中文的界面,轻松的很,自己玩吧。
如果想手动的用户也很简单,请参考之前的文章,点我
该博文转自:https://doub.io/wlzy-20/

Random Posts

One thought on “Linux端口转发一键包,iptables端口转发一键搞定

  1. 你好,我有个纯ipv6的ipv6,想用个v4/v6的服务器中转,ipv6的访问不了github

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

*
*