OPNsense Forum

English Forums => General Discussion => Topic started by: kripa on July 07, 2023, 05:48:21 PM

Title: opnsense firewall as a router
Post by: kripa on July 07, 2023, 05:48:21 PM
Hi ,
I am a student using opnsense for the first time.
I am using opnsense as a router by installing it in a tower PC.In my setup,
I have 3 devices with are connected to the router via a switch
All the devices are in different network .
Device 1:10.90.90.13/24 in vlan 1
device2:10.90.92.2/30 in vlan 10
device 3:10.90.93.2/30 in vlan 30  of the switch respectively.

I have set the interfaces, vlan, dhcpv4,firewall,gateway in opnsense.

Default Gateway:
Device 1:10.90.90.1
Device 2:10.90.92.1
Device 3 :10.90.93.1
At the moment i am able to ping the default gateways from the devices.
My goal is to able to communicate between the devices.

I am stuck in this for a long time.
Appreciate if someone could provide some ideas.



Title: Re: opnsense firewall as a router
Post by: lilsense on July 07, 2023, 06:30:28 PM
I presume you have one port set up on your PC connected to the switch. how's that configured both on the PC and the Switch????
Title: Re: opnsense firewall as a router
Post by: kripa on July 10, 2023, 01:32:00 PM
So the pc is connected to the switch via ethernet cable and the port is assigned to be in default vlan.
Title: Re: opnsense firewall as a router
Post by: lilsense on July 11, 2023, 02:56:10 AM
How do you presume that PC is going to communicate with the VLAN's?

May be I am missing something. Please use https://app.diagrams.net to make a drawing of your network with IP address subnets and everything.
Title: Re: opnsense firewall as a router
Post by: kripa on July 11, 2023, 01:15:50 PM
The vm is configured in default vlan in switch ,opal in vlan 20 and mqtt in vlan 30 .
I have assigned a trunk port(vlan 20,30) in the connection between switch and opnsense.
but the default vlan is not set in the trunk port .
when i try to set it the opnsense gui crashes.