does not work with two ip addresses of the same network

Started by Vlad, February 18, 2025, 03:12:18 PM

Previous topic - Next topic
Hello. I set up the network in this way: Internet, router, opnsense firewall. There was a problem with the IP, I set LAN 192.168.50.4 and WAN 192.168.50.92 and nothing works. I can't log in to the web interface. Please tell me how to solve the problem, it is very necessary.



Quote from: Vlad on February 18, 2025, 03:12:18 PMHello. I set up the network in this way: Internet, router, opnsense firewall. There was a problem with the IP, I set LAN 192.168.50.4 and WAN 192.168.50.92 and nothing works. I can't log in to the web interface. Please tell me how to solve the problem, it is very necessary.



I am assuming you are trying to setup opnsense for home use, from your post, it doesn't seem you are trying to do anything else.

Simply remove router from your setup. You won't be able to place opnsense behind a router with static private IP address assigned to WAN (basic network 101: Each interface of each router must belong to disjoint subnet to be able to control traffic) and without setting up transparent filtering, opnsense is just plain router with firewall, IDS/IPS and plugin functions.

So your setup should be either any of the following listed from easiest and least amount of configuration requiring way to setup to hardest and most configuration requiring way to setup:
 
  • Internet ---> OpnSense ---> Client
  • Internet ---> Opnsense ---> Switch ---> Clients
  • Internet ---> Opnsense ---> Switch ---> AP ---> Clients
  • Internet ---> OpnSense ---> AP ---> Clients
  • Internet ---> Opnsense ---> Router which has DHCP, NAT and Firewall disabled ---> Clients

WAN IP should be a public IP address, asigned by your ISP using DHCP. and you don't access to opnsense using WAN address, LAN is for that.