Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

There

...

are

...

a

...

few

...

things

...

that

...

you

...

need

...

to

...

do

...

to

...

get

...

the

...

competition

...

VM

...

running

...

on

...

your

...

laptop.

...

First,

...

boot

...

your

...

VM

...

in

...

NAT

...

networking

...

mode.

...

Then

...

proceed

...

with

...

the

...

following

...

instructions.

...

NB:

...

these

...

settings

...

should

...

work

...

with

...

VMware,

...

but

...

the

...

process

...

should

...

be

...

similar

...

if

...

you're

...

using

...

something

...

else.

...

The

...

Problem

...

The

...

problem

...

is

...

in

...

two

...

parts:

...

(1)

...

Wordpress

...

assumes

...

that

...

it

...

has

...

been

...

assigned

...

a

...

DNS

...

name

...

(which

...

is

...

not

...

true

...

on

...

a

...

local

...

installation),

...

and

...

(2)

...

your

...

browser

...

needs

...

to

...

know

...

how

...

to

...

resolve

...

that

...

DNS

...

name

...

to

...

your

...

VM.

...

The

...

Solution

...

We'll

...

tackle

...

the

...

solution

...

in

...

3

...

steps.

...

Step

...

1:

...

Figure

...

out

...

what

...

subnet

...

your

...

VMs

...

are

...

on

...

and

...

find

...

a

...

static

...

IP

...

assignment

...

  1. Find

...

  1. out

...

  1. VM

...

  1. subnet

...


  1. Code Block
    
    ifconfig eth0
    

...

  1. Note

...

  1. the

...

  1. IP

...

  1. address

...

  1. that

...

  1. this

...

  1. produces

...

  1. (

...

  1. aaa.bbb.ccc.ddd

...

  1. ).

...

  1. Edit /etc/network/interfaces.static

...


  1. Code Block
    
    sudo nano /etc/network/interfaces.static
    

...

  1. and

...

  1. make

...

  1. sure

...

  1. it

...

  1. says

...

  1. the

...

  1. following

...

  1. (

...

  1. aaa.bbb.ccc

...

  1. are

...

  1. the

...

  1. values

...

  1. you

...

  1. got

...

  1. in

...

  1. previous

...

  1. step)

...


  1. Code Block
    
    address aaa.bbb.ccc.3
    netmask 255.255.255.0
    gateway aaa.bbb.ccc.1
    dns-nameservers aaa.bbb.ccc.2
    

...

  1. Point /etc/network/interfaces

...

  1. to

...

  1. your

...

  1. new

...

  1. configuration

...

  1. file

...


  1. Code Block
    
    sudo rm /etc/network/interfaces
    sudo ln -s /etc/network/interfaces.static /etc/network/interfaces
    

...

  1. Reboot your VM for changes to take effect
    Code Block
    
    sudo /sbin/reboot
    

...

  1. Test the new network configuration by running
    Code Block
    
    ifconfig eth0
    

...

  1. You

...

  1. should

...

  1. see

...

  1. aaa.bbb.ccc.3

...

  1. as

...

  1. the

...

  1. IP

...

  1. address.

...

  1. Test

...

  1. external

...

  1. connectivity

...


  1. Code Block
    
    ping www.google.com
    

...

Step 2:

...

Now

...

that

...

we

...

have

...

a

...

static

...

IP

...

address,

...

let's

...

make

...

sure

...

the

...

guest

...

VM

...

can

...

resolve

...

it.

...

  1. Edit /etc/hosts

...

  1. file

...

  1. to

...

  1. fix

...

  1. the

...

  1. line

...

  1. that

...

  1. maps

...

  1. ctf-portal.ctf.csail.mit.edu

...

  1. to

...

  1. an

...

  1. IP

...

  1. address

...


  1. Code Block
    
    sudo nano /etc/hosts
    

...

  1. make

...

  1. sure

...

  1. the

...

  1. last

...

  1. line

...

  1. reads

...


  1. Code Block
    
    aaa.bbb.ccc.3  ctf-portal.ctf.csail.mit.edu
    

...

  1. Test with ping
    Code Block
    
    ping ctf-portal.ctf.csail.mit.edu
    

...

  1. this

...

  1. should

...

  1. give

...

  1. you

...

  1. successful

...

  1. pings

...

  1. to

...

  1. aaa.bbb.ccc.3

...

Step 3:

...

Finally,

...

the

...

guest

...

should

...

know

...

how

...

to

...

resolve

...

ctf-portal.ctf.csail.mit.edu

...

,

...

but

...

your

...

host

...

that

...

has

...

your

...

browser

...

does

...

not.

...

  1. The

...

  1. solution

...

  1. is

...

  1. similar

...

  1. to

...

  1. above,

...

  1. but

...

  1. OS-dependent.

...

  1. Find

...

  1. the

...

  1. /etc/hosts

...

  1. equivalent

...

  1. on

...

  1. your

...

  1. machine,

...

  1. and

...

  1. insert

...

  1. the

...

  1. same

...

  1. line

...

  1. you

...

  1. used

...

  1. above

...

  1. at

...

  1. the

...

  1. end.

...

    1. On

...

    1. OS

...

    1. X

...

    1. and

...

    1. Linux,

...

    1. this

...

    1. is

...

    1. /etc/hosts

...

    1. On

...

    1. Windows,

...

    1. this

...

    1. is

...

    1. %systemroot%\system32\drivers\etc\hosts

...

  1. Test

...

  1. your

...

  1. modifications

...

  1. by

...

  1. pointing

...

  1. your

...

  1. browser

...

  1. to

...

  1. ctf-portal.ctf.csail.mit.edu

...

  1. .

...

  1. You

...

  1. should

...

  1. see

...

  1. the

...

  1. Wordpress

...

  1. front

...

  1. page

...

  1. if

...

  1. everything

...

  1. worked.