OPNsense Forum

English Forums => General Discussion => Topic started by: Marinoz on November 09, 2023, 08:04:20 PM

Title: Hyper v opnsense + bridge
Post by: Marinoz on November 09, 2023, 08:04:20 PM
I use hyper v windows 10 pro without license opnsense and I've configured everything. Let's note that I'm a newbie and that I just started learning. So I very set my speedport plus to bridge mode and I'm trying to connect it to my opnsense vm. How is that possible ?
Title: Re: Hyper v opnsense + bridge
Post by: Bob.Dig on November 09, 2023, 08:50:02 PM
What without license? What bridge are you talking about?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 09, 2023, 09:01:29 PM
Quote from: Bob.Dig on November 09, 2023, 08:50:02 PM
What without license? What bridge are you talking about?

Windows 10 pro without license key. About the bridge my gateway has two modes bridge connection and route I ve chose bridge.  Shouldn't I?
Title: Re: Hyper v opnsense + bridge
Post by: cookiemonster on November 10, 2023, 12:01:47 AM
So your ISP router goes in bridge mode so that another device behind it becomes the router and gets the public ip. That is what will be your WAN on your OPN VM.
So your VM needs at least two interfaces, one for WAN and one for LAN. Virtual nic or passthrough are options to do it and depend on your preference and hardware capability.
Depending on the host you are using to virtualise, this can be an easy experiment or a hard one as it could mean bridging your only physical interface and needing to use terminal to interact with the host.
Instead of asking generic questions, I suggest to draw and describe well your setup, including the physical elements.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 06:58:25 AM
Can I use my LAN  (virtual external switch linked to a real nic) to give internet to my router through the WAN port ?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 07:07:43 AM
That's pretty much the point of a firewall/router, isn't it?

Internet -- ISP modem -- WAN -- firewall -- LAN -- internal network.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 12:14:30 PM
Quote from: Patrick M. Hausen on November 10, 2023, 07:07:43 AM
That's pretty much the point of a firewall/router, isn't it?

Internet -- ISP modem -- WAN -- firewall -- LAN -- internal network.

Yes but the whole point is I want wifi, wlan
Quote from: cookiemonster on November 10, 2023, 12:01:47 AM
So your ISP router goes in bridge mode so that another device behind it becomes the router and gets the public ip. That is what will be your WAN on your OPN VM.
So your VM needs at least two interfaces, one for WAN and one for LAN. Virtual nic or passthrough are options to do it and depend on your preference and hardware capability.
Depending on the host you are using to virtualise, this can be an easy experiment or a hard one as it could mean bridging your only physical interface and needing to use terminal to interact with the host.
Instead of asking generic questions, I suggest to draw and describe well your setup, including the physical elements.

Here s the setup internet>optic fiber> huwaei terminal>firewall> and here I want wifi/wlan
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 12:57:47 PM
Quote from: Marinoz on November 10, 2023, 12:14:30 PM
Quote from: Patrick M. Hausen on November 10, 2023, 07:07:43 AM
That's pretty much the point of a firewall/router, isn't it?

Internet -- ISP modem -- WAN -- firewall -- LAN -- internal network.

Yes but the whole point is I want wifi, wlan


Internet -- ISP modem -- WAN -- firewall -- LAN -- switch -- WLAN access point
                                                     |
                                                     |
                                            wired internal network

Title: Re: Hyper v opnsense + bridge
Post by: cookiemonster on November 10, 2023, 01:05:05 PM
Quote
Here s the setup internet>optic fiber> huwaei terminal>firewall> and here I want wifi/wlan
Logical setup yes but if you are virtualising it via HyperV, I'm asking for the physical setup. Unless the thread title is now innacurate.
Quote from: Marinoz on November 10, 2023, 06:58:25 AM
Can I use my LAN  (virtual external switch linked to a real nic) to give internet to my router through the WAN port ?
Again a generic question that without the fully described setup is pretty much pointless, as it will just lead to question after question because from your point of view "doesn't work".
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 01:05:34 PM
Quote from: Patrick M. Hausen on November 10, 2023, 12:57:47 PM
Quote from: Marinoz on November 10, 2023, 12:14:30 PM
Quote from: Patrick M. Hausen on November 10, 2023, 07:07:43 AM
That's pretty much the point of a firewall/router, isn't it?

