Unable to access Luci or ssh into new install

I have an archer c7 v2 and installed the newest release on it via Luci.

My goal is to mirror the settings I have on my other archer c7 that is running a very old lede version.

I have a somewhat complicated setup. I have a pfsense box that is my dhcp server and firewall. I run multiple vlans. Every device goes through a managed Cisco switch. The to the pfsense box.

I have an admin vlan that connects all my old archer c7, the new one, the switch and the pfsense box.

I have made all the necessary configs on the new device so that it can get an ip address via pfsense. I can ping that address with no issues. But I cannot ssh on port 22 nor can I connect to Luci via that ip address.

I have disabled the firewall in the new device, and dnsmasq. The uhttpd service is set to listen on both 80 and 443 and accepts connections on any address. The same with ssh connections on port 22.

There are no pfsense firewall settings on the admin lan blocking the connection.

I'm not sure where to look next.

Any help appreciated

I hope that you configured from scratch obeying the latest syntax and that you didn't just restore a backup or otherwise directly move config files or segments from the old device to the new one.

We should start by reviewing your configurations... since you are unable to get into the device right now, that becomes a bit more difficult. But there is a way to do this.

Boot into failsafe mode, then mount root, and then grab the config files for review.

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
cat /etc/config/dropbear
cat /etc/config/uhttpd

Hello,

I didn't copy any config. Just configured some initial ones like the vlan info and added the admin interface. Disabled the firewall and dsnmasq.

I am able to plug directly into the router and access Luci with via the default address 192.168.1.1

I just cannot access it once I put it on the lan. I can only ping it. Pfsense shows port 443 and 22 are open. But I can't open lucí via https nor http. Cannot connect via ssh in port 22 with putty.

I will post the congigs soon.

ok... then let's see the config files so we can review what is going on.

What physical port (on the C7) are you connecting to the pfsense box?

What VLANs do you have on pfsense box?

  • VLAN IDs including the tagged or untagged status of each
  • Purpose of each VLAN ID (just broadly - like trusted LAN, guest, IoT, management)
  • subnet of each VLAN
  • desired use of each VLAN (are they active on any other port(s), wifi, etc.)

I have 10 vlans on the pfsense box. I only use 3 of them at the moment. The others are not used and are disabled.

VLAN 10 is ADMIN: for administrative stuff.
VLAN 30 is USER: For user access via wireless or plugging into ethernet jacks in house
VLAN 80 is IOT : For IOT devices; smart plugs, cameras...

VLAN10 is 10.0.0.0/24
VLAN30 is 10.0.3.0/24
VLAN80 is 10.0.8.0/24

On the Admin VLAN connected devices are the pfsense box, a cisco managed switch and the original Archer c7 v2 (which serves wifi for VLAN80 and VLAN30)

I new archer c7 is connected to the cisco switch on port 7, which has been tagged on vlan10. Thus I am able to get an IP address on that vlan. IP address is 10.0.0.80 which is set as static in the pfsense box. I have a laptop which is connected to the Admin Lan that allows me to configure the Admin devices. From this laptop, I can ping the new Archer C7. But cannot connect to luci via https nor http. Nor can I ssh into the device.

root@OpenWrt:~# ubus call system board
{
        "kernel": "5.15.137",
        "hostname": "OpenWrt",
        "system": "Qualcomm Atheros QCA9558 ver 1 rev 0",
        "model": "TP-Link Archer C7 v2",
        "board_name": "tplink,archer-c7-v2",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.2",
                "revision": "r23630-842932a63d",
                "target": "ath79/generic",
                "description": "OpenWrt 23.05.2 r23630-842932a63d"
        }
}
root@OpenWrt:~# cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd94:207f:f45d::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth1.1'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option device 'eth0.2'
        option proto 'dhcp'

config interface 'wan6'
        option device 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0t 2 1t'
        option vid '1'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '6t 1'
        option vid '2'

config interface 'Admin'
        option proto 'dhcp'
        option device 'eth1.10'
        option ipaddr '10.0.0.80'
        option delegate '0'


config switch_vlan
        option device 'switch0'
        option vlan '3'
        option ports '0t 2t 3 4 5 1t'
        option vid '10'

config device
        option name 'eth1.10'
        option type '8021q'
        option ifname 'eth1'
        option vid '10'

config route
        option interface 'Admin'
        option target '10.0.0.0/24'
        option gateway '10.0.0.1'

root@OpenWrt:~# cat /etc/config/wireless

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'pci0000:00/0000:00:00.0'
        option channel '36'
        option band '5g'
        option htmode 'VHT80'
        option disabled '1'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/ahb/18100000.wmac'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option disabled '1'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

root@OpenWrt:~# cat /etc/config/dhcp

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option filterwin2k '0'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option nonegcache '0'
        option cachesize '1000'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
        option nonwildcard '1'
        option localservice '1'
        option ednspacket_max '1232'
        option filter_aaaa '0'
        option filter_a '0'

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option dhcpv4 'server'
        option dhcpv6 'server'
        option ra 'server'
        option ra_slaac '1'
        list ra_flags 'managed-config'
        list ra_flags 'other-config'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

