1. Holer工具簡介
Holer exposes local servers behind NATs and firewalls to the public internet over secure tunnels.
Support forwarding message based on TCP protocol.
Holer是一個免費開源的內網穿透工具,它可以將區域網伺服器代理到公網的內網穿透工具,支援轉發基於TCP協議的報文。
Holer地址:https://github.com/Wisdom-Pro…
2. 使用Holer外網SSH訪問內網(區域網)Linux系統
2.1.下載軟體包並解壓:
軟體包地址:https://github.com/Wisdom-Pro…
下載完ftp/sftp上傳至內網(區域網)的Linux系統上
解壓軟體包: unzip holer-client.zip
2.2. 修改配置檔案
vim holer-client/conf/holer.conf
公網和內網的地址對映關係
Holer Access Key Internet Address Local Address
HOLER_CLIENT-822404317F9D8ADD holer.org:65534 127.0.0.1:22
內網(區域網)Linux的sshd 預設服務埠是22,選擇記錄裡的Holer Access Key配置到holer-client/conf/holer.conf檔案裡
HOLER_ACCESS_KEY=HOLER_CLIENT-822404317F9D8ADD
2.3. 啟動Holer服務
cd holer-client/bin
Linux系統執行命令: sh startup.sh
2.4. 公網訪問Linux系統
使用ssh客戶端工具,輸入如下命令就可以訪問內網(區域網)的Linux系統了
ssh root@holer.org -p 65534
成功登入示例:
ssh root@holer.org -p 65534
root@holer.org`s password:
[root@ip-172-31-19-0 ~]#
[root@ip-172-31-19-0 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9001
inet 172.31.19.0 netmask 255.255.240.0 broadcast 172.31.31.255
inet6 fe80::56:7ff:fe0f:782 prefixlen 64 scopeid 0x20<link>
ether 02:56:07:0f:07:82 txqueuelen 1000 (Ethernet)
RX packets 88018 bytes 126478017 (120.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18631 bytes 1857449 (1.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 178 bytes 26469 (25.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 178 bytes 26469 (25.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@ip-172-31-19-0 ~]#