Internet -- ISP modem -- WAN -- firewall -- LAN -- internal network.

Yes but the whole point is I want wifi, wlan






Internet -- ISP modem -- WAN -- firewall -- LAN -- switch -- WLAN access point
                                                     |
                                                     |
                                            wired internal network






No need for switch I will use the one lan port. Router can act as a switch cant it? By router I mean the isps gateway
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 01:06:36 PM
Quote from: cookiemonster on November 10, 2023, 01:05:05 PM
Quote
Here s the setup internet>optic fiber> huwaei terminal>firewall> and here I want wifi/wlan
Logical setup yes but if you are virtualising it via HyperV, I'm asking for the physical setup. Unless the thread title is now innacurate.
Quote from: Marinoz on November 10, 2023, 06:58:25 AM
Can I use my LAN  (virtual external switch linked to a real nic) to give internet to my router through the WAN port ?
Again a generic question that without the fully described setup is pretty much pointless, as it will just lead to question after question because from your point of view "doesn't work".



What setup do you exactly need? The hardware ?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 01:25:52 PM
Quote from: Marinoz on November 10, 2023, 01:05:34 PM
No need for switch I will use the one lan port. Router can act as a switch cant it? By router I mean the isps gateway
No it cannot. If you put the ISP router into modem mode it becomes part of the WAN side of your OPNsense firewall. It must not have any connection to LAN. That's why you need all LAN ports necessary on the OPNsense - or a separate switch. Similarly - which you did not explicitly state - if the WiFi is currently part of that ISP box you cannot use that in the future. That's why you need a separate access point.

A firewall divides the network into an "evil" Internet side and a "good" private side. I guess - that's why everybody is asking for more details - your currents setup is:

Evil Internet -- ISP box with modem and WiFi all in one -- good private net.

Once you introduce OPNsense into the mix that changes to:

Evil Internet -- ISP box in modem mode -- WAN-OPNsense-LAN -- good private net.

See how the ISP box is now part of the "evil" side of things. Everything from your LAN to the Internet and vice versa (if permitted) must go through OPNsense.

HTH,
Patrick
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 01:30:30 PM
Quote from: Marinoz on November 10, 2023, 01:06:36 PM
Quote from: cookiemonster on November 10, 2023, 01:05:05 PM
Quote
Here s the setup internet>optic fiber> huwaei terminal>firewall> and here I want wifi/wlan
Logical setup yes but if you are virtualising it via HyperV, I'm asking for the physical setup. Unless the thread title is now innacurate.
Quote from: Marinoz on November 10, 2023, 06:58:25 AM
Can I use my LAN  (virtual external switch linked to a real nic) to give internet to my router through the WAN port ?
Again a generic question that without the fully described setup is pretty much pointless, as it will just lead to question after question because from your point of view "doesn't work".



What setup do you exactly need? The hardware ?


i think i wasnt clear enough. I didnt put the speedport in modem mode but bridge (it may be the same but just to clarify some things) and i said that i will connect the router to the lan side of the opnsense firewall i never mentioned the wan. I understand hiw a firewall works, it has to be between the traffic.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 01:33:37 PM
problem is how do i connect the router in bridge mode with the opnsense firewall (FROM THE LAN SIDE OF THE OPNSENSE) because its wireless and more complex
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 01:41:43 PM
You can't. Your OPßnsense must have a WAN and a LAN side and you connect the modem to WAN only.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 01:53:07 PM
Why do i connect the modem to wan?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 01:54:26 PM
Quote from: Patrick M. Hausen on November 10, 2023, 01:41:43 PM
You can't. Your OPßnsense must have a WAN and a LAN side and you connect the modem to WAN only.

ive never mentioned any modem i have a terminal cause i use optic fiber and a gateway. No modem. Doesnt opnsense act a modem ?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 01:57:16 PM
Because the modem is the connection Internet uplink. A firewall is a device intended to separate two or more networks and enforce a policy about who is allowed to talk to whom.

Therefore it needs at least two interfaces.

In most home setups the two networks are the internal LAN network and the rest of the Internet.

Your modem has two interfaces, too, when run in router mode. The one with the DSL or cable connection (Internet) and the one for internal systems (LAN, possibly with switch and/or WiFi). It acts as a firewall when configured as a router.

