Skip to content

Instantly share code, notes, and snippets.

@kbruner
Created November 30, 2020 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kbruner/821348683827777af92fe620b0214660 to your computer and use it in GitHub Desktop.
Save kbruner/821348683827777af92fe620b0214660 to your computer and use it in GitHub Desktop.
root@nucklehead:~ # for i in 0 1 2; do
ipfw add 25${i} fwd 10.10.0.2${i} ip from any to 10.100.${i}.0/24 keep-state
done
00250 fwd 10.10.0.20 ip from any to 10.100.0.0/24 keep-state :default
00251 fwd 10.10.0.21 ip from any to 10.100.1.0/24 keep-state :default
00252 fwd 10.10.0.22 ip from any to 10.100.2.0/24 keep-state :default
root@nucklehead:~ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment