Trying to connect to the pfsence web interface - virtual-machine

I have installed and set up pfsence on virtual box and it is booting up properly and seems to be working fine. My problems are:
When I tried to ping the LAN IP from my computer's command prompt it does not receive the packets but if i ping it from inside the virtual machine using pfsence then it returns packets.
Also if I try the IP in the browser it does not take me to the pfsence interface. I used all defaults when installing the the pfsence.
Any suggestions will be welcomed
LAN IP - 192.168.20.20
pfsence version - 2.4.5

This means that you are unable to route into the VM from your computer. What is the Network Adapter for your VM attached to in your VirtualBox settings? If you configure it with a NAT you can achieve your desired configuration.
https://www.virtualbox.org/manual/ch06.html#network_nat

Related

How can I communicate a guest VM to Host using Host-Only Adapter? (Virtual Box)

I'm trying to make a connection from a guest virtual machine (VM) to host. I can from host to the guest VM, but not viceversa.
The context:
I'm trying to gain root access on a CTF VM from VulnHub.com, and I configured the guest VM (the CTF VM) network to Host-Only. Instead, if I choose Bridged Adapter, it works normally, but it means the VM is connected "directly" to my physical network adapter, and I want to avoid that for security reasons.
Some other thing I read is set 2 adapter: NAT and Host-Only, but it gives me only the NAT ip address range (10.0.x.x).
Basically, I want to use netcat to make a connection sending a reverse shell from the guest VM to the host, but I want to make it work with the Host-Only Adapter, not Bridged Adapter. How can I make it work?
I found the problem. It was I xd
Why? Because I was trying to access from the host-only adapter (named vboxnet0 in my machine) to the psysical adapter (a switch router). The host-only is a configuration which isolates the networking between the host machine and the guest virtual machine.
So, the IP (IPv4 address) to communicate from guest to host was specified when I created vboxnet0 on Host Network Manager (VirtualBox 6.1). And IS NOT the one I found using the command ifconfig in Linux.
I hope this can help another newbie who have this misunderstanding.
(Pro-Tip: Learn more about networking)

Cannot Connect Other Computers to Selenium Grid

I am able to register nodes to the hub when I'm working on just one computer, but when I try to connect a node that is running on another computer I get a timeout or a message saying the hub must be down or not responding. I have no idea how to solve this.
After starting the hub I get the message: Nodes should register to http:192.168...:4444/grid register.
A tutorial said that
"you can check if Machine B can access the hub's web interface by launching a browser there and going to where "iporhostnameofmachineA" should be the IP address or the hostname of the machine where the hub is running. Since Machine A's IP address is 192.168.1.3, then on the browser on Machine B you should type >http://192.168.1.3:4444/grid/console."
But chrome is giving me a "This site can't be reached error". This must be an issue with my network configuration, but I do not how what I should do to fix it.
I would try using the command 'telnet 192.168.1.3 4444' from your Selenium node and see if it connects. On the machine running the hub, (so 192.168.1.3) run 'netstat -antp | grep 4444' (assuming it's a linux machine) and make sure you see an entry showing that the port is being listened on. If it's a windows machine you can still use netstat but not grep I think. Once you confirm that the hub is indeed listening on port 4444, and you can ping 192.168.1.3, but cannot telnet to port 4444, you have basically determined that there is a firewall issue. Then you would need to look into the firewalls on both machines, and any firewalls between them.

Connecting to ubuntu home server without internet connection

I am running an Ubuntu server with my laptop through an Orcale VirtualBox and I try to maximize the bandwidth of my home server, as it really slows down my internet connection. My router supports up to 300Mbit upload/download speed and my laptop wifi's card up to 150bit.
I configured my server with the following(static IP, configured by vim /etc/network/interfaces):
auto eth0
iface eth0 inet static
address 192.168.1.240
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
192.168.1.1 is my default gateway, and I just configured a static IP which ends with 240.
When my laptop's WIFI is on, I can easily access the server's files(.html files etc) through chrome from any computer on my house, as I just need to enter the server's IP into the browser, plus I can access the server through SSH. But when It's off, I can't even access the server's HTML files through the laptop itself, though I can see that the server is still running on VirtualBox. When I turn the WIFI once again, I can run services which require Apache2 but they really slow my internet connection, as a result I can barely surf the web. I am trying to configure the server to use only the bandwidth of my router, since my actual internet connection is 30 Mbit download and 1.90 Mbit upload(according to speedtest), and It probably interferes with it. Is it possible to access the server without WIFI connection, so it will purely use my router's speed?
Any help would be appreciated.
1) Looks like you using bridged networking in VM config. When your network adapter is connected to real network - you can interact with your VM via network bridge. When it's not connected - your bridge is also closed. If you need to interact with your VM without WiFi connection - you can add one more virtual network adapter to you VM config: use "Host-only" adapter and configure it on both VM and host PC. Your VM will use new host-only adapter to interact with your PC, and old bridged adapter to interact with other network.
2) Check your WiFi speed near the router. Maybe it's too far or provides too weak signal.
PS. Sorry for my poor english.

