We'd love to hear about it! Click here to go to the product suggestion community
does anyone know how to enter characters like '&' to dhcp-string option vlaues ?
console> system dhcp dhcp-options binding add dhcpname DHCP_LTE-Router optionname Vendor_Encapsulated_Options(43) value "antenna&apn=internet&pin="% Error: Unknown Parameter 'antenna&apn=internet.provider&pin=1234'
thx in advance
Having the same problem here in XG115w SFOS 17.0.6 MR-6 trying to use semicolon delimiters in option 43 string for mitel phones which is working fine in Cisco equipment being replaced by XG and also in Windows servers with the same setup. This is the error:
console> system dhcp dhcp-options binding add dhcpname Default_DHCP_Server optionname Vendor_Encapsulated_Options(43) value 'id:ipphone.mitel.com;sw_tftp=184.108.40.206;call_srv=220.127.116.11;vlan=1;l2p=6;dscp=46'% Error: Unknown Parameter 'id:ipphone.mitel.com;sw_tftp=18.104.22.168;call_srv=22.214.171.124;vlan=1;l2p=6;dscp=46'
The option is successfully applied if the semicolons are replaced with commas only as a test but I don't think that will give the necessary result for the phones. Another similar unanswered question @ https://community.sophos.com/products/xg-firewall/f/initial-setup/82857/using-special-characters-pipe-in-dhcp-option-value-fields
Suggestions are appreciated
I HATE when people don't come back to answer the question they initially asked. So much more work for me, and I always come back to update to spare others the same pain as me.
I resolved this issue (mine specifically was trying to use option 125 or option 43 with Mitel Phones) by converting the string to HEX. BUT you have to convert it very specifically.
After following here: https://community.sophos.com/kb/en-us/123529 Reading the Sophos XG CLI Guide, Googling my issue, and even opening a ticket with Sophos support. EVERYTHING was a dead end! But I still figured it out.
A few things need to be noted on that page:
Here's a step by step to use Option 43. I assume you already know how to get to the device console if Google lead you to this thread and you know your DHCP server name:
If for some reason you want to use Option 125 with Mitel, you need to create the option with the following command:
system dhcp dhcp-options add optioncode 125 optionname mitel optiontype string
Then you do everything above, but on the hex code you generated, you have to preface it with 00:00:04:03:67: so in my case it was 00:00:04:03:67:69:64:3A:69:70... (and all the rest from above).
I hope this helps the next person with a question like this.
In reply to LeetJN:
Thank you for this, it helped me out enormously, my Mitel phones are now working behind a Sophos RED tunnel to Head Office where the Mitel box is located.