UNABLE TO LOG IN TO OPNSENSE FROM LINUX

Started by NerdHunter, January 04, 2023, 11:54:48 AM

Previous topic - Next topic
Hello everyone ! Im new here.. and new on OPNsense.
I type 192.168.1.66 into my browser on Kali and it just says "This site cannot be reached" I tried lot of stuff but nothing works...
I have tried with different browsers and still the same issue. I installed kali on VM virtual Box and OPNSENSE too.
Is there anyone who can help me please ?

If both VMs in Virtualbox, probably you need to revise the network types for each VM. The documentation from Virtualbox explains what type of connectivity and isolation is achieved with each type of network on the settings of the VMs.

dear coockiemonster,
I set a neetwork bridge for linux and two for opnsense ( nat and internal )....
what do u think about it..?

If you use default values of OpnSense, then LAN IP is 192.168.1.1 which you need to use to connect to the firewall.

Any interface other than LAN, will not be able to connect to firewall using it's WAN IP, also you have to add the IPv4 default rule from ---> Firewall ---> Rules ---> LAN to any interface your Linux is connected to.

All firewall rules are interface specific (at least for my understanding), so having IP on same network isn't going to work, if interface client is connected to doesn't have rules which allows that specific type of access

Plus, in Virtualbox VMs cannot communicate with each other or the host in the NAT network. VMware Workstation/Fusion do this far better. In VB you must create a host-only network for that.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


I guess I will have to modify manually the kali net to in order to have the same for the subnet opnsense...
what do u think about it ? but im not able to.!

Not sure if VB has this (nor would it work), but you can try MAC spoofing (cloning of MAC addresses). If VB supports it, you can type MAC address of network interface of any computer which can access your firewall, then DHCP would give your Virtual Machine the IP of a computer which network card MAC you cloned.

Another option which could work (if you are using windows 11 as host machine) is to enable Windows subsystem for Linux and then, you can install KALI for free directly to your windows machine from Microsoft Store

Yes, Virtuabox has an freetext field for mac address with a prepopulated mac that can be changed.
But he'd still have the same problem, as this is about network stack in the hypervisor rather than the what ip the vms get.

thanks guys , it seems I resolved.
But i have an other problem, i will open an other discussion.
Thanks to every one.