Now when you turn your ISP router/modem into a "dumb" modem, you need another router with two interfaces. Which is OPNsense which is the reason you configure your ISP box for modem mode in the first place, isn't it?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 01:58:56 PM
Quote from: Marinoz on November 10, 2023, 01:54:26 PM
Quote from: Patrick M. Hausen on November 10, 2023, 01:41:43 PM
You can't. Your OPßnsense must have a WAN and a LAN side and you connect the modem to WAN only.

ive never mentioned any modem i have a terminal cause i use optic fiber and a gateway. No modem. Doesnt opnsense act a modem ?

So you have an ISP "box". What does that do before you introduce OPNsense into the mix? How many interfaces does it have, how are they connected, does it provide DHCP and DNS or what else?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 02:17:35 PM
DNS DHCP WLAN everything even lan ports. 4 lans one of them is wan and telephony. it was connected to a huwaei terminal which took internet from fiber optic. it did all the jobs
Title: Re: Hyper v opnsense + bridge
Post by: cookiemonster on November 10, 2023, 02:20:28 PM
Good luck, I'm out.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 02:29:34 PM
Quote from: cookiemonster on November 10, 2023, 02:20:28 PM
Good luck, I'm out.

sorry that i dont understand what yall mean cause i dont speak fluent english and that im a beginner. Maybe you dont make clear questions not me.
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 02:55:21 PM
Quote from: Marinoz on November 10, 2023, 02:17:35 PM
DNS DHCP WLAN everything even lan ports. 4 lans one of them is wan and telephony. it was connected to a huwaei terminal which took internet from fiber optic. it did all the jobs
So one box plus this huawei terminal thingy or one single box that is this huawei terminal thingy? How many devices? What exactly goes where? I don't know what a huawei terminal is - you need to describe to me what that thing does. How should I know if I never owned such a piece of equipment.

Describe your setup. In all details. Either one or two boxes - manufacturer and model of each of them (well, one is huwawei, we know as much).
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 03:28:55 PM
Quote from: Patrick M. Hausen on November 10, 2023, 02:55:21 PM
Quote from: Marinoz on November 10, 2023, 02:17:35 PM
DNS DHCP WLAN everything even lan ports. 4 lans one of them is wan and telephony. it was connected to a huwaei terminal which took internet from fiber optic. it did all the jobs
So one box plus this huawei terminal thingy or one single box that is this huawei terminal thingy? How many devices? What exactly goes where? I don't know what a huawei terminal is - you need to describe to me what that thing does. How should I know if I never owned such a piece of equipment.

Describe your setup. In all details. Either one or two boxes - manufacturer and model of each of them (well, one is huwawei, we know as much).


https://e.huawei.com/en/products/optical-terminal/optixstar-eg8010hv6-10 then this connnects with https://help.cosmote.gr/system/templates/selfservice/gnosisgr/files2/Speedport_Plus_User_Manual_gr.pdf
and thats how i get internet right now. If i want to connect the opnsense between the speedport and the terminal what should i do?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 03:35:11 PM
Then as the very first prerequisite the OPNsense needs two network interfaces - one going into the Huawei terminal and one going into the speedport. This is the only way this is going to work.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 03:36:19 PM
Quote from: Patrick M. Hausen on November 10, 2023, 03:35:11 PM
Then as the very first prerequisite the OPNsense needs two network interfaces - one going into the Huawei terminal and one going into the speedport. This is the only way this is going to work.

I know the wan of opnsense goes to huwaei and the lan goes to speedport right ?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 03:45:50 PM
Right. Set the Speedport to bridge mode with DHCP and DNS and everything disabled so it will serve strictly as a switch and a WiFi AP. Connect to LAN of OPNsense. Connect PC to switch builtin to Speedport. The PC should receive an IP address starting with 192.168.1.

You should be able to access the OPNsense UI at http://192.168.1.1/

Then you can configure your WAN interface.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 03:47:43 PM
Quote from: Patrick M. Hausen on November 10, 2023, 03:45:50 PM
Right. Set the Speedport to bridge mode with DHCP and DNS and everything disabled so it will serve strictly as a switch and a WiFi AP. Connect to LAN of OPNsense. Connect PC to switch builtin to Speedport. The PC should receive an IP address starting with 192.168.1.

You should be able to access the OPNsense UI at http://192.168.1.1/

Then you can configure your WAN interface.


