Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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