Ncatμλ νΉμ ν ν¬νΈλ₯Ό ν¬μλ©νλ κ²μ΄ κ°λ₯νλ€.
https://janger.tistory.com/161
리λ μ€ - SSH ν°λλ§μ μ΄μ©νμ¬ νΉμ ν¬νΈλ₯Ό ν¬νΈ ν¬μλ©
λ‘컬(Local)μμ μ격 μλ²(Remote) μ μ, μ격 μλ²μ ν¬νΈλ₯Ό ν¬μλ© ssh -L 8080:127.0.0.1:80 server_username@server_ip - ν΄λΌμ΄μΈνΈκ° localhost:8080μΌλ‘ μ μνλ©΄ μλ²μ 80λ² ν¬νΈ(μΉ μλ²)λ‘ μ μμ΄ λκ²λ μ
janger.tistory.com
μλ₯Ό λ€μ΄ μλ²λ§ μ μν μ μλ localhost:4444(i2p router)λ₯Ό μΈλΆμμ μ μνκ³ μΆμ κ²½μ°
μ μ 쑰건μΌλ‘ μλ²μ μΈλΆμμ μ μν μ μλ ν¬νΈκ° 미리 ν¬μλ©μ΄ λμ΄ μμ΄μΌ ν¨(λλ 4545λ‘ μ€μ )
ν°λλ§ λͺ λ Ήμ΄
ncat -k -l -p 4545 -e "ncat 127.0.0.1 4444"
μλ² μͺ½μμ μ λͺ λ Ήμ΄λ₯Ό μ λ ₯νλ€. μ€νμν€λ©΄ μλ¬΄λ° μΆλ ₯μ΄ μ λ¨κ³ λκΈ° μνκ° λλ€.
νλ‘μ μ€μ
νλ‘μμ μ μνλ μ¬λμ μλ²μ μμ΄νΌ μ£Όμ, ν¬νΈ λ²νΈλ‘ νλ‘μλ₯Ό μ€μ ν΄ μ€λ€.
μ μ νμΈνκΈ°
νμΈμ μν΄ i2p μ¬μ΄νΈλ‘ μ μμ νλ©΄ μ μ μλλκ±Έ νμΈν μ μμλ€.
λ§μ°¬κ°μ§λ‘ 9050 ν¬νΈ(Tor Proxy)λ‘ λ°κΏλ§ μ£Όλ©΄ .onion μ£Όμλ‘ μ μμ΄ λλ€.
μ μμκ° NcatμΌλ‘ λ‘컬μμ μμ μ ν¬νΈλ‘ ν°λλ§ν΄μ μ μνκ² νλ λ°©λ²
μ΄λ²μ λΈλΌμ°μ νλ‘μ μ€μ μμ μλ²μ£Όμλ‘ μ μμ ν΄μ νλ‘μμ μ μνλ κ² μλλΌ
μ μμκ° localhostλ₯Ό ν΅ν΄μ νλ‘μμ μ μνκ² νκΈ°
ncat -l -k 127.0.0.1 8081 --sh-exec "ncat νλ‘μμλ²μ£Όμ 4545"
νλ‘μ μμ΄νΌμλ 127.0.0.1μ ν¬νΈ λ²νΈλ₯Ό λ£μ΄μ£Όλ©΄ λμ΄λ€.
μ°Έκ³ :
Simple way to create a tunnel from one local port to another?
I have a development server, which is only accessible from 127.0.0.1:8000, not 192.168.1.x:8000. As a quick hack, is there a way to set up something to listen on another port (say, 8001) so that fr...
unix.stackexchange.com
https://unix.stackexchange.com/questions/293304/using-netcat-for-port-forwarding
Using netcat for port forwarding
I have a process that listens on an IP:port - in fact it is spark streaming which connects to a socket. The issue is that I wish to somehow create a server that connects to spark on one port and da...
unix.stackexchange.com
https://man7.org/linux/man-pages/man1/ncat.1.html
ncat(1) - Linux manual page
man7.org
'π§ λ€ν¬λ·, λ€ν¬μΉ > νλΌμ΄λ²μ' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
νλΌμ΄λ²μ - NcatμΌλ‘ HTTP νλ‘μ μ€ν (0) | 2023.02.11 |
---|---|
νλΌμ΄λ²μ - SSHλ₯Ό μ΄μ©ν νλ‘μ(Dynamic Port Forwarding, Socks) (0) | 2023.02.11 |
νλΌμ΄λ²μ - Tor λΈλΌμ°μ μμ I2P μ¬μ©νκΈ° (0) | 2023.02.11 |
νλΌμ΄λ²μ - μλμ° I2P, TOR νλ‘μ μ μκΈ° (0) | 2023.02.10 |
νλΌμ΄λ²μ - 보μκ³Ό νλΌμ΄λ²μμ μ°¨μ΄μ (0) | 2023.01.22 |