Ok but BTW I'm not that noob lol I know dhcp and how it works 😅 🙃
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 03:55:28 PM
OK - but then what is your problem?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 03:59:52 PM
After connecting the router to the lan port of opnsense I don't get anything. I guess it's because I didn't disable dhcp and dns. Plus will I have telephony?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 04:43:51 PM
This depends entirely on your phone provider and how the router can be configured to provide SIP while acting as bridge and LAN client. Nothing OPNsense specific. You need to ask your provider about that.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 05:38:20 PM
Quote from: Patrick M. Hausen on November 10, 2023, 04:43:51 PM
This depends entirely on your phone provider and how the router can be configured to provide SIP while acting as bridge and LAN client. Nothing OPNsense specific. You need to ask your provider about that.


My provider won't be helpful as they are amateurs at their job  🤣 they can't even assist me with other simpler stuff.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 06:18:53 PM
BTW Patrick wlan works with only power too but I can't get it to connect, to get internet connection.
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 07:10:52 PM
You need to configure the WAN interface for whatever method your ISP used to connect:

- DHCP
- PPPoE
- PPPoE with VLAN
- ...

Who configured the speedport initially? That person should have this data  :P
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 07:30:43 PM
Quote from: Patrick M. Hausen on November 10, 2023, 07:10:52 PM
You need to configure the WAN interface for whatever method your ISP used to connect:

- DHCP
- PPPoE
- PPPoE with VLAN
- ...

Who configured the speedport initially? That person should have this data  :P


Couldn't I just factory reset? BTW idk who configured it 😆 maybe a worker of cosmote
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 07:54:13 PM
You need the configuration of the Speedport to activate the WAN port. Nobody here can tell you how to configure that. Your Speedport knows. Can you log in to the UI and look around for how the Internet uplink is configured?

I don't know - I don't have a Speedport and neither your provider. WAN configuration is always provider specific. Sometimes you need a username and password. Sometimes the provider needs the MAC address of the device. Etc. Dozens of different ways to configure.

Have you asked your provider or researched independently if using your own router/firewall is supported at all?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 07:58:54 PM
Quote from: Patrick M. Hausen on November 10, 2023, 07:54:13 PM
You need the configuration of the Speedport to activate the WAN port. Nobody here can tell you how to configure that. Your Speedport knows. Can you log in to the UI and look around for how the Internet uplink is configured?

I don't know - I don't have a Speedport and neither your provider. WAN configuration is always provider specific. Sometimes you need a username and password. Sometimes the provider needs the MAC address of the device. Etc. Dozens of different ways to configure.

Have you asked your provider or researched independently if using your own router/firewall is supported at all?


Do you mean the admin password of the speedport? Of course I have it. That's how I turned it to bridge connection mode
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 08:00:21 PM
No, the username and password for the uplink configuration. If your ISP uses PPPoE. Or simply the fact that they don't and use e.g. DHCP ... or whatever.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 10, 2023, 08:33:04 PM
No I don't use pppoe I use dhcp but I've factory reset it so it may used pppoe but now it uses dhcp. Honestly when they set up our network they didn't make any changes so I guess it used and uses dhcp
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 10, 2023, 08:51:58 PM
Then set your WAN interface on the OPNsense to DHCP. If that does not work, contact your ISP. They are the only ones who can help you.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 11, 2023, 07:59:14 AM
Quote from: Patrick M. Hausen on November 10, 2023, 08:51:58 PM
Then set your WAN interface on the OPNsense to DHCP. If that does not work, contact your ISP. They are the only ones who can help you.


Ok and thanks for.all the help I will keep you updated. By the way is that tesak at your pfp?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 11, 2023, 08:03:33 AM
That's me about to perform nuki tsuke (drawing the sword and dealing the first cut) in the style of Muso Jikiden Eishin-ryu. I train and teach Iaido.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 11, 2023, 09:44:24 AM
Quote from: Patrick M. Hausen on November 11, 2023, 08:03:33 AM
That's me about to perform nuki tsuke (drawing the sword and dealing the first cut) in the style of Muso Jikiden Eishin-ryu. I train and teach Iaido.

