A bash script to set up port forwarding in iptables on Linux operating systems automatically and easily.
OneClick command to download script:
curl -o epf.sh -L https://raw.githubusercontent.com/Incognito-Coder/EPF/master/iptables.sh && chmod +x epf.shthen you must see epf.sh in your current dir.
bash epf.sh 185.132.80.187 443,8080,2083,2096 tcpFirst arg is your destination server.
Second arg is Specific port,it can be single [443] or array [1234,8745,8585].
Third arg is Protocol mode TCP/UDP pass lowercase string tcp , udp .
this command flush all chain rules in iptables.
./epf.sh flushu can access to shell based menu with this command
sudo ./epf.sh menuubuntu@fakemind:~$ sudo ./epf.sh menu
Welcome to Easy Port Forwarder
1) Port Forward 3) Port to Port 5) Save Rules 7) Print Usage
2) NAT Forward 4) Flush Rules 6) Restore Rules 8) Quit
Please enter your choice:
- Ubuntu|Debian
- CentOS
- ArchLinux