-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by tingyu
-
-
大佬,我用了这个方法,然后重启了unraid,发现用which wget时,显示的仍然是/usr/bin/下的wget,这可能是什么原因?难道是因为我使用了oh-my-zsh的原因吗?我的go完整内容为:
root@Tower:~# cat /boot/config/go #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & /bin/sh /boot/config/custom-init.sh #docker # prepare folder mkdir -p /etc/docker # update mirror tee /etc/docker/daemon.json << EOF { "registry-mirrors": [ "https://*********.mirror.aliyuncs.com" ] } EOF # https://obsolete.blog/2021/07/10/persistent-zsh-oh-my-zsh-on-unraid/ # give me oh-my-zsh tar xjf /boot/root/zsh.tar.bz2 -C /root/ ln -s /root/.bash_profile /root/.bashrc # and update it! cp /boot/root/omz-update.sh /root/ && chmod +x /root/omz-update.sh && /root/omz-update.sh # begin https://forums.unraid.net/topic/124014-i-need-config-a-proxy/?do=findComment&comment=1130948 http_proxy=http://192.168.50.107:7893 https_proxy=http://192.168.50.107:7893 echo "export http_proxy=\"http://192.168.50.107:7893\"" >> /root/.zshrc echo "export https_proxy=\"http://192.168.50.107:7893\"" >> /root/.zshrc # end # github access issue solove under gfw https://forums.unraid.net/topic/118444-%E4%BB%8E%E6%A0%B9%E6%9C%AC%E4%B8%8A%E8%A7%A3%E5%86%B3unraid%E4%BB%8Egithub%E4%B9%8B%E7%B1%BB%E7%BD%91%E7%AB%99%E4%B8%8B%E8%BD%BD%E5%8C%85%E7%BB%8F%E5%B8%B8%E5%A4%B1%E8%B4%A5%E9%97%AE%E9%A2%98/ find /mnt/user/system/bin -type f ! -name ".*~" -exec ln -sf {} /usr/local/bin/ \;
而且我发现/usr/local/bin下也没有建立软连接啊:
$ ll /usr/local/bin total 16M -rwxr-xr-x 1 root root 2.9M Aug 3 07:14 docker-compose -rwxr-xr-x 1 root root 1.8M Mar 1 2015 plink -rwxr-xr-x 1 root root 1.8M Mar 1 2015 pscp -rwxr-xr-x 1 root root 1.8M Mar 1 2015 psftp -rwxr-xr-x 1 root root 1.7M Mar 1 2015 pterm -rwxr-xr-x 1 root root 2.9M Mar 1 2015 putty -rwxr-xr-x 1 root root 738K Mar 1 2015 puttygen -rwxr-xr-x 1 root root 1.9M Mar 1 2015 puttytel -rwxr-xr-x 1 root root 452 Aug 8 23:05 smartlocate drwxr-xr-x 3 root root 180 Aug 8 23:06 unraid-api # root @ Tower in ~ [23:06:53] $ ll /mnt/user/system/bin total 4.0K -rw-rw-rw- 1 root root 264 Jul 23 14:20 wget
-
In addition, when I tried access to my unraid server from wan(with router port forwarding: 23678 --> unraid:443), it doesn't work either.
-
22 hours ago, ken-ji said:
You really shouldn't be doing it this way.
And since you've happily published your WAN IP + ssh port you'll have bad actors knocking on it soon, if not already
* Revoke the port forward.
* See what your options are for deploying your own VPN server (Wireguard on Unraid) or maybe something on the Router (not familiar with the ASUS line)
* Use that VPN to connect and login to the Unraid SSH (or Web UI)
Also Unraid only allows root to login by default, so that might also explain the connection closed/reset
Thanks for your reply. Although WAN IP + ssh port is published, the SSH Key-Based Authentication is the only way to access to. so it's should be safe. Thank you very much for your vpn plan, I will consider it lately.
-
18 hours ago, xing said:
在你现有不能访问的网址上面加一个 /login 就可以,不用配置。假如如你现在的unradi网址是:https://unraid.ceshi.com:33 (我没有备案所以有端口号),那么你就要改成:https://unraid.ceshi.com:33/login 这个
再次感谢回复,我发现加/login的方式对我来说不好用,还是那个老问题:加了/login后我在内网是可以访问的,但是外网仍然无法访问,浏览器返回:502 Bad Gateway
-
Hi everyone, I have an unraid server and an openwrt device behind my router. In case of access the unraid server and the openwrt device from internet, I configured port forwarding on the router. The issue is that I can ssh to the openwrt device both from LAN and WAN, I can also ssh to unraid from LAN, but I CAN'T access to it from WAN. (By now, if I want to ssh to unraid from WAN, I have to ssh to openwrt device first, then ssh to unraid server. )
Quoterouter: ASUS RT-AC68U with firmware:3.0.0.4.386.45987(merlin firmware:386.3_2 didn't work either)
unraid : 6.10.0-RC2(I have tried 6.9.2, didn't work either.)
router port forwarding: 27444 -> 192.168.50.104:27444(192.168.50.104 is the LAN IP of my unraid server)
here is port forwarding config on router
here is the ssh client debug log:
☺ cat ~/.ssh/config|grep -A 5 unraid-test Host unraid-test HostName tingyu.fun User root Port 27444 IdentityFile ~/.ssh/id_rsa zhengtongshan@desktop-tingyu /mnt/e/DreamWardrobe/src/Branches/masterNew/Server/scripts ☺ ssh unraid-test -vvv OpenSSH_7.6p1 Ubuntu-4ubuntu0.4, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /home/zhengtongshan/.ssh/config debug1: /home/zhengtongshan/.ssh/config line 20: Applying options for unraid-test debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "tingyu.fun" port 27444 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to tingyu.fun [123.112.246.80] port 27444. debug1: Connection established. debug1: identity file /home/zhengtongshan/.ssh/id_rsa type 0 debug1: key_load_public: No such file or directory debug1: identity file /home/zhengtongshan/.ssh/id_rsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.4 ssh_exchange_identification: read: Connection reset by peer
here is the ssh server debug log
root@Tower:~# /usr/sbin/sshd -d -p 27444 debug1: sshd version OpenSSH_8.8, OpenSSL 1.1.1l 24 Aug 2021 debug1: private host key #0: ssh-rsa SHA256:yV1IA8vfSiPBluZhKaMdC/IyP4BqhgBBfiBihO4R4/k debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:giUzmH9U0OgvvPkeuV7Xx+jjrhXffMnUi/5DEwWnAvg debug1: private host key #2: ssh-ed25519 SHA256:eDZkJykIeeSbrZvFNNyvMPOJKrO0jwgSsrIQ/alW7RE debug1: rexec_argv[0]='/usr/sbin/sshd' debug1: rexec_argv[1]='-d' debug1: rexec_argv[2]='-p' debug1: rexec_argv[3]='27444' debug1: Set /proc/self/oom_score_adj from 0 to -1000 debug1: Bind to port 27444 on 0.0.0.0. Server listening on 0.0.0.0 port 27444. debug1: Bind to port 27444 on ::. Server listening on :: port 27444. debug1: Server will not fork when running in debugging mode. debug1: rexec start in 5 out 5 newsock 5 pipe -1 sock 8 debug1: sshd version OpenSSH_8.8, OpenSSL 1.1.1l 24 Aug 2021 debug1: private host key #0: ssh-rsa SHA256:yV1IA8vfSiPBluZhKaMdC/IyP4BqhgBBfiBihO4R4/k debug1: private host key #1: ecdsa-sha2-nistp256 SHA256:giUzmH9U0OgvvPkeuV7Xx+jjrhXffMnUi/5DEwWnAvg debug1: private host key #2: ssh-ed25519 SHA256:eDZkJykIeeSbrZvFNNyvMPOJKrO0jwgSsrIQ/alW7RE debug1: inetd sockets after dupping: 3, 3 debug1: getpeername failed: Transport endpoint is not connected debug1: ssh_remote_port failed
here is tcpdump on router
admin@RT-AC68U-AB08:/tmp/home/root# tcpdump -i br0 -vnn port 27444 tcpdump: listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes 15:30:54.063803 IP (tos 0x0, ttl 50, id 25265, offset 0, flags [DF], proto TCP (6), length 60) 103.135.162.8.6302 > 192.168.50.104.27444: Flags [S], cksum 0x6b66 (correct), seq 1990346997, win 29200, options [mss 1380,sackOK,TS val 2688125589 ecr 0,nop,wscale 7], length 0 15:30:54.065591 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 60) 192.168.50.104.27444 > 103.135.162.8.6302: Flags [S.], cksum 0x706d (correct), seq 1261679441, ack 1990346998, win 43440, options [mss 1460,sackOK,TS val 3145009403 ecr 2688125589,nop,wscale 9], length 0 15:30:55.107284 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 60) 192.168.50.104.27444 > 103.135.162.8.6302: Flags [S.], cksum 0x6c5b (correct), seq 1261679441, ack 1990346998, win 43440, options [mss 1460,sackOK,TS val 3145010445 ecr 2688125589,nop,wscale 9], length 0 15:30:55.114974 IP (tos 0x0, ttl 50, id 25266, offset 0, flags [DF], proto TCP (6), length 52) 103.135.162.8.6302 > 192.168.50.104.27444: Flags [.], cksum 0x3fd3 (correct), ack 1, win 229, options [nop,nop,TS val 2688126647 ecr 3145010445], length 0 15:30:55.115403 IP (tos 0x0, ttl 50, id 25267, offset 0, flags [DF], proto TCP (6), length 93) 103.135.162.8.6302 > 192.168.50.104.27444: Flags [P.], cksum 0x1879 (correct), seq 1:42, ack 1, win 229, options [nop,nop,TS val 2688126648 ecr 3145010445], length 41 15:30:57.438982 IP (tos 0x0, ttl 50, id 25268, offset 0, flags [DF], proto TCP (6), length 93) 103.135.162.8.6302 > 192.168.50.104.27444: Flags [P.], cksum 0x0f66 (correct), seq 1:42, ack 1, win 229, options [nop,nop,TS val 2688128971 ecr 3145010445], length 41 15:30:57.440947 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 40) 192.168.50.104.27444 > 103.135.162.8.6302: Flags [R], cksum 0x30e8 (correct), seq 1261679442, win 0, length 0
how do I solve this issue, or is there any configuration on unraid server?
----------------------------
The confusing thing is when I ssh to openwrt(alias name:n1) device from wan. it works perfectly.
here is the log:
zhengtongshan@desktop-tingyu /mnt/e/DreamWardrobe/src/Branches/masterNew/Server/scripts ☺ cat ~/.ssh/config|grep -A 5 n1 Host n1 HostName tingyu.fun User root Port 27457 IdentityFile ~/.ssh/id_rsa zhengtongshan@desktop-tingyu /mnt/e/DreamWardrobe/src/Branches/masterNew/Server/scripts ☺ ssh n1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \ ____ _ __ __ / \ / __ \____ ___ ____| | / /____/ /_ / \ / / / / __ \/ _ \/ __ \ | /| / / ___/ __/ / \ / /_/ / /_/ / __/ / / / |/ |/ / / / /_ / \ \____/ .___/\___/_/ /_/|__/|__/_/ \__/ / \ /_/ W I R E L E S S F R E E D O M / \ / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Base on OpenWrt R21.10.1 by lean & lienol Kernel 5.10.75-flippy-66+ Packaged by MYAN on 2021-10-23 PLATFORM: amlogic SOC: s905d BOARD: n1 设备信息: Phicomm N1 CPU 型号: AArch64 : Cortex-A53 x 4 系统负载: 0.79 0.46 0.33 运行时间: 19天 10小时 57分钟 40秒 环境温度: 48.0 °C 当前频率: 1512 Mhz 内存已用: 23% of 1969MB IP 地址: 192.168.50.107 启动存储: 47% of 159.8M 系统存储: 44% of 736.0M
-
20 minutes ago, xing said:
感谢回复,我的nginx docker上也配置了其他的反射代理,比如访问一台局域网内的物理黑群晖,以及这台黑群晖上其他docker服务,比如:jellyfin。这些代理都是能在wan下访问的,但是唯独unraid的代理访问不了。另外,我还在一台软路由上部署了这个nginx docker,发现unraid也是无法从wan访问。
另外,大佬你不是说需要在nginx的unraid的ip上加上login后缀么,能说一下这个配置是怎么搞的么?需要配置advanced分页么??
-
除此之外,我发现也没法在外网ssh连接unraid,比如:
Quote☺ ssh unraid -vvv
OpenSSH_7.6p1 Ubuntu-4ubuntu0.4, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /home/test/.ssh/config
debug1: /home/test/.ssh/config line 13: Applying options for unraid
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "tingyu.fun" port 27456
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to tingyu.fun [123.112.241.39] port 27456.
debug1: Connection established.
debug1: identity file /home/test/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/test/.ssh/id_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.4
ssh_exchange_identification: read: Connection reset by peer但是我从局域网就可以正常连接~快把我搞死了
-
On 12/21/2021 at 11:41 AM, xing said:
我是用的jc21/nginx-proxy-manager镜像,配置你指的是哪种配置,nginx里的配置还是哪个?
很巧,我也是用的这个docker镜像,求分享一下unraid的nginx配置~
-
On 12/3/2021 at 1:28 AM, xing said:
我解决了,反向代理都没有问题。比如用 https://c.b.com:1234 这个地址是不能访问到unraid上的需要后面加 login 变成https://c.b.com:1234/login 才能正确访问!!!!!
我遇到这个问题很久很久了!大佬能发一下nginx的配置么??玩法感谢!!!
-
1、购买一个域名
2、托管到阿里云上。
3、unraid上安装docker:ddns-go
4、完事
外网访问unraid,界面没信息显示
in Chinese / 简体中文
Posted
detail分页下,选中WebSocket就可以了。