Vagrant Virtualbox Webserver, Cannot access from external network

I am having an issue and I am not sure where to go, hopefully you guys can help me out here.
I have a virtual box machine that has a bridged network, therefor the device is on my LAN and there is network connectivity to the device.
I can connect to the web server using my local ip adress 192.168.2.41:25878, however when I try to connect to it with my public IP address x.x.x.x:25878 the web browser is waiting for a connection but it never seems to establish.
Here are my config files for Apache2 / Vagrant
VagrantFile - https://gist.github.com/anonymous/7cca95da3cfc22de5333
Apache2 Site - https://gist.github.com/anonymous/d60efd938d9d7d7de60e
Ports.conf - https://gist.github.com/anonymous/8b0c20a78b36cc5d03b0
The port forwarding is correctly set up on my router. What is really puzzling me, is that I am able to connect to the web server using the local IP address 192.168.2.41:25878, however I cannot access it via the public IP address. The web browser is not rejecting the connection, so I am assuming that I have a config error somewhere, specifically in apache.. The web browser shows a spinning wheel when trying to connect.
I've been trying to solve this issue for almost a week now.. I would appreciate any help that you guys may provide.
SOLVED
So I am not sure why the setup above was not working... I changed from bridged networking to NAT and setup host to guest port forwarding through Vagrant (VirtualBox) and it started working!
I also switched to Nginx instead of using Apache.

Eucalyptus installation

I am trying to install Eucalyptus in a virtual machine. I am using vmware version 9 and Eucalyptus FastStart version 3.1 And the network adapter which I have choose is NAT..
I am having problem with front end installation. This are some details about the problem
Details about my node controller
Host name:neel.localdomain
Wired connection:
Ip address:192.168.211.11
NetMask:24
Gateway:192.168.211.2
DNS Server:8.8.8.8,8.8.4.4
Wireless conection:
Ip address:192.168.211.12
NetMask:24
Gateway:192.168.211.3
DNS Server:8.8.8.8,8.8.4.4
Details about my front end
HostName:localhost.localdomain
wired connection:
Ip address:192.168.211.13
NetMask:24
Gateway:192.168.211.4
DNS Server:8.8.8.8,8.8.4.4
Wireless connection:
Ip address:192.168.211.14
NetMask:24
Gateway:192.168.211.5
DNS Server:8.8.8.8,8.8.4.4
Public Ip range list:
192.168.211.50-192.168.211.74
During node registration process i enter the following ip address 192.168.211.11 to get registered but i get the following error
ssh:connect to host 192.168.211.11 port 22:no route to host
rsync: connection unexpectedly closed(0 bytes received so far)[sender]
rsync error:unexplained error (code 255) at io.c(600)[sender=3.0.6]
One more doubt of mine is while installing front end do node controller have to be in on state and also logged in and I am installing both the front end and also cloud controller in different virtual machine but in same laptop is that ok?
FastStart is intended for use on hardware, if you want to use Eucalyptus in a VM you might want to try eucadev although the intended usage is development and testing of Eucalyptus.
please refer to faststart guide:
https://www.eucalyptus.com/docs/eucalyptus/3.4/index.html#faststart-guide/index.html
And yes, I also have installed successfully Eucalyptus from Faststart using VMware workstation.
Basic idea is to Install Node Controller First & after that starts the Front end
installation keeping node controller active on the same laptop using VMware.
Hope this will help to solve your NC registration problem.