Hi,
I'm starting play with vagrant and i can not make work port forwarding from 
Fedora 19 (host) to Centos7.0(guest), after do "vagrant up" tcp port 8080 
listen on host and httpd is listen on tcp 80 at guest machine, however 

curl -v http://127.0.0.1:8080
* About to connect() to 127.0.0.1 port 8080 (#0)
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: 127.0.0.1:8080
> Accept: */*
> 
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer


Using netcat to debug i see that connection is established to 8080 on host 
but nothing on guest at 80, iptables are disabled on both systems, what 
could it be? here my Vangrat file

----------------------------------
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're 
doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

        config.vm.define "app1" do |app1|

                app1.vm.box = "CentOS7.0 x86_64 minimal + Puppet + 
VirtualBoxGuestAddtions 4.3.14"
                app1.vm.box_url = 
"https://dl.dropboxusercontent.com/s/w3lbekm7eunrskm/centos-7.0-x86_64.box";
                app1.vm.hostname = "app1"
                app1.vm.network "forwarded_port", guest: 80, host: 8080, 
auto_correct: true
                app1.vm.provision :shell, :path => "bootstrap.sh"

                app1.vm.provision "puppet" do |puppet|
                        puppet.manifests_path = "puppet/manifests/"
                        puppet.manifest_file = "Apache.pp"
                end
        end

end

----------------------------------



-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to