how to forward request to docker machine in local network in OSX -


i running docker machine in local network ip & port 192.168.99.100:8080 right now. want connect machine somewhere out of local network , access it, best way found nat sent request laptop computer docker machine. in other words, each request has been sent laptop computer sent docker machine on own ip , port! use pfctl when check port 8585 find out service listening port, can't find , sounds requests not arrive(get to) destination!

i did below:

1- csrutil disable

2- pf role : /etc/pf.anchors/mazafard:

rdr pass on en0 inet proto tcp 192.168.20.203 port 8585 -> 192.168.99.100 port 8080 

3- pf conf /etc/pf-mazafard.conf

rdr-anchor "forwarding" load anchor "forwarding" "/etc/pf.anchors/mazafard" 

and

sudo pfctl -vnf /etc/pf.anchors/mazafard   pfctl: use of -f option, result in flushing of rules present in main ruleset added system @ startup. see /etc/pf.conf further details.  rdr pass on en0 inet proto tcp 192.168.20.203 port = 8585 -> 192.168.99.100 port 8080 

and

sudo pfctl -evf /etc/pf.anchors/mazafard   fctl: use of -f option, result in flushing of rules present in main ruleset added system @ startup. see /etc/pf.conf further details.  no altq support in kernel altq related functions disabled rdr pass on en0 inet proto tcp 192.168.20.203 port = 8585 -> 192.168.99.100 port 8080 pfctl: pf enabled 

and

telnet 192.168.20.203 8585  trying 192.168.20.203... telnet: connect address 192.168.20.203: operation timed out telnet: unable connect remote host 

my osx v: 10.11.4

docker version 1.9.1, build a34a1d5

boot2docker version 1.11.0-rc3, build


Comments