philippe27
Goto Top

OPNsense DHCP Vendor Class Optionen

Hallo

Ich versuche aktuell in der OPNsense anhand von Vendor Class Informationen, Einträge hinzuzufügen, jedoch überschreibt er mir dies immer wieder.
Vorweg, dass Vorgehen funktioniert bei pfSense einwandfrei.

Weiter unten die komplette dhcpd.conf Datei.

Was mache ich:
Ich gehe via WinSCP auf die OPNsense und suche mir das dhcpd.conf File, gefunden unter "/var/dhcpd/etc/"
Richte dort meine Konfiguration gemäss Anhang ein
Lade das File zurück und überschreibe das alte

Egal ob ich den DHCP Dienst auf der OPNsense vorher stoppe oder nur neustarte, er überschreibt mir die Konfiguration immer wieder mit den Einträgen von der Ansicht im Web GUI.


Frage
Habe ich das falsche dhcpd.conf File, gibt es einen anderen Ort wo ich die Einträge machen muss?
Oder liegt es an meinem Vorgehen bzw. einem falschen Eintrag?

Danke und Gruss
Philippe


option domain-name "xxx.ch";  
option ldap-server code 95 = text;
option arch code 93 = unsigned integer 16; # RFC4578
option pac-webui code 252 = text;

**class "vendor-classes" {  
match option vendor-class-identifier;
}

# Define SIP-DECT options (incl. structure of option 43) #
option space SIPDECT;
option SIPDECT.omm-ip code 10 = ip-address;
option SIPDECT.omm-syslog code 14 = ip-address;
option SIPDECT.omm-syslog-port code 15 = unsigned integer 16;
option SIPDECT.omm-ip2 code 19 = ip-address;
option magic_str code 224 = text;
option tftp-list code 150 = array of ip-address;
option vlanid code 132 = unsigned integer 16;

### class definition ###
# RFP (L) 31,32,33,34,41,42
class "SIP-DECT2G" { match if option vendor-class-identifier = "OpenMobility"; }  
# RFP (L) 35,36,37,43, since firmware 3.0RC3
class "SIP-DECT3G" { match if option vendor-class-identifier = "OpenMobility3G"; }  
# RFP 44,45,47,48, since firmware 8.0
class "SIP-DECT4G" { match if option vendor-class-identifier = "OpenMobility4G"; }  
# 53xxip/68xxi/69xxi
class "00085d" { match if substring (hardware, 1, 3) = 00:08:5d; }**  

default-lease-time 7200;
max-lease-time 86400;
log-facility local7;
one-lease-per-client true;
deny duplicates;
ping-check true;
update-conflict-detection false;
authoritative;


subnet 192.168.200.0 netmask 255.255.255.0 {
  pool {
    range 192.168.200.101 192.168.200.199;
  }

  pool {
**	range 192.168.200.250 192.168.200.254;
	allow members of "SIP-DECT2G";  
	allow members of "SIP-DECT3G";  
	allow members of "SIP-DECT4G";  
	allow members of "00085d";  
	
	option routers 192.168.200.1;
	option subnet-mask 255.255.255.0;
	option domain-name-servers 192.168.200.1,192.168.200.1;
	#next-server xxx.xxx.xxx.xxx;
	vendor-option-space SIPDECT;
	option magic_str = "OpenMobilitySIP-DECT";  
	option SIPDECT.omm-ip 192.168.200.200;
	#option SIPDECT.omm-ip2 xxx.xxx.xxx.xxx;
	option SIPDECT.omm-syslog 192.168.200.101;
	if option vendor-class-identifier = "OpenMobility" { filename "/openmob/iprfp2G.tftp"; }  
	if option vendor-class-identifier = "OpenMobility3G" { filename "/openmob/iprfp3G.dnld"; }  
	if option vendor-class-identifier = "OpenMobility4G" { filename "/openmob/iprfp4G.dnld"; }**  

  option routers 192.168.200.1;
  option domain-name-servers 192.168.200.1;
  option ntp-servers 192.168.200.1;

}

subnet 192.168.10.0 netmask 255.255.255.0 {
  pool {
    range 192.168.10.20 192.168.10.30;
  }

  option routers 192.168.10.1;
  option domain-name-servers 192.168.10.1;

}

subnet 192.168.20.0 netmask 255.255.255.0 {
  pool {
    range 192.168.20.10 192.168.20.30;
  }

  option routers 192.168.20.1;
  option domain-name-servers 192.168.20.1;

}

subnet 192.168.30.0 netmask 255.255.255.0 {
  pool {
    range 192.168.30.10 192.168.30.30;
  }

  option routers 192.168.30.1;
  option domain-name-servers 192.168.30.1;

}

Content-Key: 603645

Url: https://administrator.de/contentid/603645

Printed on: April 27, 2024 at 04:04 o'clock

Member: Philippe27
Philippe27 Sep 15, 2020 at 19:16:24 (UTC)
Goto Top
Hat keiner eine Idee?

Leider ergibt mir die Suche im OPNsense Handbuch sowie in dessen Forum, keine Hinweise.

Gruss
Philippe
Member: Philippe27
Philippe27 Sep 15, 2020 at 19:31:11 (UTC)
Goto Top
Zusätzliche Info:
Ich habe auch versucht die originale dhcpd.conf Datei von der OPNsense mit einer simplen Änderung am DHCP Bereich zu verändern.
Nicht einmal diese simple Änderung wurde verschont von einem Überschreiben der Datei mit den Werten gemäss Ansicht im Web GUI.