config odhcpd 'odhcpd'
        option maindhcp '0'
        option leasefile '/tmp/hosts/odhcpd'
        option leasetrigger '/usr/sbin/odhcpd-update'
        option loglevel '4'

config dhcp 'Admin'
        option interface 'Admin'
        option ignore '1'

root@OpenWrt:~# cat /etc/config/firewall
config defaults
        option syn_flood        1
        option input            REJECT
        option output           ACCEPT
        option forward          REJECT
# Uncomment this line to disable ipv6 rules
#       option disable_ipv6     1

config zone
        option name             lan
        list   network          'lan'
        option input            ACCEPT
        option output           ACCEPT
        option forward          ACCEPT

config zone
        option name             wan
        list   network          'wan'
        list   network          'wan6'
        option input            REJECT
        option output           ACCEPT
        option forward          REJECT
        option masq             1
        option mtu_fix          1

config forwarding
        option src              lan
        option dest             wan

# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
        option name             Allow-DHCP-Renew
        option src              wan
        option proto            udp
        option dest_port        68
        option target           ACCEPT
        option family           ipv4

# Allow IPv4 ping
config rule
        option name             Allow-Ping
        option src              wan
        option proto            icmp
        option icmp_type        echo-request
        option family           ipv4
        option target           ACCEPT

config rule
        option name             Allow-IGMP
        option src              wan
        option proto            igmp
        option family           ipv4
        option target           ACCEPT

# Allow DHCPv6 replies
# see https://github.com/openwrt/openwrt/issues/5066
config rule
        option name             Allow-DHCPv6
        option src              wan
        option proto            udp
        option dest_port        546
        option family           ipv6
        option target           ACCEPT

config rule
        option name             Allow-MLD
        option src              wan
        option proto            icmp
        option src_ip           fe80::/10
        list icmp_type          '130/0'
        list icmp_type          '131/0'
        list icmp_type          '132/0'
        list icmp_type          '143/0'
        option family           ipv6
        option target           ACCEPT

# Allow essential incoming IPv6 ICMP traffic
config rule
        option name             Allow-ICMPv6-Input
        option src              wan
        option proto    icmp
        list icmp_type          echo-request
        list icmp_type          echo-reply
        list icmp_type          destination-unreachable
        list icmp_type          packet-too-big
        list icmp_type          time-exceeded
        list icmp_type          bad-header
        list icmp_type          unknown-header-type
        list icmp_type          router-solicitation
        list icmp_type          neighbour-solicitation
        list icmp_type          router-advertisement
        list icmp_type          neighbour-advertisement
        option limit            1000/sec
        option family           ipv6
        option target           ACCEPT

# Allow essential forwarded IPv6 ICMP traffic
config rule
        option name             Allow-ICMPv6-Forward
        option src              wan
        option dest             *
        option proto            icmp
        list icmp_type          echo-request
        list icmp_type          echo-reply
        list icmp_type          destination-unreachable
        list icmp_type          packet-too-big
        list icmp_type          time-exceeded
        list icmp_type          bad-header
        list icmp_type          unknown-header-type
        option limit            1000/sec
        option family           ipv6
        option target           ACCEPT

config rule
        option name             Allow-IPSec-ESP
        option src              wan
        option dest             lan
        option proto            esp
        option target           ACCEPT

config rule
        option name             Allow-ISAKMP
        option src              wan
        option dest             lan
        option dest_port        500
        option proto            udp
        option target           ACCEPT


### EXAMPLE CONFIG SECTIONS
# do not allow a specific ip to access wan
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option dest             wan
#       option proto    tcp
#       option target   REJECT

# block a specific mac on wan
#config rule
#       option dest             wan
#       option src_mac  REDACTED
#       option target   REJECT

# block incoming ICMP traffic on a zone
#config rule
#       option src              lan
#       option proto    ICMP
#       option target   DROP

# port redirect port coming in on wan to lan
#config redirect
#       option src                      wan
#       option src_dport        80
#       option dest                     lan
#       option dest_ip          192.168.16.235
#       option dest_port        80
#       option proto            tcp

# port redirect of remapped ssh port (22001) on wan
#config redirect
#       option src              wan
#       option src_dport        22001
#       option dest             lan
#       option dest_port        22
#       option proto            tcp

### FULL CONFIG SECTIONS
#config rule
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  REDACTED
#       option src_port 80
#       option dest             wan
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp
#       option target   REJECT

#config redirect
#       option src              lan
#       option src_ip   192.168.45.2
#       option src_mac  REDACTED
#       option src_port         1024
#       option src_dport        80
#       option dest_ip  194.25.2.129
#       option dest_port        120
#       option proto    tcp
root@OpenWrt:~# cat /etc/config/dropbear

config dropbear
        option PasswordAuth 'on'
        option Port '22'

root@OpenWrt:~# cat /etc/config/uhttpd

