summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-16 11:09:06 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-16 11:09:06 -0200
commit254ebf8b0fb9a8042d154ab2206d7c4f3f16b487 (patch)
tree859be151f7721bb8f0daa342c473fafc8615038d /etc
parent99e991fd209c3574adf2727852757f9caad80431 (diff)
downloadpfsense-254ebf8b0fb9a8042d154ab2206d7c4f3f16b487.zip
pfsense-254ebf8b0fb9a8042d154ab2206d7c4f3f16b487.tar.gz
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
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 797df0c..83d6020 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1425,6 +1425,8 @@ function interface_ppps_configure($interface) {
case "pppoe":
/* Bring the parent interface up */
interfaces_bring_up($port);
+ /* Detach if it was previously attached to use new mac address if it has been changed */
+ pfSense_ngctl_detach("{$port}:", $port);
pfSense_ngctl_attach(".", $port);
break;
case "pptp":
OpenPOWER on IntegriCloud