Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
My VM's traffic not passing thur OPNsense
« previous
next »
Print
Pages: [
1
]
Author
Topic: My VM's traffic not passing thur OPNsense (Read 120 times)
smnaqvee
Newbie
Posts: 7
Karma: 0
My VM's traffic not passing thur OPNsense
«
on:
Today
at 05:34:56 am »
Hi !
I set up OPNsense on proxmox with these network settings attached in image .
However not sure how to setup all VM's nrwork so that all VM's traffic route thru opnsense forewall where I can implement rules on traffic or use zenarmor.
Can anyone guide as my proxmox server has one NIC do I need 1 more ? Can opnsense work with attached settings and start routing traffic of all VM's through opnsnse . Any help appreciated thanks
Do I need to attach same 3 network interfaces to all VM;s as well.
Logged
bartjsmit
Hero Member
Posts: 2023
Karma: 194
Re: My VM's traffic not passing thur OPNsense
«
Reply #1 on:
Today
at 09:31:40 am »
Change the default gateway of the VM' s to OPNsense LAN IP address, same as (presumably) your DHCP clients are set to.
Logged
viragomann
Full Member
Posts: 227
Karma: 7
Re: My VM's traffic not passing thur OPNsense
«
Reply #2 on:
Today
at 12:46:37 pm »
vmbr1 is your VMs LAN network.
In Proxmox remove the IP address from vmbr1.
Connect the OPNsense WAN to vmbr0 and the LAN to vmbr1. Assign an IP to both, for the LAN you have to use a different subnet, however. The LAN IP is the default gateway for your VMs.
Connect all your VMs to vmbr1.
If you enable the DHCP server in OPNsense on LAN, the VMs get their IP, gateway and DNS settings automatically from OPNsense.
The VMs should have internet access then.
Logged
smnaqvee
Newbie
Posts: 7
Karma: 0
Re: My VM's traffic not passing thur OPNsense
«
Reply #3 on:
Today
at 03:09:23 pm »
Hello,
Thanks I made some chnages but still not sure right or worng pic attached my OPNsense firewall intrfcae is now accessible on 192.168.1.101.
So if these settings are correct then Ineed to reassign interfaces in OPNsense and assign IP as well.
Logged
smnaqvee
Newbie
Posts: 7
Karma: 0
Re: My VM's traffic not passing thur OPNsense
«
Reply #4 on:
Today
at 03:53:47 pm »
I tried reassiging the iterface from opnsense CLI based interface however only see 2 interfaces to play with
EM0
vtnet 0
I assigned WM0 to WAN and vtnet0 to LAN
Logged
viragomann
Full Member
Posts: 227
Karma: 7
Re: My VM's traffic not passing thur OPNsense
«
Reply #5 on:
Today
at 04:28:42 pm »
OPNsense can only see, what it gets provided from Proxmox.
It's recommended to provide virtIO network cards.
I suggested to assign different subnets to WAN and LAN. If both have IPs in the same subnet, OPNsense is not able to route any traffic.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
My VM's traffic not passing thur OPNsense