config uhttpd 'main'
        list listen_http '0.0.0.0:80'
        list listen_http '[::]:80'
        list listen_https '0.0.0.0:443'
        list listen_https '[::]:443'
        option redirect_https '0'
        option home '/www'
        option rfc1918_filter '1'
        option max_requests '3'
        option max_connections '100'
        option cert '/etc/uhttpd.crt'
        option key '/etc/uhttpd.key'
        option cgi_prefix '/cgi-bin'
        list lua_prefix '/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua'
        option script_timeout '60'
        option network_timeout '30'
        option http_keepalive '20'
        option tcp_keepalive '1'
        option ubus_prefix '/ubus'

config cert 'defaults'
        option days '730'
        option key_type 'ec'
        option bits '2048'
        option ec_curve 'P-256'
        option country 'ZZ'
        option state 'Somewhere'
        option location 'Unknown'
        option commonname 'OpenWrt'

root@OpenWrt:~#

Which physical port on the C7 is used as the uplink?

I've tried all of them. With the original archer, it's connected to the switch via the ethernet port.

I’m talking about the port on the back of the c7. There is a wan port and 4 lan ports. I need to know which one you plan to use.

It's connected to the WAN port. But I've connected it to all four LAN ports and get the same result.

ok...
so there are quite a few issues with the config, let's see if we can straighten them out.

I think that your wan port is mapped to logical port 1 and that the cpu connections eth0 and eth1 correspond to logical port 6 and logical port 0, respectively.

edit the VLAN 10 definition to look like this:

config switch_vlan
        option device 'switch0'
        option vlan '3'
        option ports '0t 1t'
        option vid '10'

now, the admin network interface needs to be edited... it should look like this (the address comes from DHCP, so get rid of it):

config interface 'Admin'
        option proto 'dhcp'
        option device 'eth1.10'

Delete this:

And then delete this (it's not necessary):

Assign the admin network to the lan zone

config zone
        option name             lan
        list   network          'lan'
        list   network          'Admin'
        option input            ACCEPT
        option output           ACCEPT
        option forward          ACCEPT

Enable the firewall -- there is no reason to disable it.

Then restart your router, connect to the pfsense box via ethernet to the WAN port of the C7 and test again.

There's still more cleanup to do, but this should get things started. Let me know if that works and post the latest config files (network and firewall).

With the help above, I was able to get back into the router.

I am now attempting to re-create my configuration from the older archer c7 that is running 17.01.

The configuration seems a bit different with the devices tab under interfaces, and I am not finding any documentation on how to configure that. My end goal is to have one archer c7 on one side of the house and another archer c7 on the upper floor. I would be extending the wifi with fast roaming. I have been following onemarcfifty and his tutorials, but they are not up to date with the new version and I do not believe my device supports DSA.

I have added the remaining VLANS that I need to have configured.

root@OpenWrt:/etc/config# cat network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix ####################

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth1.1'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option device 'eth0.2'
        option proto 'dhcp'

config interface 'wan6'
        option device 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0t 2 3 4'
        option vid '1'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '6t 1'
        option vid '2'

config switch_vlan
        option device 'switch0'
        option vlan '10'
        option ports '0t 1t'
        option vid '10'
        option description 'Admin'

config interface 'Admin'
        option proto 'dhcp'
        option device 'eth1.10'

config zone
        option name 'lan'
        list network 'lan'
        list network 'Admin'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'

config interface 'IOT'
        option proto 'static'
        option device 'br-IOT'

config interface 'GUEST'
        option proto 'static'
        option device 'br-GUEST'

config interface 'USER'
        option proto 'static'
        option device 'br-USER'

config interface 'USER_WIFI'
        option proto 'static'
        option device 'br-USER-WIFI'

config switch_vlan
        option device 'switch0'
        option vlan '20'
        option ports '0t 3t 1t'
        option vid '20'
        option description 'User'

config switch_vlan
        option device 'switch0'
        option vlan '30'
        option ports '0t 3t 1t'
        option vid '30'
        option description 'User_Wifi'

config switch_vlan
        option device 'switch0'
        option vlan '80'
        option ports '0t 3t 1t'
        option vid '80'
        option description 'IOT'

config switch_vlan
        option device 'switch0'
        option vlan '192'
        option ports '0t 3t 1t'
        option vid '192'
        option description 'Guest'

config device
        option type 'bridge'
        option name 'br-IOT'
        list ports 'eth1.80'

config device
        option type 'bridge'
        option name 'br-GUEST'
        list ports 'eth1.192'

config device
        option type 'bridge'
        option name 'br-USER'
        list ports 'eth1.20'

config device
        option type 'bridge'
        option name 'br-USER-WIFI'
        list ports 'eth1.30'

root@OpenWrt:/etc/config#



root@OpenWrt:/etc/config# cat firewall

config defaults
        option syn_flood '1'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone
        option name 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
        list network 'lan'

config zone
        option name 'wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'
        list network 'wan'
        list network 'wan6'

config forwarding
        option src 'lan'
        option dest 'wan'

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option src_ip 'fe80::/10'
        list icmp_type '130/0'
        list icmp_type '131/0'
        list icmp_type '132/0'
        list icmp_type '143/0'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-IPSec-ESP'
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option name 'Allow-ISAKMP'
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'

root@OpenWrt:/etc/config#