Idk what you talk about but sounds cool  :P also it's ppoe after all. What do ido now ?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 11, 2023, 09:48:25 AM
It uses pppoe when not in bridge mode but in bridge every of these settings is gone.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 11, 2023, 09:48:51 AM
May I share a photo with you?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 11, 2023, 09:54:55 AM
So pen down the settings for PPPoE, then use these settings to configure PPPoE in OPNsense  ;)
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 11, 2023, 10:00:26 AM
Quote from: Patrick M. Hausen on November 11, 2023, 09:54:55 AM
So pen down the settings for PPPoE, then use these settings to configure PPPoE in OPNsense  ;)

Idk the pppoe password 😬
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 11, 2023, 10:08:06 AM
Ask your provider or try some ISP help forum applicable to your region (Greece?) about how to extract it by "hacking" the speedport. If at all possible.

Seriously, how should anyone here know?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 11, 2023, 12:14:10 PM
Quote from: Patrick M. Hausen on November 11, 2023, 10:08:06 AM
Ask your provider or try some ISP help forum applicable to your region (Greece?) about how to extract it by "hacking" the speedport. If at all possible.

Seriously, how should anyone here know?

No I didn't ask for you to give it to me just instructions of what to do. Is it different for each router ?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 09:05:29 PM
Quote from: Marinoz on November 11, 2023, 12:14:10 PM
Quote from: Patrick M. Hausen on November 11, 2023, 10:08:06 AM
Ask your provider or try some ISP help forum applicable to your region (Greece?) about how to extract it by "hacking" the speedport. If at all possible.

Seriously, how should anyone here know?

Bro I can't. I used the pppoe as a protocol with the name and everything. I used it at the wan port of the opnsense. I used the speedport as bridge. I connected speedport to lan. Wan was not recognized after these settings for some reasons and there was no online indication at the router. It's so frustrating.
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 09:15:32 PM
Quote from: Marinoz on November 16, 2023, 09:05:29 PM
Bro I can't. I used the pppoe as a protocol with the name and everything. I used it at the wan port of the opnsense. I used the speedport as bridge.
That's correct. The username and password go into the WAN PPPoE configuration of OPNsense.

Quote from: Marinoz on November 16, 2023, 09:05:29 PM
I connected speedport to lan.
Why? If the speedport is operating in router mode, that is of course correct. Then the setup is:

Internet line --> speedport in router mode --> LAN clients

If you want to use OPNsense the only way to connect the devices is:

Internet line --> speedport in bridge mode --> OPNsense WAN - OPNsense LAN --> LAN clients


There is no other way to make this work. What exactly do you want to achieve by replacing the speedport in router mode with bridge mode and OPNsense?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 09:17:34 PM
Quote from: Patrick M. Hausen on November 16, 2023, 09:15:32 PM
Quote from: Marinoz on November 16, 2023, 09:05:29 PM
Bro I can't. I used the pppoe as a protocol with the name and everything. I used it at the wan port of the opnsense. I used the speedport as bridge.
That's correct. The username and password go into the WAN PPPoE configuration of OPNsense.

Quote from: Marinoz on November 16, 2023, 09:05:29 PM
I connected speedport to lan.
Why? If the speedport is operating in router mode, that is of course correct. Then the setup is:

Internet line --> speedport in router mode --> LAN clients

If you want to use OPNsense the only way to connect the devices is:

Internet line --> speedport in bridge mode --> OPNsense WAN - OPNsense LAN --> LAN clients


There is no other way to make this work. What exactly do you want to achieve by replacing the speedport in router mode with bridge mode and OPNsense?


Oh he'll no. Did you just told me that I put speedport and then the firewall?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 09:20:26 PM
Of course!

The speedport is - if in bridge mode - a DSL modem. It converts the DSL line to Ethernet for OPNsense to use for PPPoE. I assumed this was the the case all the time because this is how it works.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 09:23:11 PM
Yes this was it but I used the speedport both as a router and as a bridge while trying to connect the opnsesne lan with its wan.
My problem still remains, can I achieve wlan that is PROTECTED by the firewall? Shouldn't I connect the speedport at opnsense lan interface then?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 09:28:25 PM
No, you cannot. If you use the speedport as a DSL modem, you cannot use its WLAN feature. You need an additional access point connected to the LAN interface of OPNsense.

A firewall separates the "evil" Internet side of the world from your "good" home network side of the world.

All traffic needs to go through the firewall.

Internet - WAN
Home - LAN

Alternatively you could buy a separate DSL modem without WLAN, connect that to DSL and OPNsense WAN and use the speedport strictly as a WLAN access point in the "good" side of the network.


