Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9267455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:33:14+00:00 2026-06-18T14:33:14+00:00

I have windows 7 pro host with ubuntu server 12.10 as guest. The host

  • 0

I have windows 7 pro host with ubuntu server 12.10 as guest. The host has a static ip. The networking mode is NAT with port forwarding from host port 22 to guest port 22. I don’t want to use use bridged networking because of company policies.

I need to ssh (port: 22) into the guest from the internet and I want to limit inbound connections to guest port 22 to certain ip addresses. So I enabled ufw in the guest and added rules to it. When I try to ssh into the guest from one of the allowed ip addresses, it’s not connecting. If I disable ufw, it works.

What could be wrong? I don’t know much about NAT and guest firewalls.

Thanks in advance for your response.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T14:33:16+00:00Added an answer on June 18, 2026 at 2:33 pm

    this is normal, because the guest VM (Ubuntu) will receive the connection from the NAT Gateway IP (ie the host (Win7) address) and not the client who is connecting to ssh.

    to solve this issue , you will need to remove ufw rules and set the same rules in the host windows firewall.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a virtual ubuntu server running in windows 7 pro using VMware Player.
I have SQL Server 2000 and 2008 installed on a Windows XP Pro box.
I have SQL Server 2005 installed and VS 2008 on Windows XP Pro SP2.
I have a curious problem. A 64-bit Windows 7 Pro box has IIS 7.5/64
I have a windows XP Pro in a vritual machine with SQL Server 2008
I am running IIS7 on Windows 7 Pro. I have a VS2010 solution from
We have a server running Windows 7 Pro. I have several Python script I'd
Visual Studio 2005 C++ Windows XP Pro I have a sample application that I
I have Eclipse PDT version 1.3.0 PHP Version 5.3.8 Running on windows XP Pro
I have Windows 7 OS. I have followed the instructions from the PETSc web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.