configure virtualbox vms to use proxy settings of host [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have about 6 VMs for testing purpose in Virtualbox. We have a proxy at work and I do not have a proxy at home. so I switch the settings now and then to get internet inside the VMs. But there has to be a way that the VMs adapt the system settings of my host, or am I wrong? Google didn't help quite good yet. I just found an article about a Microsoft loop back interface, but nothing for Linux. By the way I use Linux just since October, so I am fairly new with this operation system
Some system details:
Host:
arch-Linux with gnome shell and virtualbox 5.0.12
Guests:
Ubuntu, win7, win8, centos6 with nat bridge for internet purpose and host-only adapter for internal network
Anybody experience in the matter who can help me?

I had the same problems you had. I wanted to configure VM's over a corporate proxy. Googling did not help me either. After lots of trials and errors, i finally managed to connect to the internet.
What i did is to configure proxy settings in Guest OS.
I am using ubuntu as Guest OS and its easy to configure the proxy settings as follows:
sudo gedit /etc/apt/apt.conf
It opens the following file:
Acquire::http::Proxy "http://username:pass#myProxyAddress:port/";
Acquire::https::Proxy "https://username:pass#myProxyAddress:port/";
Acquire::ftp::Proxy "ftp://username:pass#myProxyAddress:port/";
Acquire::socks::Proxy "socks://username:pass#myProxyAddress:port/";
And you should change the username, pass, myProxyAddress and port with your own information. It should be good to go. Some apps like FireFox may still not be able to work so you can configure them manually.
I have done this in Ubuntu but it theoretically work for all linux systems. I don't how to configure system wide proxy for windows or would it solve the problem but it should also work for it.
Hope it helps.
ps: Virtual Host Adapter was blocking my Host OS (Windows). You can either bridge or disable the network adapter so that Host and Guest OS can connect to the internet.

You can try this. I tested it on CentOS with NAT model.
192.168.217.1 is gateway address, and port is proxy port in host.
export ALL_PROXY=http://192.168.217.1:port
Please check you have allow LAN connection to your proxy.

Related

Linux SSH Server (tunneling) without network tweaks such as port forwarding or firewall exceptions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Background Info:
My office is closing down due to COVID19 outbreak policies.
Unfortunately we do not have a VPN in place, and currently one of my coworkers has to going in every day to make commits for everyone who is working remotely--our repos are stored inside the office internal network.
The Problem:
I need to be able to get inside the internal network remotely using SSH, without having to make any changes to network configuration (I do not have access to the network devices). This means I would not be opening ports, or making firewall exceptions for example.
I was thinking of using a raspberry pi with a fresh linux image (any supported distro would be fine, I'm open to suggestions).
My goal is to plug the pi3 to my workstation ethernet port, and leave it there for the time being. I would not be able to do any physical reboots , etc.
I need a suggestion for a free tunneling solution that would be easy to set up and use for 1-10 people to be able to connect using a secure connection (SSH) and gain access to internal resources remotely.
Question:
I need suggestions for which distro would be nice and light enough for the pi3 to handle, and SSH server software to use.
I looked into OpenSSh which has been suggested in other similar threads, but it would require configuring firewall and opening port 22, which I cannot do.
Other
I've used Google Chrome's remote desktop in the past and it has worked wonderfully. I would set up the "host" machine with it, and then any other machine with Chrome (with the same account) could remote in without any sort of network configuration.
I guess I just need something similar to this, but instead of remote desktop I need an SSH solution. I would create a few root-enabled accounts to allow other devs to connect to it at the same time if possible.
I found a solution to my problem and will pass it along to my IT team for proper approval prior to putting in place. However I wanted to share the answer here in case anyone else ever has a similar situation.
As stated, be sure to check your company's policy and consult the proper channels before doing this sort of thing, as it can cause security risks and could get you fired... so be advised, do this at your own risk!
With that said, a "Reverse SSH" could be the solution to the problem. It allows you to connect to a machine inside of a network without having to open ports or firewall exceptions.
This isn't a good long term solution for most cases, but might be the workaround you need to do the trick in a pinch.

Windows 10 to Centos7 Remote Desktop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
My desktop computer is running Windows 10. I have created a virtual computer using Oracle VM Virtual Box that runs Centos7. In my Virtual Box settings I have changed the network adapter to Bridged Adapter. Everything starts correctly when the vm comes up. I then installed xrdp and tigervnc-server through epel. I have both xrdp and tigervnc services running. However when I try to remote desktop from Windows 10 to my virtual box, it can not connect. I can open a cmd window on Windows 10 and ping my ip address. The only thing that sticks out to me is that when I tried to enable the xrdp service, it states that it is not a native service. It still starts and attaches to port 3390. I changed this from 3389 after reading some tickets on stackoverflow.
xrdp.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig xrdp on
Is this the firewall biting me? What did I miss?
TIA
Ok, so it was the firewall that was biting me along with VM Virtual Box. In order to do remote desktop to a vm in Virtual Box, you must download an install VM Virtual Box extension pack. That will allow you to enable rdp under the display tab in settings. I also had to add the following to the CentOs firewall
firewall-cmd --permanent --add-port 3389/tcp
firewall-cmd --permanent --add-port 3350/tcp
Finally, I had to make sure that my vncpasswd was set to the same value as my CentOs login password. Otherwise it would not allow me to log in.

Connecting WinSCP with Ubuntu on VirtualBox [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm trying to connect Winscp with virtual machine. I'm working on Windows,and this problem is killing me for 5 hours. Studied a lot of examples, but I can't find out what is the problem. I tried to connect with putty to, but connection is every time refused. Tried to connect with every protocol, but didn't help. I even can't install ssh into Ubuntu, because something is blocking but not firewall(failed to fetch us archive ubuntu com). Port forwarding too wasn't very helpful.
1st Adapter is NAT, and second host-only.
Problem is that I need to enter home directory, and add some files, so I'm trying to find the easiest way to do this.
I would really appreciate any help. Here is my ifconfig, ip a, and interfaces picture.
1
Thanks!
Use the following step to configure.
1- Run ipconfig /all on your windows machine and see which ip are assigned to your virtual adopters.
2- Assign the same range ip to your virtual machine. For example:
If on virtual adopter ip is: 192.168.130.1
Then assign ip to your vm as: 192.168.130.*
and set gateway to : 192.168.130.1
and restart the service network and check the reachability by pinging from both side.
3- If You able to ping then you will be able to use internate on your VM. Then install the ssh.
Now you will be able to use.

Can't access localhost in LAMP [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
First of all, I'm beginner at this, so don't be too harsh.
Yesterday, I wanted to make Linux Server. Installed LAMP, PhpMyAdmin. Man the websites IP static. I installed moodle on my website server. Then I closed VirtualBox and went to sleep.
Today when I runned my server and tried to access /phpmyadmin or (ipaddress)/moodle it says that webpage isn't available. Does this mean I have to do everything from the scratch again?
I'd appreciate any help.
I tried command sudo service apache2 start , but nothing changes.
Run this command in Terminal:
sudo service apache2 restart
OR
sudo restart apache2
Try the Answer on this Post
There are a lot of basic troubleshooting steps to take here.
You mentioned "localhost" in your question, but this doesn't sound like the local host; if you're connecting to your guest machine from the host machine then both machines will treat it as a networking connection (because it is networking). How that networking is configured will depend on your VirtualBox configuration.
Are you sure the virtual machine is running, the IP address is assigned, and networking is, well, working? Try pinging the virtual/guest machine from the host machine. After pausing and resuming, one of my Debian machines used to always pick up a DHCP address on the host-networking adapter despite being set to a static address in /etc/network/interfaces. Look at ifconfig to verify the IP address listed is what you expect.
Are you sure Apache is running? Try accessing it from within the guest machine on http://localhost -- by telnet to port 80, command-line tool, or full-on web browser.
Are other services working? Try to connect remotely to whatever you have running: SSH, FTP, IMAP, MySQL, NTP -- try to connect and see if the problem is the network or the service.

Can't find windows share despite having connected VPN [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I'm a programmer dammit, I should be allowed to ask these kinds of IT questions! :)
Anyway the problem is as follows. I'm writing an automatic build script to deploy code to a live windows 2003 server. To get access to the server I enabled the VPN role, and I can connect to it remotely from my dev machine using a username and password I set up on the server from the network connections screen.
I set up a share on that machine and gave full share+security permissions to the account I am using to connect. Once connected, I would have thought I would be able to see the share. In fact I can't even see the computer even though the VPN is connected (if i type '\IPADDRESS\' into the run box nothing comes up).
Am I missing an essential step here?
So you can use Remote Desktop Connection to connect to the server, but CIFS/SMB (shares) is not working?
Is there a Windows firewall setting that needs to be changed (... I don't even know if there was a 2003 update that included Windows firewall)?
Pinging the IP address results in which error message (or, hopefully none if you can RDC)?
Is the remote server and your local dev box on the same IP subnet? If its not routed properly you may be trying to hit a local address.
It looks to me like you can't connect to a network share from inside the same session that you esatblished the VPN connection in. I now manually open the VPN connection, then kick off the build scripts

Resources