ASUS RT-AC66U(R) SSH 외부 접속 활성화 및 JFFS 파티션 활성화
컨텐츠 정보
- 56,056 조회
- 2 댓글
- 0 추천
- 목록
본문
▲ SSH 활성화 및 JFFS 파티션 활성화
그 후 밑의 스샷처럼 WAN탭의 Port Forwarding 탭에 들어가서 해당 포트를 포워딩 해줍니다.
▲ SSH 포트포워딩 부분
▲ Putty에서 해당 부분을 넣고 Open 합니다.
DDNS는 WAN탭의 DDNS탭에 가서 ASUS DDNS 설정하면 순식간에 주소가 생성이 됩니다.
▲ 첫 화면입니다. 공유기 관리자모드로 들어가기 위한 아이디와 비번을 적습니다.
참고로 비번 칠때는 암호가 안나오니 걱정 안하셔도 됩니다. 그냥 암호적고 엔터 누르면 바로 로그인 됩니다.
▲ 스샷에 보시다시피 리눅스로 구동되고 있으며, JFFS라는 파티션이 있다는 것을 볼 수 있습니다.
JFFS를 활성화 하지 않으면 나타나지 않습니다.
멀린펌 README에 있는 JFFS 활용법 및 실행 가능한 스크립트입니다.
* JFFS *
JFFS is a writable section of the flash memory which will allow you to store small
files (such as scripts) inside the router without needing to have a USB disk
plugged in. This space will survive reboot (but it *MIGHT NOT survive
firmware flashing*, so back it up first before flashing!). It will also be
available fairly early at boot (before USB disks).
To enable this option, go to the Administration page, under the System tab.
First time you enable JFFS, it must be formatted. This can be done through
the web page, same page where you enable it. Enabling/Disabling/Formating
JFFS requires a reboot to take effect.
I do not recommend doing frequent writes to this area, as it will
prematuraly wear out the flash storage. This is a good place to
put files that are written once like scripts or kernel modules, or
that rarely get written to (like once a day). Storing files that
constantly get written to (like logfiles) is NOT recommended - use
a USB disk for that.
* User scripts *
These are shell scripts that you can create, and which will be run when
certain events occur. Those scripts must be saved in /jffs/scripts/
(so, JFFS must be enabled and formatted). Available scripts:
- services-start: Services are started (boot)
- services-stop: Services are stopped (reboot)
- wan-start: WAN interface just come up (includes if it went down and back up)
- firewall-start: Firewall is started (filter rules have been applied)
- nat-start: nat rules (i.e. port forwards and such) have been applied (nat table)
- init-start: Right after jffs is mounted, before any of the services get started
- pre-mount: Just before a partition is mounted. Be careful with
this script. This is run in a blocking call and will block the mounting of the
partition for which it is invoked till its execution is complete. This is done
so that it can be used for things like running e2fsck on the partition before
mounting. This script is also passed the device path being mounted as an
argument which can be used in the script using $1.
- post-mount: Just after a partition is mounted
- unmount: Just before unmounting a partition. This is a blocking script, so be
careful with it. The mount point is passed as an argument to the script.
- dhcpc-event: Called whenever a DHCP event occurs on the WAN interface.
The type of event (bound, release, etc...) is passed as an argument.
- openvpn-event: Called whenever an OpenVPN server gets started/stopped, or an OpenVPN
client connects to a remote server. Uses the same syntax/parameters
as the "up" and "down" scripts in OpenVPN.
Don't forget to set them as executable:
chmod a+rx /jffs/scripts/*
And like any Linux script, they need to start with a shebang:
#!/bin/sh
README에 잘 보시면 JFFS 파티션은 펌웨어 플래싱을 하게 되면 사라질 수 있다고 합니다.
그래서 펌웨어 업글 전에 백업을 하라고 권합니다.
그리고 자주 기록이 되는 log 파일은 추천하지 않고, 하루에 한번정도 기록이 되는 것 정도는 괜찮다고 하네요.
지금까지 SSH 활성화 및 JFFS 파티션 활성화 및 활용법에 대해 알아보았습니다.
-
등록일 2024.08.20
-
등록일 2024.07.25
-
등록일 2022.06.17
-
등록일 2022.06.01홈페이지 업데이트 완료했습니다.댓글 2
관련자료
-
서명우성짱의 NAS를 운영하고 있습니다.
저의 즐거움이 여러분의 즐거움이면 좋겠습니다.