Closed RomainMorlevat closed 6 days ago
this https://docs.opnsense.org/manual/how-tos/orange_fr_fttp.html#configuring-the-wan-interface suggests the option is called dhcp-class-identifier
. I haven't checked, but I think dhclient on both mentioned versions is the same by the way
Yes, I've tried with that, but can't get an IP v4.
This issue suggests that vendor-
does not work while dhcp-
does. But I was running fine with vendor-
.
I've reinstalled opnsense to 24.1 and still got the error :thinking: ; I'm lost.
maybe the error has always been there? the vendor-
option was never available as far as I can find.
Yes, that's possible, but I had internet access before that update, that's what I can't explain. And I don't get how to help myself here (no explicit error, nothing to check, "no" tutorial for this ISP).
can't help you with specific providers, but I would start with removing unsupported options, maybe start dhclient manually and capture some traffic. Our forum (https://forum.opnsense.org) is likely a better place to discuss configuration issues.
Thank you to have taken the time to answer me. I will ask in the forum.
OK, I managed to make it works seeing this post : it's about pfsense but the guy says that to spoof the MAC address of the ISP router, the WAN should be set before associating the VLAN to it.
And in Interfaces: Other Types: VLAN
, the MAC address displayed were not the one that I wanted to spoof.
So by disabling WAN, associating device and VLAN to another interface to be sure that everything is not associated to my physical WAN port, then redoing the association back I got an IP instantly from my ISP.
I'm not sure about why the MAC address didn't been spoof correctly on assignment and reboot.
When I figure that out, I think I will submit a PR to your doc for that ISP.
I've also changed vendor-class-identifier
to dhcp-class-identifier
.
edit: updating to 24.1.8 broke again the MAC spoofing.
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
After updating opnsense, I have no internet access.
The current OPNsense version where the bug first appeared: 24.1.8 The last OPNsense version where the bug did not exist: 24.1.6
Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert) It obviously fails as opnsense have no internet access anymore.
To Reproduce
Steps to reproduce the behavior:
Lease Requirements Send Options vendor-class-identifier
Expected behavior
opnsense getting an IP from my ISP and having internet access.
Describe alternatives you considered
I've searched for issues with my config first (despite the error) to see if it can be done another way, tried without
vendor-class-identifier
, tried withdhcp-class-identifier
(like for Orange FR). All attempts were without success. I've tried to set a new interface and connect opnsense to the ISP router in a DMZ (double NAT? no bridge mode available) but I don't manage to make it work. The next thing I'm going to try is to reinstall opnsense from scratch and restore a backup but I don't find were to download the exact 24.1.6 version. I only find 24.1.Relevant log files
A relevant excerpt from the attached log file: log-opensense-20240602.txt
Detail of
/var/etc/dhclient_wan.conf
:Result of
/sbin/ifconfig -n
:Additional context
I've installed opnsense on a Protectli VP2410. It is connected via an ethernet cable to the ONT (FTTH) provided by my ISP (Bouygues, France) and as I don't want to use the provided "Bbox fit" (ISP router) I need to tag my WAN to VLAN 100 and spoof the MAC address of the ISP router and use the
vendor-class-identifier
option.Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 24.1.8 (amd64). Protectli VP2410 (Intel Celeron J4125, Intel Gigabit Ethernet NIC ports)