Skip to content

Instantly share code, notes, and snippets.

View 4-FLOSS-Free-Libre-Open-Source-Software's full-sized avatar
:octocat:
I may be slow to respond.

Bernd Eichelberger 4-FLOSS-Free-Libre-Open-Source-Software

:octocat:
I may be slow to respond.
  • without gainful employment
  • localhost
View GitHub Profile
@4-FLOSS-Free-Libre-Open-Source-Software
4-FLOSS-Free-Libre-Open-Source-Software / README.md
Created January 4, 2023 22:39 — forked from Sherex/README.md
A script for the Wireguard config options PostUp/PostDown entries. It will allow peers to connect to the Wireguard interface and do IP forwarding (port forwarding will be added later)

IfScript

Hi, I made this for my use-case, but feel free to use it :)
This is currently only handling the NAT side of things, not PAT!
The from-to port options is just a placeholder it will use the first port specified.

route_port 80 80 tcp $vpn_ip $server_ip

How to use?

Download and make executable