But again: what do you want to achieve by replacing the speedport in router mode with OPNsense? Internet works, right? WLAN works, right? It's reasonably secure ... so, why?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 09:33:10 PM
Quote from: Patrick M. Hausen on November 16, 2023, 09:28:25 PM
No, you cannot. If you use the speedport as a DSL modem, you cannot use its WLAN feature. You need an additional access point connected to the LAN interface of OPNsense.

A firewall separates the "evil" Internet side of the world from your "good" home network side of the world.

All traffic needs to go through the firewall.

Internet - WAN
Home - LAN

Alternatively you could buy a separate DSL modem without WLAN, connect that to DSL and OPNsense WAN and use the speedport strictly as a WLAN access point in the "good" side of the network.


But again: what do you want to achieve by replacing the speedport in router mode with OPNsense? Internet works, right? WLAN works, right? It's reasonably secure ... so, why?

Yeah but, I've mentioned that I have the optic fiber terminal or else ont which IS  a modem basically. So ONT->opnsense->router in router mode (?) for wlan ?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 09:36:13 PM
You have an ONT? I had no idea! ::) Probably overlooked.

But why are you messing with the speedport then in the first step?

Connect OPNsense WAN to ONT, connect a single PC to OPNsense LAN, configure WAN PPPoE until Internet works.
Then connect speedport as a WLAN access point in bridge mode to OPNsense LAN only.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 09:38:21 PM
Quote from: Patrick M. Hausen on November 16, 2023, 09:36:13 PM
You have an ONT? I had no idea! ::) Probably overlooked.

But why are you messing with the speedport then in the first step?

Connect OPNsense WAN to ONT, connect a single PC to OPNsense LAN, configure WAN PPPoE until Internet works.
Then connect speedport as a WLAN access point in bridge mode to OPNsense LAN only.


That's what I'm trying! But it doesn't work  :-X I even used the routers Mac address bt nothing. After configuring the wan as pppoe then the wan is not recognized while it used to be. For example, it wrote WAN dhcpv4:0.0.0.0/(I don't remember what's here) but now it's just says wan and nothing else
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 09:39:53 PM
Quote from: Marinoz on November 16, 2023, 09:38:21 PM
After configuring the wan as pppoe then the wan is not recognized while it used to be.
That I do not understand. Please post screenshots of your WAN configuration.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 09:41:08 PM
Quote from: Patrick M. Hausen on November 16, 2023, 09:39:53 PM
Quote from: Marinoz on November 16, 2023, 09:38:21 PM
After configuring the wan as pppoe then the wan is not recognized while it used to be.
That I do not understand. Please post screenshots of your WAN configuration.

I will but tomorrow I have ro sleep now. It says WAN pppoe0 and nothing else but when it was automatically configured it used to say WAN dhcpv4 0.0.0.0/
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 09:47:40 PM
Quote from: Marinoz on November 16, 2023, 09:41:08 PM
I will but tomorrow I have ro sleep now.
Have a good night, sorry for the confusion.

Quote from: Marinoz on November 16, 2023, 09:41:08 PM
It says WAN pppoe0 and nothing else but when it was automatically configured it used to say WAN dhcpv4 0.0.0.0/
That's because when you just installed OPNsense WAN is configured by default for DHCP. And then you change that to PPPoE, because that's what your provider uses apparently.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 09:51:35 PM
Quote from: Patrick M. Hausen on November 16, 2023, 09:47:40 PM
Quote from: Marinoz on November 16, 2023, 09:41:08 PM
I will but tomorrow I have ro sleep now.
Have a good night, sorry for the confusion.

Quote from: Marinoz on November 16, 2023, 09:41:08 PM
It says WAN pppoe0 and nothing else but when it was automatically configured it used to say WAN dhcpv4 0.0.0.0/
That's because when you just installed OPNsense WAN is configured by default for DHCP. And then you change that to PPPoE, because that's what your provider uses apparently.


I know but problem is when I configure it for pppoe why doesn't it work ? I use the right code (maybe 😜) and everything. Not only it can't connect to the router I don't internet in general cause of this.
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 09:59:52 PM
Quote from: Marinoz on November 16, 2023, 09:51:35 PM
I know but problem is when I configure it for pppoe why doesn't it work ? I use the right code (maybe 😜) and everything. Not only it can't connect to the router I don't internet in general cause of this.
Does your provider require a VLAN tag with that PPPoE connection? That's why - regardless of what connects to where - I recommended a more local "ISP help" forum for your area to seek additional information.

You need to get everything just perfectly right or no connection. That's how it works.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 10:01:15 PM
Quote from: Patrick M. Hausen on November 16, 2023, 09:59:52 PM
Quote from: Marinoz on November 16, 2023, 09:51:35 PM
I know but problem is when I configure it for pppoe why doesn't it work ? I use the right code (maybe 😜) and everything. Not only it can't connect to the router I don't internet in general cause of this.
Does your provider require a VLAN tag with that PPPoE connection? That's why - regardless of what connects to where - I recommended a more local "ISP help" forum for your area to seek additional information.

You need to get everything just perfectly right or no connection. That's how it works.


It says vlan tag 1. Is that something?
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 10:02:04 PM
Quote from: Marinoz on November 16, 2023, 09:51:35 PM
Quote from: Patrick M. Hausen on November 16, 2023, 09:47:40 PM
Quote from: Marinoz on November 16, 2023, 09:41:08 PM
I will but tomorrow I have ro sleep now.
Have a good night, sorry for the confusion.

Quote from: Marinoz on November 16, 2023, 09:41:08 PM
It says WAN pppoe0 and nothing else but when it was automatically configured it used to say WAN dhcpv4 0.0.0.0/
That's because when you just installed OPNsense WAN is configured by default for DHCP. And then you change that to PPPoE, because that's what your provider uses apparently.


I know but problem is when I configure it for pppoe why doesn't it work ? I use the right code (maybe 😜) and everything. Not only it can't connect to the router I don't internet in general cause of this.


Don't I have to use a vlan to use this info?
Title: Re: Hyper v opnsense + bridge
Post by: Patrick M. Hausen on November 16, 2023, 10:06:21 PM
Quote from: Marinoz on November 16, 2023, 10:01:15 PM
It says vlan tag 1. Is that something?
Yes it is. Everything "it" says is "something".

You need to create a VLAN interface (Interfaces > Other types > VLAN) with the physical network interface you want to use as the parent. Then use that as the "Modem interface" in the PPPoE configuration.

I don't know all steps from the top of my head, best google/searchengineofchoice for "OPNsense PPPoE VLAN" or similar.
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 16, 2023, 10:08:27 PM
Quote from: Patrick M. Hausen on November 16, 2023, 10:06:21 PM
Quote from: Marinoz on November 16, 2023, 10:01:15 PM
It says vlan tag 1. Is that something?
Yes it is. Everything "it" says is "something".

You need to create a VLAN interface (Interfaces > Other types > VLAN) with the physical network interface you want to use as the parent. Then use that as the "Modem interface" in the PPPoE configuration.

I don't know all steps from the top of my head, best google/searchengineofchoice for "OPNsense PPPoE VLAN" or similar.


Understood but I don't know WXACTLY what vlans are. I guess I will chatgpt it
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 17, 2023, 07:01:38 PM
Quote from: Patrick M. Hausen on November 16, 2023, 10:06:21 PM
Quote from: Marinoz on November 16, 2023, 10:01:15 PM
It says vlan tag 1. Is that something?
Yes it is. Everything "it" says is "something".

You need to create a VLAN interface (Interfaces > Other types > VLAN) with the physical network interface you want to use as the parent. Then use that as the "Modem interface" in the PPPoE configuration.

I don't know all steps from the top of my head, best google/searchengineofchoice for "OPNsense PPPoE VLAN" or similar.

Can I send a screenshot? And what shiuld I blur
Title: Re: Hyper v opnsense + bridge
Post by: Marinoz on November 18, 2023, 08:55:38 AM
Quote from: Patrick M. Hausen on November 16, 2023, 10:06:21 PM
Quote from: Marinoz on November 16, 2023, 10:01:15 PM
It says vlan tag 1. Is that something?
Yes it is. Everything "it" says is "something".

You need to create a VLAN interface (Interfaces > Other types > VLAN) with the physical network interface you want to use as the parent. Then use that as the "Modem interface" in the PPPoE configuration.

I don't know all steps from the top of my head, best google/searchengineofchoice for "OPNsense PPPoE VLAN" or similar.


https://postimg.cc/mhJnrwJh