Jump to content

Help with dhcp options


Recommended Posts

I'm trying to setup a NAT with a DHCP server on the LAN side that will deliver a custom custom DHCP option to my victim. I have tried adding the dhcp_option list to dnsmasq

# custom 

function setup() {
    # Show SETUP LED

    # Set the network mode to NAT
    sleep 5

    uci add_list dhcp.@dnsmasq[-1].dhcp_option='224,"my_payload_string"'

    # Restart dnsmasq with the new configuration
    /etc/init.d/dnsmasq restart	

function run() {
    # Show  ATTACK LED

or replacing dnsmasq with lan

    #uci add_list dhcp.@dnsmasq[-1].dhcp_option='224,"my_payload_string"'
    uci add_list dhcp.lan.dhcp_option='224,"my_payload_string"'

Neither approach works as I don't see option 224 in the DHCP Ack

Can anyone help?

Link to comment
Share on other sites

Thanks for the suggestion. I have read that and made another test:

dhcp.lan.dhcp_option='224,' '42,'

Now I see option 42 in the DHCP Ack message but not 224


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...