Unlocking the potential of Sagemcom 2704N
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Unlocking the potential of Sagemcom 2704N
Unlocking the potential of Sagemcom 2704N
13-03-2015 3:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Things I need to enable and configure:
- DHCP reserved IPs (GUI doesn't allow me to enter IPs from my home 192.168.0.0/24 network, giving error message "Invalid IP", although it is not).
- CLI access (preferably SSH).
- SNMP access (I need SNMP to get interface traffic statistics into MRTG).
- Unencrypted config backup (current config backup produces an encrypted file, and I'm not able to decrypt it).
Tried to get answers from the support team, raised a support ticket, but got the following reply: "Unfortunately this is something that we are unable to support you with. We send out our routers set up to work straight from the factory, if you wish to change advanced settings within the router then you will need to research and implement these changes yourself."
I'm trying to find the ways of enabling these things:
1) Router is listening on SSH port, but doesn't allow to connect. Therefore, SSH functionality is there (that's promising), but with the access control list. Does anyone know how to get SSH connectivity working?
2) Tried to back up the config. I was hoping that it is in clear text, so I could modify certain values in it and then upload the modified config back to the router (did it with some Thomson routers before). Unfortunately, this particular firmware encrypts the backed up config. Looks like this encryption is only present in the Plusnet firmware version, as other 2704N users post unencrypted XML configs. Does anyone know how to decrypt it?
3) Haven't tried changing the firmware yet, as I don't have the original Plusnet firmware image to be able to roll back any changes. Does anyone know how to get the original Plusnet firmware image? Unfortunately, OpenWRT image for this router is not available yet. Support page on Sagemcom website for this router doesn't exist either, so the only option is to try other users (Polish, Brasil) firmwares. But will be too risky without the roll back option.
I believe that this router has SNMP functionality, as it is present in other Sagemcom routers. However, the router is not listening on 161/udp by default (SNMP might be simply disabled).
Does anyone have any other ideas on how to unlock the full potential of this device?
Does anyone know where I can get proper support for this hardware?
Darsh
Re: Unlocking the potential of Sagemcom 2704N
13-03-2015 6:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
RouterPassView appears to be able to decrypt some router config files, but doesn't mention the 2704N, so it doubt it will work for this.
I don't have a 2704N, so can't really offer any further help with this.
Re: Unlocking the potential of Sagemcom 2704N
16-03-2015 10:52 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
RouterPassView isn't able to decrypt the saved config either.
I thought that, maybe, Plusnet simply removed the admin pages from the GUI menu, but not from the flash, so I tried to access some of them directly, like we are accessing expert_user.html - but with no luck, looks like Plusnet removed them from the GUI completely.
So at the moment the only option is to wait for one of:
- Plusnet shares how to unlock the router (unlikely, they made quite a big effort to lock it from all the sides)
- Sagemcom publishes how to unlock it
- Sagemcom publishes new version of firmware (lucky enough, the GUI still allows this)
- OpenWRT starts to support it
- Somebody will be able to hack it somehow
Please share your ideas for the last point 🙂
Darsh
Re: Unlocking the potential of Sagemcom 2704N
18-03-2015 12:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Analysing JavaScript pages of expert_user.html, found a way to get rid of silly checks resulting in "invalid IP" error. As you might remember, the GUI wasn't allowing me to add IPs from subnet 192.168.0.0/24, while 192.168.1.0/24 was OK.
Page http://router/StaticIpAdd.html has these checks in JavaScript. This page takes arguments (MAC address, IP address), checks them and produces URL http://router/dhcpdstaticlease.cmd?action=add&mac=11:22:33:44:55:66&static_ip=192.168.0.1&sessionKey...
Manually creating such URLs for each of my reserved IPs, I was able to successfully populate the DHCP reserved IPs table.
Session key changes after each request, you need to look it up in the StaticIpAdd.html yourself for every IP you are adding.
Darsh
Re: Unlocking the potential of Sagemcom 2704N
19-03-2015 11:00 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just search for backupsettings.conf over the Internet - there are configs posted for other Sagemcom routers. I assume at least parts of these configs can be used in 2704N.
Darsh
Re: Unlocking the potential of Sagemcom 2704N
23-03-2015 5:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Changing the usernames/passwords using this method was unsuccessful - config updater refuses the respective xml tag <X_BROADCOM_COM_LoginCfg>, which might indicate that current user doesn't have privileges to do it.
Apart from that - fiddling with the config was successful, should allow to modify almost any part of configuration that is not available or is limited via the GUI (DHCP reservations, port forwarding) - apart from snmp/telnet/ssh and user control.
As to various XML tags for this config - the most complete list I've found in the Sagemcom 4310 config dump http://pastebin.com/jbJSWjbW
4310 is very similar to 2704N, so most of these tags should work. Have fun! 🙂
The next step in unlocking this box would be to take it apart, connect to the serial port on its PCB and hope that Plusnet haven't blocked the console access. But I don't have enough passion to go this way at the moment, I need to get my network up and running, so I'm giving up and switching from Sagemcom 2704N to TP-Link TD-W8951ND, which should have telnet, snmp and other features enabled out of the box - only for £20.
Such a pity that Plusnet have limited this excellent small router so much that it is almost unusable for anything even slightly non-standard 😞
Darsh
Re: Unlocking the potential of Sagemcom 2704N
27-03-2015 12:05 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Unlocking the potential of Sagemcom 2704N
27-03-2015 3:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
!!! Don't forget to back up your existing config first - this will allow you to roll back in case of problems.
Darsh
Re: Unlocking the potential of Sagemcom 2704N
28-03-2015 12:58 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
For future reference, its pvc 0/38 rather than 0/35.
Re: Unlocking the potential of Sagemcom 2704N
30-03-2015 5:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Wrote two small scripts to get traffic and ADSL rate into MRTG, using curl and xmllint. Scripts log in, saving cookie, and then parse specific stats pages, using this cookie.
PPPoA traffic:
#!/bin/sh
cd <script dir>
curl -s --data "loginuser=admin&loginpasswd=<password>" --cookie-jar cookies.txt http://<router IP>/plusnetlogin.cgi > /dev/null
curl -s --cookie cookies.txt http://<router IP>/statswan.cmd > statswan.html
xmllint --html --xpath '//tr[last()]/td[position()=3]/text()' statswan.html 2> /dev/null
echo
xmllint --html --xpath '//tr[last()]/td[position()=7]/text()' statswan.html 2> /dev/null
echo
rm cookies.txt statswan.html
ADSL rate:
#!/bin/sh
cd <script dir>
curl -s --data "loginuser=admin&loginpasswd=<password>" --cookie-jar cookies.txt http://<router IP>/plusnetlogin.cgi > /dev/null
curl -s --cookie cookies.txt http://<router IP>/statsadsl.cmd > statsadsl.html
xmllint --html --xpath '//tr[position()=16]/td[position()=2]/text()' statsadsl.html 2> /dev/null
echo
xmllint --html --xpath '//tr[position()=16]/td[position()=3]/text()' statsadsl.html 2> /dev/null
echo
rm cookies.txt statsadsl.html
Scripts are not optimised yet - ideally they should check if the cookie still works, and only log in again if it doesn't.
Darsh
Re: Unlocking the potential of Sagemcom 2704N
30-03-2015 6:29 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just letting you know you're not talking to yourself here - I've still been following this thread with interest
Re: Unlocking the potential of Sagemcom 2704N
01-04-2015 6:17 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
if anyone is interest I have adjusted the firmware (well mainly the filesystem) of my 2704N, to extend the expert_user.html options.
https://drive.google.com/file/d/0B4-Ln6UubyEeWUllUkFhLXJKVzg
Does anyone know where the GPL Source Code is? or another source code with the same CPU and limited RAM ?
Re: Unlocking the potential of Sagemcom 2704N
02-04-2015 7:45 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
has anyone been able to change the password on this device with success?
i logged in to the expert_user interface, changed it, but weirdly now i can no longer log in to the device with ither the original login or the new one i set myself.
Re: Unlocking the potential of Sagemcom 2704N
02-04-2015 8:17 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Unlocking the potential of Sagemcom 2704N
02-04-2015 10:23 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: crazydan7 hi,
has anyone been able to change the password on this device with success?
Yes, working for me ok, I did change mine before I connected it to plusnet though, but I don't see why it would make any difference if you was connected or not.
I would like to pass on thanks to Darsh and Matty123123 for there time and efforts, much appreciated.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: Unlocking the potential of Sagemcom 2704N