Hello,

If you comment those out, and then use the gui I think the result will be the 
same.

I think if you can came up with the VBoxManage <something> that can do what you 
are afterm then you may use a virtualbox block to run that, and not use the out 
of the box forward port.

make sense?

Thanks
Alvaro


> On 28/11/2015, at 9:43 AM, Michael Taylor <[email protected]> wrote:
> 
> I'm trying to use graylog with Vagrant in a port forwarded Virtualbox 
> appliance and I'm noticing that every message has 10.0.2.2 as its source IP.
> 
> Vagrantfile:
> Vagrant.configure(2)  do |config|
>   config.vm.box = "ubuntu/trusty64"
>   config.vm.hostname = "graylog"
> 
>   config.vm.network :forwarded_port, guest: 1514, host: 1514, protocol: 'udp'
>   config.vm.network :forwarded_port, guest: 9000, host: 9000
>   config.vm.network :forwarded_port, guest: 12900, host: 12900
>   config.vm.network :forwarded_port, guest: 12201, host: 12201, protocol: 
> 'udp'
>   config.vm.network :forwarded_port, guest: 12201, host: 12201, protocol: 
> 'tcp'
> 
> Example from tcpdump:
> 
> 15:34:33.986334 IP 10.0.2.2.58556 > graylog.12201: Flags [P.], seq 
> 76983:77640, ack 1, win 65535, length 657
> 
> This tells me that Vagrant set up the VM with SNAT and every forwarded packet 
> gets the firewall IP as its source. Is there a way to disable this (use DNAT 
> only) so the source IP of forwarded packets is correct? I don't dare make a 
> bridged network for security reasons: graylog requires a version of 
> Elasticsearch with no support for authentication and the Java version in the 
> official appliance image is quite old.
> 
> 
> 
> 
> -- 
> This mailing list is governed under the HashiCorp Community Guidelines - 
> https://www.hashicorp.com/community-guidelines.html 
> <https://www.hashicorp.com/community-guidelines.html>. Behavior in violation 
> of those guidelines may result in your removal from this mailing list.
>  
> GitHub Issues: https://github.com/mitchellh/vagrant/issues 
> <https://github.com/mitchellh/vagrant/issues>
> IRC: #vagrant on Freenode
> --- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/vagrant-up/5dafbfe8-c7cf-4735-90d1-21e1b0a5cee5%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/vagrant-up/5dafbfe8-c7cf-4735-90d1-21e1b0a5cee5%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/FB7732EB-6C1B-4EB9-8A2D-D32B0D8E05C0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to