technik
05-20-2008, 02:24 AM
I really would like to be able to define the PPPoE service name!
douglasarruda
06-26-2008, 10:18 AM
I need it too.
The only thing I need to use it is the Service Name option.
I tried adding a line into /etc/ppp/options, and it worked. But it works only until it reboots, because that directory does not save anything. The only directory I found I can save is /tmp/.
I add this line:
rp_pppoe_service XXXXXXXX
where XXXXXXX is the Service Name
Anyone knows a possibility to save this?
You can do it this way:
Create a file called rc.poststart in /etc/persistent/
and add this line:
echo "rp_pppoe_service NAME" >> /etc/ppp/options
and save with:
cfgmtd -w -p /etc
Done!
Eric Val
www.testesuavelocidade.com.br
Well, evryone who has more than one PPPoE server in bridged network need this feature, so do I.
Every "wisp mode" capable device on the market market has ability to set "pppoe service name" via web gui.
Setting this via telnet i so lame..
Hello.
I've done the homework. Here's the patch for SDK 3.3.2. Status: Works for me.
diff -ru /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/getrouter.inc /opt/ubnt/sdk/apps/web/common/lib/getrouter.inc
--- /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/getrouter.inc 2008-10-17 17:00:48.000000000 +0200
+++ /opt/ubnt/sdk/apps/web/common/lib/getrouter.inc 2009-07-24 10:05:22.000000000 +0200
@@ -27,6 +27,7 @@
$wanpppoemppe = cfg_get_pppoe_mppe($cfg, $wan_iface, $wanpppoemppe);
$pppoemtu = cfg_get_pppoe_mtu($cfg, $wan_iface, $pppoemtu);
$pppoemru = cfg_get_pppoe_mru($cfg, $wan_iface, $pppoemru);
+$pppoeservicename = cfg_get_pppoe_service($cfg, $wan_iface, $pppoeserviceservice);
$wlanip = cfg_get_ipv4addr($cfg, $wlan_iface, $wlanip);
$wlanmask = cfg_get_ipv4mask($cfg, $wlan_iface, $wlanmask);
$wangw = cfg_get_ipv4gw($cfg, $wan_iface, $wangw);
diff -ru /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/lang/pl_PL/Polski /opt/ubnt/sdk/apps/web/common/lib/lang/pl_PL/Polski
--- /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/lang/pl_PL/Polski 2008-04-30 15:51:16.000000000 +0200
+++ /opt/ubnt/sdk/apps/web/common/lib/lang/pl_PL/Polski 2009-07-24 10:14:56.000000000 +0200
@@ -308,6 +308,7 @@
Port Forwarding: => Przekierowania portĂłw:
PPPoE Encryption: => Szyfrowanie PPPoE:
PPPoE Password: => HasĹo PPPoE:
+PPPoE Service name: => Nazwa uslugi PPPoE:
PPPoE => PPPoE
PPPoE Username: => Nazwa uĹźytkownika PPPoE:
PPP => PPP
diff -ru /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/link.inc /opt/ubnt/sdk/apps/web/common/lib/link.inc
--- /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/link.inc 2009-01-19 14:25:34.000000000 +0100
+++ /opt/ubnt/sdk/apps/web/common/lib/link.inc 2009-07-24 11:02:16.000000000 +0200
@@ -969,7 +969,7 @@
return cfg_get_def($cfg, "resolv.nameserver.2.ip", $dns);
);
-Function set_pppoe $cfg, $iface, $user, $pass, $mppe, $pppoe, $mtu, $mru (
+Function set_pppoe $cfg, $iface, $user, $pass, $mppe, $pppoe, $mtu, $mru, $rp_pppoe_service (
if ($pppoe == "on" || $pppoe == "enabled")
{
$pppoe = "enabled";
@@ -985,6 +985,7 @@
cfg_set($cfg, "iptables.3.cmd","-A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu");
cfg_set($cfg, "ppp.1.mtu", $mtu);
cfg_set($cfg, "ppp.1.mru", $mru);
+ cfg_set($cfg, "ppp.1.rp_pppoe_service", $rp_pppoe_service);
}
else
{
@@ -1050,6 +1051,10 @@
return cfg_get_def($cfg, "ppp.1.mru", $mru);
);
+Function cfg_get_pppoe_service $cfg, $iface, $rp_pppoe_service (
+ return cfg_get_def($cfg, "ppp.1.rp_pppoe_service", $rp_pppoe_service);
+);
+
Function set_dhcpd $cfg, $iface, $start, $end, $mask, $lease, $dhcpd, $dnsproxy (
if ($dhcpd == "on" || $dhcpd == "enabled")
{
diff -ru /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/netroutersta.tmpl /opt/ubnt/sdk/apps/web/common/lib/netroutersta.tmpl
--- /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/netroutersta.tmpl 2008-11-17 16:42:54.000000000 +0100
+++ /opt/ubnt/sdk/apps/web/common/lib/netroutersta.tmpl 2009-07-24 10:12:21.000000000 +0200
@@ -96,6 +96,8 @@
</tr>
<tr><td class="f"><? echo dict_translate("PPPoE Password:"); ></td>
<td colspan="3"><input class="f" type="text" name="wanppoepass" id="wanppoepass" value="<?echo $wanppoepass>" required="1" callback="validateWlanPPPoE" realname="<? echo dict_translate("WLAN PPPoE Password"); >"/></td>
+ <tr><td class="f"><? echo dict_translate("PPPoE Service Name:"); ></td>
+ <td colspan="3"><input class="f" type="text" name="pppoeservicename" id="pppoeservicename" value="<?echo $pppoeservicename>" required="1" callback="validateWlanPPPoE" realname="<? echo dict_translate("WLAN PPPoE Service name"); >"/></td>
</tr>
<tr><td class="f"><? echo dict_translate("PPPoE MTU/MRU:"); ></td>
<td colspan="3">
diff -ru /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/setrouter.inc /opt/ubnt/sdk/apps/web/common/lib/setrouter.inc
--- /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/lib/setrouter.inc 2008-10-17 17:00:48.000000000 +0200
+++ /opt/ubnt/sdk/apps/web/common/lib/setrouter.inc 2009-07-24 10:04:21.000000000 +0200
@@ -30,7 +30,7 @@
set_ipv4($cfg, $eth_iface, $lanip, $lanmask);
set_ipv4gw($cfg, $wan_iface, $wangw);
set_dhcpc($cfg, $wan_iface, $dhcpc);
-set_pppoe($cfg, $wan_iface, $wanppoeuser, $wanppoepass, $wanpppoemppe, $pppoe, $pppoemtu, $pppoemru);
+set_pppoe($cfg, $wan_iface, $wanppoeuser, $wanppoepass, $wanpppoemppe, $pppoe, $pppoemtu, $pppoemru, $pppoeservicename);
set_dhcpd($cfg, $lan_iface, $dhcpd_start, $dhcpd_end, $dhcpd_netmask, $dhcpd_lease, $dhcpd_status, $dhcpd_dnsproxy_status);
set_dns($cfg, $dns1, $dns2);
if (strlen($natifc) == 0) {
diff -ru /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/network.js /opt/ubnt/sdk/apps/web/common/network.js
--- /opt/ubnt/SDK.UBNT.v3.3.2.4257/apps/web/common/network.js 2008-10-17 17:00:48.000000000 +0200
+++ /opt/ubnt/sdk/apps/web/common/network.js 2009-07-24 10:03:04.000000000 +0200
@@ -50,7 +50,7 @@
var apst = ['lanip','lanmask'];
var stast = ['wlanip', 'wlanmask'];
var st = new Array('wangw','dns1','dns2');
- var pppoe = new Array('wanppoeuser','wanppoepass', 'wanpppoemppe', 'pppoemtu', 'pppoemru');
+ var pppoe = new Array('wanppoeuser','wanppoepass', 'wanpppoemppe', 'pppoemtu', 'pppoemru', 'pppoeservicename');
var dhcp = new Array('fallback_ip');
var e = new Array();
var d = new Array();
--- /opt/ubnt/SDK.UBNT.v3.3.2.4257/rootfs/ls2/linuxrc 2008-08-29 04:19:27.000000000 +0200
+++ /opt/ubnt/sdk/rootfs/ls2/linuxrc 2009-07-30 18:10:28.000000000 +0200
@@ -128,6 +128,8 @@
/sbin/ubntconf
fi
+echo "rp_pppoe_service" `grep 'service' /tmp/system.cfg | cut -f2 -d'='` >> /etc/ppp/options
+
echo "Executing init..."
exec /sbin/init -f
Is there a problem to add this few lines to the main tree ? Or at least make ubntbox "ppp.1.rp_pppoe_service" option aware.
Bump.(Hello)
I made custom firmware from v.3.4.
http://zwierzu.zepsul.net/XS5.ar2313.v3.4.4390.090521.1803.bin
After upgrade, remove /etc/persistent/rc.poststart and reboot.
Use at your own risk ;)
Status: woks for me.
http://img38.imageshack.us/img38/1580/ubntservicename.png
euroemy
10-29-2009, 02:51 PM
I make excuses myself for my English. I have tried to load firmware on mine nanostation2 but it says to me that he is not compatible. To me it serves the name service in order to carry out the logon in modality router. You have information to forward to me? thanks
ckinoto
11-01-2009, 05:40 PM
this works also with bullet5?
antoniogc
03-14-2010, 02:42 PM
I need to add the field name and encoding service (*******) pppoe password field in the firmware of Nanostation 5 and Nanostation M5.
Someone made to send them for me?
Thank you very much