====== ASUS RT-AC66U 공유기 ====== * [[https://www.asus.com/kr/Networking/RTAC66U/|ASUS RT-AC66U]] [[:무선공유기|무선 공유기]] * [[https://www.asus.com/us/Networking/RTAC66U/HelpDesk_Download/|RT-AC66U Driver & Tools & Firmware Download]] * [[https://www.asus.com/kr/support/FAQ/1011271|[USB Application] USB 어플리케이션 소개]] ===== 사양 ===== * 속도 : 기가비트, AC1750(Wi-Fi 5) * CPU : single core, 600mhz * Ram : 256MB * Flash : 128MB * USB 2.0 : 2 port * USB 3.0 : 없음 * 무선 수신 채널 : 듀얼 밴드, 무선 주파수 : 2.4GHz, 5GHz ===== 최적화 ===== * [[http://blog.naver.com/PostView.nhn?blogId=baciare&logNo=221512453962|아수스공유기 AC88U 무선 설정 최적화 하기 (2) : 네이버 블로그]] ===== Merlin Firmware ===== * Asus 공유기의 비공식 펌웨어로 기능이 더 강력하다. * RT-AC66U 는 2020년 현재 ''380.70'' 가 최신 버전임. * **결론적으로 Transmission 을 위해서 Merlin 을 설치했으나, RT-AC66U 에서는 너무 느려서 사용이 불가할 정도. 설치 취소함** * 혹시 USB 3.0 을 지원하지 않아서 Disk 접근 속도가 너무 느려서일 수도 있음. * 그러나 transmission 실행시 지속적으로 CPU 100% 치는 등의 문제도 많았음. * [[https://www.asuswrt-merlin.net/|Home | Asuswrt-Merlin]] * [[https://sourceforge.net/projects/asuswrt-merlin/files/RT-AC66U/|RT-AC66U Merlin firmware download]] * [[https://github.com/RMerl/asuswrt-merlin|RMerl/asuswrt-merlin: Enhanced version of Asus's router firmware (Asuswrt) (legacy code base)]] * [[https://github.com/RMerl/asuswrt-merlin.ng|RMerl/asuswrt-merlin.ng: Third party firmware for Asus routers (newer codebase)]] * [[https://pagein.net/asus-%EA%B3%B5%EC%9C%A0%EA%B8%B0-%EB%A9%80%EB%A6%B0%ED%8E%8C-merlin-firmware-%EC%98%AC%EB%A6%AC%EA%B8%B0/|Asus 공유기 멀린펌 (Merlin firmware) 올리기]] * 기능도 좋고 안정적이지만 발열이 좀 있어서 USB 쿨링팬을 달아주는 것이 좋다는 의견들이 있음. [[http://2cpu.co.kr/QnA/736074|ASUS 공유기 멀린펌 많이들 쓰시나요? :: 2cpu, 지름이 시작되는 곳!]] ===== Merlin Firmware 설치 ssh / jiff 활성화 ===== * ''jiff'', ''ssh'' 를 **Local Only**로 활성화 * 공유기 **재시작** 필요함. * 이제 공유기 ID/비번을 ssh 계정으로 하여 Gateway 에 접속. Gateway 주소는 ''router.asus.com'' 으로 해도됨. * ''df -h''로 ''jiff'' 파티션 활성화 여부 확인 username@SBFAM_RT:/tmp/home/root# df -h Filesystem Size Used Available Use% Mounted on ... /dev/mtdblock5 32.0M 1.1M 30.9M 3% /jffs ===== entware 설치 ===== * [[https://github.com/RMerl/asuswrt-merlin.ng/wiki/Entware|Entware]] 설치 * entware 가 각종 애플리케이션 설치를 가능하게 해준다. * 설치전에 **Download Master** 는 uninstall 해야하고 재시작해야 한다. * ''ext2'' 혹은 ''ext3'' 로 포맷된 USB 디스크가 필요하다. 1GB짜리 오래된 싸구려 USB 디스크를 ext3 로 포맷해서 끼움. sudo fdisk -l # usb 드라이브 장치 확인 sudo mkfs.ext3 /dev/sda1 # 장치 파티션 입력 * Merlin 380 버전에서는 ''ext3''로 포맷하니까 자동 마운트가 됐음. ''ext4''는 안됐음. 더 최신버전은 ''ext4''도 되는 듯 함. /dev/sda1 967.5M 17.3M 901.0M 2% /tmp/mnt/sda1 * 설치 스크립트 실행 entware-setup.sh # /tmp/mnt/sda1/entware 에 설치 됨. * 사용법 opkg list opkg install software_name opkg remove software_name # vim 설치 opkg install vim opkg install htop ===== Transmission 설치 ===== * [[https://github.com/RMerl/asuswrt-merlin.ng/wiki/Installing-Transmission-through-Entware|Installing Transmission through Entware · RMerl/asuswrt-merlin.ng Wiki]] * [[https://hqt.ro/transmission-on-asuswrt-routers-through-entware/|Transmission on AsusWRT routers through Entware-NG – HQT]] * Torrent 저장용 USB Disk 연결. NTFS 파티션도 자동으로 mount 잘 됐음. mount 위치는 ''/tmp/mnt/'' 이므로 디스크 레이블을 잘 지정해줘야 한다. opkg install transmission-web transmission-daemon-openssl opkg install ca-bundle ca-certificates # https 트래커 접속에 필요. /opt/etc/init.d/S88transmission stop # daemon 종료. mkdir -p /tmp/mnt/MOVEABLE2/Torrent/Incomplete mkdir -p /tmp/mnt/MOVEABLE2/Torrent/Watch mkdir -p /tmp/mnt/MOVEABLE2/Torrent/Completed * ''/opt/etc/transmission/settings.json'' 파일 편집 "download-dir": "/tmp/mnt/MOVEABLE2/Torrent/Completed", "watch-dir": "/tmp/mnt/MOVEABLE2/Torrent/Watch", "incomplete-dir": "/tmp/mnt/MOVEABLE2/Torrent/Incomplete", # transmission 접속 비번 설정 "rpc-authentication-required": true, "rpc-username": "admin", "rpc-password": "yourpassword", # 속도 제한 "speed-limit-down": 100, "speed-limit-down-enabled": false, "speed-limit-up": 100, "speed-limit-up-enabled": true, * 방화벽 설정 ''/jffs/scripts/firewall-start'' 파일 생성 편집 #!/bin/sh iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT iptables -I INPUT -p udp --destination-port 51413 -j ACCEPT * 방화벽 설정과 transmission 실행 # 실행권한 부여 chmod a+rx /jffs/scripts/firewall-start /jffs/scripts/firewall-start /opt/etc/init.d/S88transmission start * http://router.asus.com:9091/transmission/ 으로 접속가능해짐. * swap 파일생성. transmission 일 알 수 없이 죽는 경우가 있는데 보통 메모리 부족이라고 함. swap 파일 생성으로 해결 cd /opt dd if=/dev/zero of=swap bs=1024 count=524288 mkswap swap chmod 0600 swap swapon swap # router 부팅시 자동 swap mount/unmount echo "" >>/jffs/scripts/post-mount echo "swapon /opt/swap" >>/jffs/scripts/post-mount echo "" >>/jffs/scripts/services-stop echo "swapoff /opt/swap" >>/jffs/scripts/services-stop * Memory 튜닝 ''/jffs/scripts/init-start #!/bin/sh echo 524288 > /proc/sys/net/core/rmem_max echo 524288 > /proc/sys/net/core/wmem_max echo 8192 > /proc/sys/vm/min_free_kbytes #---- 권한 추가 후 실행 chmod a+rx /jffs/scripts/* /jffs/scripts/init-start ===== Download Master 다운로드 마스터 ===== * [[https://www.asus.com/kr/support/FAQ/1011285/|[USB 응용 프로그램] Download Master 소개]] * Asus 기본 torrent, nzb, emule client. * torrent 만 사용하고 싶어도 nzb와 emule 을 끌 수 없고 성능이 안 좋다. * [[https://www.asus.com/kr/support/FAQ/114001|[USB 응용 프로그램] GUI를 통해 Download Master를 이용하려면 어떻게 해야 합니까?]] ===== Bluetooth Coexistence ===== * **Bluetooth Coexistence** 설정을 켜서 2.4Ghz 대역과 블루투스 기기의 충돌 제어할 수 있다. * [[https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=pdr8465&logNo=221225471724|Bluetooth Coexistence 쉽게말해서 블루투스와 와이파이 간섭현상과 그 해결책 : 네이버 블로그]] ===== 참조 ===== * [[https://lightinglife.tistory.com/144?category=686929|[ASUS 공유기 tvheadend 설치 #1] 아수스 공유기 SSH 외부 접속 활성화 및 JFFS 파티션 활성화]] * [[https://lightinglife.tistory.com/145?category=686929|[ASUS 공유기 tvheadend 설치 #2] 아수스 공유기 Entware-ng 설치하기]] * [[https://lightinglife.tistory.com/146?category=686929|[ASUS 공유기 tvheadend 설치 #3] Entware 타임존(Timezone) 설정하기]] * [[https://lightinglife.tistory.com/147?category=686929|[ASUS 공유기 tvheadend 설치 #4] 아수스 공유기에 트랜스미션(Transmission) 설치하기]] * [[https://blog.naver.com/PostView.nhn?blogId=ihunn&logNo=220468950321|[ASUS RT-AC56R] 트랜스미션(Transmission) 설치 방법 : 네이버 블로그]]