Project

General

Profile

Bug #2641

mac spoof on wan (pppoe) doesnt spoof

Added by Bipin Chandra almost 7 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Category:
Interfaces
Target version:
Start date:
09/23/2012
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.1
Affected Architecture:

Description

i have a pppoe connection and my isp requires to spoof a fixed mac but it doesnt seem to work on latest nanobsd alix snapshot

Associated revisions

Revision a6f1f6d1 (diff)
Added by Renato Botelho over 6 years ago

Fix convert_real_interface_to_friendly_interface_name() when parameter is already a friendly name and interface is using PPPoE. It should fix #2641

Revision 254ebf8b (diff)
Added by Renato Botelho over 6 years ago

Fix mac spoof when PPPoE is being used

When PPPoE is set and you change interface's mac address, the netgraph
node kept using the old parent interface mac address. Detach it before
attach on interface_ppps_configure() will make sure it is using the
current mac address.

It should fix #2641

Revision 84086442 (diff)
Added by Renato Botelho over 6 years ago

Set flag setautosrc to replicate parent's mac address automatically when it changes, it's a better solution then dettach it. This should fix #2641

Revision 0ff214f2 (diff)
Added by Renato Botelho over 6 years ago

Preserve "Idle timeout" parameter on interfaces gui. It fixes a problem pointed out on ticket #2641

Revision c1ce0c51 (diff)
Added by Renato Botelho over 6 years ago

Preserve "Idle timeout" parameter on interfaces gui. It fixes a problem pointed out on ticket #2641

History

#1 Updated by Chris Buechler almost 7 years ago

  • Category set to Interfaces
  • Priority changed from High to Normal

#2 Updated by Renato Botelho over 6 years ago

  • Assignee set to Renato Botelho

#3 Updated by Bipin Chandra over 6 years ago

this was discussed some time back on this link http://forum.pfsense.org/index.php/topic,53940.0.html

#4 Updated by Renato Botelho over 6 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#5 Updated by Bipin Chandra over 6 years ago

with this patch will i be able to spoof mac or is it removed only?

#6 Updated by Renato Botelho over 6 years ago

You will be able to spoof mac. Please let me know the results of your tests, it worked fine for me.

#7 Updated by Bipin Chandra over 6 years ago

yes it worked but as i mentioned in the forum, 2 things need to be done, when u apply the new mac id, the itnerface from the ppp link gets lost so it needs to be reassigned so probably that needs a patch so u dont have to go around doing it manually and also put up a note saying to restart the box when mac spoof is used coz without a reboot it doesnt apply

#10 Updated by Bipin Chandra over 6 years ago

tried, it works well but some issues. after i enter a spoofed mac id, it gets implemented and pppoe reconnects and uses the new mac id and everything well but once i goto that spoofed mac id field and remove it and apply again, pppoe reconnects but under ppp tab etc it still keeps showing the spoofed mac id, not the original one, now i tried to do a trace from console to see what amc id its suing for the new connection but wasnt able to as my console hangs, this happens to me a couple of times when i see AT OK in console randomly, so i wasnt able to see is the original mac id being used or no but after a reboot the gui starts showing the original mac id so it might just be a gui bug but in general mac spoof works fine now, thanks

#11 Updated by Chris Buechler over 6 years ago

there's no way to revert a spoofed MAC short of rebooting (with PPP or anything else), the original MAC is gone once you set one. I presume it's back to its hardware MAC after rebooting?

#12 Updated by Bipin Chandra over 6 years ago

if thats the case then it works fine, u can close this bug.
one more thing i noticed not related to this issue but just wan config, noticed this when i was trying the mac spoof, i have dial on demand ticked and the box under it says idle timeout which defaults to 0 but that value is never saved so every time u make changes in the config u need to type 0 in that box to be able to save other changes or else u keep getting the error message prompting to put in some value

#13 Updated by Chris Buechler over 6 years ago

  • Status changed from Feedback to Resolved

#14 Updated by Bipin Chandra over 6 years ago

this ticket needs to be opened again as mac spoofing when working with vlans stopped working, ill try without vlans to see if that also broke or no

Also available in: Atom PDF