LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-08-2014, 03:47 AM   #1
yzT!
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 168

Rep: Reputation: 2
To log in a guest (bridged), do I need to open the port on the host?


Just wondering, not at home right now to check this out, if I want to log in via SSH to a VM which network adapter is set as bridged, do I need to open the SSH port at both host and guest?

I know I can port forwarding within own VirtualBox settings, but I mean without doing this.
 
Old 04-08-2014, 04:16 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,224

Rep: Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687Reputation: 7687
as far as I know you only need to open that port on the guest.
 
Old 04-08-2014, 04:28 AM   #3
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
If it is bridge mode, it doesn't need to open port at Host system. Only need to open at Guest VM.
 
Old 04-08-2014, 05:47 AM   #4
yzT!
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 168

Original Poster
Rep: Reputation: 2
I thought the same, but this morning before leaving to work, I tried that and couldn't connect. Of course, forwarding at router is OK.
 
Old 04-08-2014, 05:58 AM   #5
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
If you are home gateway NAT environment, you still need port forwarding.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setup virtualbox serial com port for XP guest on ubuntu host sorooshstrife Linux - Virtualization and Cloud 4 06-18-2013 08:38 AM
no route to host on certain ports, kvm bridged guest el_tedward Linux - Networking 4 05-21-2012 02:11 AM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 04:06 AM
How to log in as root in Guest OS Linux Mint on host Windows Vista using virtual box apanimesh061 Linux - Software 3 11-01-2010 01:03 PM
Bridged networking on Guest VISTA fails 1kyle General 1 02-25-2007 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:04 AM.

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