Skip to content

Instantly share code, notes, and snippets.

configure
set interfaces ethernet eth1 address dhcp
set interfaces ethernet eth0 address 192.168.2.1/24
set nat source rule 10 outbound-interface eth1
set nat source rule 10 source address 192.168.2.0/24
set nat source rule 10 translation address masquerade
commit
save
exit
reboot
show interfaces ethernet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment