问题描述:

I'm trying to forward incoming traffic to our public IP address on port 80 to my Ubuntu Vagrant box. Its set up as public network / bridge with its own internal IP. When I access a website hosted on my Vagrant box from any other PC on my network, it works fine. When a computer outside our network accesses a website hosted on my Vagrant box through our public IP, it hangs and eventually times out.

I'm sure the router is set up properly because if I change port 80 to point to the IP of a physical server on the network, that works for outside traffic. Its only when I point the port to my vagrant box that the connection times out from outside our network.

I've tried this also on port 443, and even forwarding 22 and ssh does the exact same thing. Just times out.

I've turned the firewall off, but I've never been able to find anything in any logs about dropped connections anyway. I can even use the public IP from an internal computer on the network, and that works.

Would love any suggestions on how to get this working for outside traffic.

This is how my Vagrantfile is set for networking:

config.vm.network "public_network",

bridge: "enp3s0",

virtualbox__intnet: false,

mac: "xxxxxx",

nic_type: "Am79C973"

相关阅读:
Top