Skip to content

Instantly share code, notes, and snippets.

@not-mms
not-mms / relayd redirection and reflection.md
Last active September 15, 2017 01:07
Configure relayd redirection to be usable on the LAN as well as well as on the internet.

There is a server running in the LAN and port redirection is used to make it accessible from the internet.

To make this redirection work for clients on the LAN too you have to add an additional NAT rule as suggested in PF FAQ.

If redirection rules are generated by relayd do the following to add an additional NAT rule:

  • Modify the relevant redirection section in relayd.conf to match and tag packets (see example below).
  • Add the necessary rules for tagged packets (see example below) following the relayd/* anchor in pf.conf.
@not-mms
not-mms / keybase.md
Last active September 25, 2017 11:08

Keybase proof

I hereby claim:

  • I am not-mms on github.
  • I am mms (https://keybase.io/mms) on keybase.
  • I have a public key whose fingerprint is 4DF5 479E 5196 9B0F D556 43B0 E281 D8AA 3590 BEBB

To claim this, I am signing this object: