feat: Add a script to manage port-forwarding on server #22
No reviewers
Labels
No labels
bug
cleanup
dotfile
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
inetsix-configs/dotfiles!22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/port-forwarding"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Usage:
Usage: ```bash $ sudo bash port-forwarding.sh Usage: port-forwarding.sh [COMMAND] [OPTIONS] Commands: init Initialize port forwarding environment add <ext_port> <int_ip> <int_port> <protocol> Add port forwarding rule remove <ext_port> <int_ip> <int_port> <protocol> Remove port forwarding rule list List all port forwarding rules flush Remove all port forwarding rules save Save current rules to file Examples: port-forwarding.sh init port-forwarding.sh add 80 192.168.1.10 80 tcp port-forwarding.sh add 8080 192.168.1.20 80 tcp port-forwarding.sh add 53 192.168.1.5 53 udp port-forwarding.sh remove 80 192.168.1.10 80 tcp port-forwarding.sh list port-forwarding.sh save Configuration: External Interface: eno1 Internal Interface: wg0 Note: Edit the script to change interface names if needed. ```Pull request closed