I have a tp link w8970 running on 18.01 with web access and I wanted to upgrade to 18.04.
I downloaded the file and went online. I kept the config files
after upgrade and rebooting I can't reach the router via web but still on port 22. The router is working fine with same configs as before. What has change is the access.
Can someone help how to restore it via SSH?
a port scan shows the router on 192.168.1.1. has port: 22, 80, 1194, 4430 open
cheers
UPDATE
after checking the luci.essential howto I managed to change the port for Luci as follow:
it works on port 8080 but the it doesn't recognize user and password whist still valid to have access on SSH. I tried several time to time the password also with cut&past. works in SSH not online
Have you kept any backup from before the upgrade?
Also keep in mind that packages added after the flashing of the image are not carried over to the upgraded version, so you'll need to reinstall them.
Check what is running on port 80 netstat -lnp | grep 80
Well,
As I was going for several changes on the setting and as first time I worked onopenwrt ending on almost saturating the memory with tests and several extra packages, I decided to go for a full reset via serial console.
I just uploaded the 18.04 without any format of the memory.
Surprisingly the directory /etc/config hasn't been deleted which helped on restoring most of the settings but keeping some of the trouble
At this stage most of the memory has been freed but I have problem on changing lan IP settings.
I have now online access (with old user &password) but when I try to change the IP and save the conf roll back to default 192.168.1.1
I'll open a different post as things have changed from the subject of the title
I made few more tries and I'm seeing this to be a bug somehow
Possibly all issues started when I wanted to change lan ip subnet from /24 to /26...
At the moment I have access using default IP setting 192.168.1.1
I did flash via Luci without keeping configs which reset most of the setting but not all (WiFi parameter were still as before, PPPOE was deleted as example)
I tried to change LAN IP to 10.0.1.0/24 via Luci but the system reverted all time (18.0x feature if browser lost contact to the admin pc, apparently)
I changed the network config file and restart network service. No Luci access, yes SSH access so roll back to 192.168.1.1. all working again
Although I flashed via Luci and not keeping the config something is kept and this can cause the problem when changing IP...
Any hints about which conf file is kept and/or where to look at?
I'm considering backing up the /etc/config directory and undertake a new flash via serial console....
Make sure the web server is bound to all IPs uci show uhttpd | grep listen_http
Files to be preserved depend on the following:
/etc/sysupgrade.conf - customizable backup configuration.
/lib/upgrade/keep.d/* - system configurations provided by specific packages preserved by default.
opkg list-changed-conffiles - list of files derived by package manager.
You can run firstboot from the SSH or Restore Factory Defaults in Luci. No need to flash again.
I have access via web so far at the defaut ip of 192.168.1.1. When I change to 10.0.0.0/8 (more or less) i can't access online anymore but I can over SSH which show the intranet is ok...
I'll try on different private IP 172.x.x.x to understand if something has to do with the 10.x.x.x/8 or not
At the moment I've updated using SSH the ip to 172.x.x.x, restart network service and everything is working.
I believe there is something stored somehow in the system which is not reset with factory reset process and give problem to the uhttp and the address 10.0.0.0/8
Use something realistic, like 172.16.0.1/24 or /23 if you need more IPs in the same domain.
10.0.0.0/8 is anyway not a valid IP address, setting aside the fact that this can hold 16million hosts.
[SOLVED]
At the end, after several checks and attempts I figured out it was a problem with browser cache redirecting to the wrong configuration https VS http and https/https standard 80,443 ports VS not standard ports