Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
[NOOB] No Internet in the local network until I restart dhcpv4
« previous
next »
Print
Pages: [
1
]
Author
Topic: [NOOB] No Internet in the local network until I restart dhcpv4 (Read 274 times)
nstdd
Newbie
Posts: 3
Karma: 0
[NOOB] No Internet in the local network until I restart dhcpv4
«
on:
October 26, 2024, 07:53:56 am »
Configuration: I have Proxmox 8.2.7, which receives the Internet from the main router. Inside proxmox there is a virtual machine with OPNSense. A separate virtual network is forwarded inside OPNSense (created in proxmox) and the Internet from the main router.
Problem: After rebooting the virtual machine, my Internet disappears (I can't use curl or ping). Which is very strange. The Internet also disappears if I do, for example, in alpine linux: networking restart
If I do nothing, the Internet will appear after some time (somewhere around 15-30 minutes). But this does not suit me, I want the Internet to be there right away, otherwise all my metrics start writing that the services are unavailable.
But: i always has internet from opnsense shell
. And if i connect VM to main router - everything worked as expected.
Strange feature: after rebooting the virtual machine, I have no Internet and DNS.
If I reboot the IPV4 service, I will have internet and I will be able to ping IP addresses, but I will not have DNS, so that it appears - I need to restart Unbound. And this does not apply to other virtual machines, if I reboot one of them - this problem will only be on it, on the other virtual machines - the internet will be and everything works fine. I will show you an example of one virtual machine - alpine linux.
What have I tried?
1. disable unbound
2. pfctl -d (does not help, and in live view there are no logs about there being no internet)
3. dig, nslookup and traceroute
This is very inconvenient and does not suit me in any way.
«
Last Edit: October 26, 2024, 08:09:54 am by nstdd
»
Logged
nstdd
Newbie
Posts: 3
Karma: 0
Re: [NOOB] No Internet in the local network until I restart dhcpv4
«
Reply #1 on:
October 26, 2024, 08:00:37 am »
dig/nslookup - same behavior, 0 internet after reboot
https://i.ibb.co/HGC5RFG/image.png
Logged
EricPerl
Jr. Member
Posts: 90
Karma: 2
Re: [NOOB] No Internet in the local network until I restart dhcpv4
«
Reply #2 on:
October 26, 2024, 08:46:15 pm »
I'm kinda new as well and I'm also experimenting with a virtualized OPNsense.
My first experiment was with OPNsense as a transparent filtering bridge so I didn't mess with VLANs.
I'm now in the process of ditching my existing router and replacing it with OPNsense (reinstalled as traditional router). I'm doing all of this while leaving my current setup untouched.
Here's what I've done differently:
* Created a VLAN2 interface (DHCP + gateway) in my existing network (centrally managed).
* Assigned the switch port connected to OPN WAN to that VLAN2 (native/untagged traffic).
Essentially, all NAT traffic out of OPN is tagged as soon as it enters the network.
I only bothered with this because I wanted to isolate away from the existing traffic.
It just worked without that VLAN on the WAN side of OPN, but OPN clients on the LAN side had too much access on the WAN side (after NAT)...
* Created a pure VLAN3 in my existing network.
* Assigned VLAN3 as native/untagged to the switch port LAN side of OPN
* Assigned VLAN3 as native/untagged to the switch port of the clients I want on the native LAN of OPN
Then I allowed tagged VLANs (trunked port) on the LAN side of OPN as I added VLANs to OPN (if you want that).
Logged
nstdd
Newbie
Posts: 3
Karma: 0
Re: [NOOB] No Internet in the local network until I restart dhcpv4
«
Reply #3 on:
October 28, 2024, 11:01:45 am »
But i do not use vlan, just default installation with wan and lan
Logged
EricPerl
Jr. Member
Posts: 90
Karma: 2
Re: [NOOB] No Internet in the local network until I restart dhcpv4
«
Reply #4 on:
October 28, 2024, 09:09:38 pm »
I just listed a configuration that works over an existing network, at least with physical machines.
You omitted a LOT of details about your setup.
I assume the proxmox install is new and standard. vmbr0 over a NIC plugged into your existing network (DHCP or static).
Details about the virtual network?
How did you setup WAN and LAN in OPNsense?
Then you say "my Internet disappears". Tested from where?
Then there's a mention of alpine linux. How is it connected to any of the above?
etc...
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
[NOOB] No Internet in the local network until I restart dhcpv4