Modify

Opened 7 years ago

Last modified 5 years ago

#1189 infoneeded enhancement

Use WAN MAC address for wifi-client

Reported by: Rafael Vuijk <darkfader@…> Owned by:
Priority: normal Milestone: Firmware 2.3
Component: fon-wifi Version: 2.3.7.0 beta3
Severity: major
Cc: Hardware: both

Description

It seems like it does not use the specified WAN MAC address for the wifi client mode. Either use this WAN MAC address or create a dedicated option just for wifi client. (dual WAN?:) Reason: I don't want the device to show up as a Fonera device when you do a network search. (so spoof it as a normal PC)

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by matthijs

  • Hardware changed from 2.0n (FON2300) to both
  • Milestone set to Firmware 2.3
  • Severity changed from unknown to major
  • Status changed from new to infoneeded

I had a quick look at this for 2.0n and it seemed to be a fairly trivial change, but unfortunately it's more complicate than I thought.

The OpenWRT scripts allow specifying a MAC address in /etc/config/network (which is generated by /lib/fon/config.sh), which then gets set on the network interface. This works for the wireless client interface on 2.0n (apcli0) too, so having /lib/fon/config.sh generate the 'macaddr' value for the wan network works. However, this only works for wifi mode, not wifi-bridge mode. In the latter case, the wan network does not contain the right interface name, to prevent breakage when ap_client brings the network interface up.

To fix this, probably there are more invasive changes needed in the networking scripts, which will be something for after the 2.3.7.0 release...

As a hack to make this work for you right now, you could open up /etc/network/config.sh, find the line "config_get macaddr "$config" macaddr" and add the following line directly below it:

[ "$iface" = "apcli0" ] && macaddr="00:00:00:00:00:00"

(fill in your desired address there).

Add Comment

Modify Ticket

Action
as infoneeded The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.