LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-11-2022, 10:15 AM   #1
linuxprogrammer8
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Rep: Reputation: 0
Can't access Vagrant (VirtualBox) Debian 11 Nginx server outside my LAN


I know I'm missing something stupidly obvious. I'm using a bridged network, port-forwarding my router and have no firewall installed. Accessing the private IP from my host shows the Nginx page fine but not using my domain (which is pointing to my public IP). Should I put
Code:
use_dhcp_assigned_default_route: true
in my Vagrantfile?
 
Old 08-12-2022, 07:55 PM   #2
JP3
LQ Newbie
 
Registered: Aug 2022
Posts: 13

Rep: Reputation: 0
This could be something NOT related to Vagrant at all. Any comments you get are going to be pure speculation and hypothetical without seeing at least the vagrant config file in question, possibly network info as well.

With that said, let's start with a few questions.


1.) It sounds like you do have port-forwarding setup on the router, correct?


2.) Do you have any port-forwarding from the host machine to the guest machine in the vagrant file?
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network :forwarded_port, guest: 80, host: 8080


3.) Do you have the guest setup as a public or private host in the vagrant file?
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network ublic_network


Knowing what you have configured for "config.vm.network" would help.


4.) Assuming DNS for the domain does properly resolve to the public IP?
Code:
# nslookup your-domain-name.com
Does this show your proper public IP?


5.) What response do you get when you visit the domain name in a browser? 404 not found?, 50X server error?, 30X not found?, no response at all and it just times out, or does it instantly closes the connection??? What's it doing? Knowing this may help narrow down where/why the packets are getting dropped.
 
Old 08-16-2022, 08:48 PM   #3
linuxprogrammer8
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Original Poster
Rep: Reputation: 0
All I have network-related in the file is
Code:
config.vm.network "public_network"
since I thought that's the easiest way to go public without tweaking with port-forwarding (since I need to use Certbot anyways and I think it needs port 80, not sure if it works with an 8080 source port (if I know what I'm talking about)). Port forwarding's fine, DNS returns my public IP fine. Web browser just times out, says server's taking too long to respond but using the private IP it loads the Nginx page fine.

Last edited by linuxprogrammer8; 08-16-2022 at 08:49 PM.
 
Old 08-25-2022, 08:59 AM   #4
linuxprogrammer8
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Am I allowed to bump threads?
 
Old 08-25-2022, 10:21 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by linuxprogrammer8 View Post
Am I allowed to bump threads?
Answered in the LQ Rules:
Quote:
Originally Posted by https://www.linuxquestions.org/linux/rules.html
While almost every question does get an answer, we cannot guarantee a response. If your thread does not receive any responses, it will automatically be bumped twice. Threads should not be manually bumped without including additional information.
 
Old 08-25-2022, 11:07 AM   #6
linuxprogrammer8
LQ Newbie
 
Registered: Aug 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Does that include after someone else has replied or does that apply just to the initial thread post? Actually I want to remove this comment now but don't see a delete button.

Last edited by linuxprogrammer8; 08-25-2022 at 11:08 AM.
 
Old 08-25-2022, 01:24 PM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by linuxprogrammer8 View Post
Does that include after someone else has replied or does that apply just to the initial thread post?
Auto-bumping occurs only if nobody replies (after ~16 and ~32 hours, which helps expose unreplied threads to people in different timezones.)

Bumping is the act of posting multiple times without adding new information (or responding to another user).

The best way to get help is to provide relevant information up front rather than requiring others to ask for it.

Think about your issue: consider the information that you haven't yet provided, and diagnostic steps you could take to identify where the issue might be occurring - provide the results of that and people may be able to help further.


Quote:
Actually I want to remove this comment now but don't see a delete button.
There isn't a delete button - the general procedure is to use the report button to ask a mod to do it.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Control Vagrant Box Using Vagrant commands LXer Syndicated Linux News 0 05-14-2021 02:07 PM
LXer: Vagrant Tutorial – Getting Started With Vagrant LXer Syndicated Linux News 0 08-26-2020 04:39 PM
LXer: Vagrant: Sharing folders with vagrant-sshfs LXer Syndicated Linux News 0 04-05-2016 01:53 PM
Vagrant+Ansible playbooks. How to use same playbook on non vagrant provision markotitel Linux - Virtualization and Cloud 1 12-06-2013 09:00 AM
running FTP server on a LAN for folks outside of the LAN johnMG Linux - Networking 4 12-23-2006 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration