Brook/iptables port forwarding one-click management script, support DDNS

Brook/iptables port forwarding one-click management script, support DDNS

1. Brook Script Version

A modified version of the original Brook port forwarding one-key management script, which adds support for dynamic domain names and automatically updates the domain name IP after enabling monitoring.

Based on iptables firewall, remember to install iptables.

Install Brook, then configure port forwarding, and finally start Brook.

 wget -N --no-check-certificate https://zhujiwiki.com/wp-content/uploads/2020/01//brook-pf-mod.sh && chmod +x brook-pf-mod.sh
./brook-pf-mod.sh

Reprinted from: https://github.com/yulewang/brook/

2. iptables script version

 wget -N --no-check-certificate https://zhujiwiki.com/wp-content/uploads/2020/01/iptables-pf.sh && chmod +x iptables-pf.sh
bash iptables-pf.sh

3. Related issues

1. Uninstall firewalld and ufw

 apt remove firewalld ufw

or

 yum remove firewalld ufw

Then reboot.

2. Install iptables

 yum install -y iptables
yum update iptables 
yum install iptables-services

iptables configuration file: /etc/sysconfig/iptables

3. Enable the forwarding function

 echo -e "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sysctl -p

4. Set up the iptable automatic loading rules function at startup

CentOS systems:

 service iptables save
systemctl enable iptables.service

Debian/Ubuntu systems:

 iptables-save > /etc/iptables.up.rules
echo -e '#!/bin/bash\n/sbin/iptables-restore < /etc/iptables.up.rules' > /etc/network/if-pre-up.d/iptables
chmod +x /etc/network/if-pre-up.d/iptables

<<:  Collection of registrable 4-character .com domain names

>>:  HKServerSolution: 359 yuan/quarter/2G memory/15GB SSD space/1TB traffic/1Gbps port/KVM/San Jose CN2 GIA

Recommend

VPSlices: $2.33/month/4GB RAM/200GB SSD space/5TB bandwidth/OpenVZ/New Jersey

VPSlices, registered in England in May 2017, only...

Kazila: $4.5/month/1GB RAM/25GB SSD space/1TB traffic/XEN/Dallas

Kazila, an American hosting provider, was first i...

FtpIt: $1.64/month/512MB RAM/10GB SSD space/2TB bandwidth/OpenVZ/New York

FtpIt, which has been introduced several times, n...

simplyhosting: £7.25/month/i3-2100/4GB memory/2TB hard drive/5TB traffic/UK

Simplyhosting, a British hosting provider, claims...

WootHosting 2GB RAM Los Angeles KVM VPS Review

Details: WootHosting: $18/year/1GB memory/30GB sp...

Spearware Networks 512MB RAM 200Mbps Bandwidth US Native IP Tampa KVM VPS Review

Details : Spearware Networks: $1.75/month/512MB R...

AcclaimedHost:$7/month/4GB/110GB/4TB/OpenVZ/Los Angeles

AcclaimedHost is an American hosting company foun...

icdsoft: .eu domain name, 10 years for only 10 euros [only in Europe]

icdsoft, an established business, now offers a di...