Skip to content

Instantly share code, notes, and snippets.

@lattera
Created February 28, 2020 16:59
Show Gist options
  • Save lattera/7ce19b4f3e913728514d3ef7276995f3 to your computer and use it in GitHub Desktop.
Save lattera/7ce19b4f3e913728514d3ef7276995f3 to your computer and use it in GitHub Desktop.
table <nats> counters { \
192.168.8.0/24, \
192.168.7.0/24, \
192.168.10.0/24, \
192.168.20.0/24 \
}
scrub in all
nat on em0 from {<nats>} to any -> (em0)
nat on wlan0 from {<nats>} to any -> (wlan0)
nat on ue0 from {<nats>} to any -> (ue0)
rdr on em0 proto tcp from any to (em0) port 80 -> 192.168.7.9 port 80
# laptop-dev-03
rdr on em0 proto tcp from any to (em0) port 2222 -> 192.168.8.10 port 22
# ghidra-01
rdr on em0 proto tcp from any to (em0) port 2223 -> 192.168.8.105 port 22
# win10
rdr on em0 proto tcp from any to (em0) port 3389 -> 192.168.8.100 port 3389
pass in proto tcp from any to (em0) port 22
pass out all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment