portforwarding

Using pfctl on Mac OS 10.11 (El Capitan) to forward ports

最后都变了- 提交于 2019-12-03 13:34:52
问题 I am currently testing if my developing environment will run on the new upcoming Mac OS 10.11 and if I can upgrade as soon as it's released. On my test machine I am currently running the Beta Preview 3. Everything seems to be running fine. I just can get pfctl to forward my ports. I use Vagrant and Parallels Desktop to run a Debian system for my local web server. Vagrant forwards port 8080 on the host to 80 on the guest. So 127.0.0.1:8080 works fine. But in some projects I want to have the

Will html5 websockets be crippled by firewalls?

和自甴很熟 提交于 2019-12-03 10:29:32
问题 I'm extremely excited about html5's websockets spec but I have a concern. These days everyone is operating off of some network, with routers (wired/wireless) that have built in firewalls, windows has a built in firewall too. With that in mind when the server attempts to connect back to the browser that started the websocket handshake will it fail for the vast majority of users? (most people have no idea how to set up port forwarding on their routers) Or is my thinking incorrect and it will go

Trouble with Vagrant - “404 - Not Found”

谁说胖子不能爱 提交于 2019-12-03 07:55:13
I am attempting to make a LAMP box using Vagrant. I have been told that it is quite simple to use. I am completely new to networks and virtual machines and have very little experience with Linux/Ubuntu. I have currently tried following the tutorial on the official documentation page: http://docs.vagrantup.com/v2/getting-started/networking.html . I have gotten up to the networking article in the documentation and can't seem to get it working. Now the problem is, due to my inexperience with networking and linux based OS's I have no idea where to begin trouble shooting. I will try to give as much

Accessing apache on a vagrant sandbox using ssl (port forwarding)

泪湿孤枕 提交于 2019-12-03 06:53:14
问题 I've built a vagrant/virtualbox web server as a development sandbox, and configured apache in the VM for ssl (on the default port 443, with a self-signed certificate). I've tested pages on the VM itself using curl curl -v -k https://mysite.mydomain.com/testSearch/results?postcode=WN8+0BA and it seems to work quite happily, so I'm satisfied that apache is correctly configured and working in the VM. However, when I try to access the VM from my host's browsers over https, I'm unable to do so. I

How can I forward a port from one docker container to another?

北慕城南 提交于 2019-12-03 05:13:40
问题 I commonly see solutions that expose a docker container's port to the host. In my case I want to forward a local port from one container, to another. Let's say I run a service on container A that has a hard-coded configuration to access db on localhost 3306 . But I want to run the db server on container B . What is the best way to port-forward from A-localhost:3306 to B-IP:3306 ? 回答1: Install socat in your container and at startup run socat TCP-LISTEN:3306,fork TCP:B-IP:3306 & This will

Make container accessible only from localhost

跟風遠走 提交于 2019-12-03 04:54:50
I have Docker engine installed on Debian Jessie and I am running there container with nginx in it. My "run" command looks like this: docker run -p 1234:80 -d -v /var/www/:/usr/share/nginx/html nginx:1.9 It works fine, problem is that now content of this container is accessible via http://{server_ip}:1234 . I want to run multiple containers (domains) on this server so I want to setup reverse proxies for them. How can I make sure that container will be only accessible via reverse proxy and not directly from IP:port ? Eg.: http://{server_ip}:1234 # not found, connection refused, etc... http:/

Using pfctl on Mac OS 10.11 (El Capitan) to forward ports

纵饮孤独 提交于 2019-12-03 03:45:20
I am currently testing if my developing environment will run on the new upcoming Mac OS 10.11 and if I can upgrade as soon as it's released. On my test machine I am currently running the Beta Preview 3. Everything seems to be running fine. I just can get pfctl to forward my ports. I use Vagrant and Parallels Desktop to run a Debian system for my local web server. Vagrant forwards port 8080 on the host to 80 on the guest. So 127.0.0.1:8080 works fine. But in some projects I want to have the exact same domain local as it will be in production. (without the :8080) Also I just like it more. ;-) To

Will html5 websockets be crippled by firewalls?

瘦欲@ 提交于 2019-12-03 02:02:58
I'm extremely excited about html5's websockets spec but I have a concern. These days everyone is operating off of some network, with routers (wired/wireless) that have built in firewalls, windows has a built in firewall too. With that in mind when the server attempts to connect back to the browser that started the websocket handshake will it fail for the vast majority of users? (most people have no idea how to set up port forwarding on their routers) Or is my thinking incorrect and it will go through fine? Mark Renouf I'm not an expert (so please check to confirm) but I believe there will be

Port forwarding on Windows 7

a 夏天 提交于 2019-12-03 00:23:05
How do I redirect an incomming request on port xxx to localhost:yyy on windows 7? Development Server (vs 2008) only allow access from localhost which isnt good enough. I need to test my app from various computers. Thanks for the suggestions guys, although I found the answer myself. I downloaded Microsoft SOAP Toolkit version 3 and started MSSoapT, created a formatted trace listening on port 8080, forwarding to host: 127.0.0.1 port: 3804. My problem was I used "localhost" and not "127.0.0.1". Now every request made to my development machine from other computers through port 8080 will be

Accessing apache on a vagrant sandbox using ssl (port forwarding)

﹥>﹥吖頭↗ 提交于 2019-12-02 19:25:28
I've built a vagrant/virtualbox web server as a development sandbox, and configured apache in the VM for ssl (on the default port 443, with a self-signed certificate). I've tested pages on the VM itself using curl curl -v -k https://mysite.mydomain.com/testSearch/results?postcode=WN8+0BA and it seems to work quite happily, so I'm satisfied that apache is correctly configured and working in the VM. However, when I try to access the VM from my host's browsers over https, I'm unable to do so. I've added config.vm.forward_port "https", 443, 8443 to my vagrantfile, but trying to access the url