在 FreeBSD 中使用 SSH 隧道進行所有流量轉發 (All traffic forwarding using SSH tunnel in FreeBSD)


問題描述

在 FreeBSD 中使用 SSH 隧道進行所有流量轉發 (All traffic forwarding using SSH tunnel in FreeBSD)

我像這樣連接到我的遠程 VPS:

ssh ‑f ‑C2qTnN ‑D 1080 username@xxx.xxx.xxx.xxx

然後將 Firefox 代理設置設置為 SOCKS5 和 127.0.0.1:1080。這是工作。

現在我嘗試將所有流量從我的 FreeBSD 重定向到 localhost:1080,但我不知道。你能幫忙嗎?


參考解法

方法 1:

If you want to redirect all traffic, do not use SOCKS5 proxy, but rather use ‑w option in ssh, which creates something like VPN connection and its own TUN device, which is more suitable for tunnelling system‑wide traffic.

There are many examples on the internet, for example here. But this is really advanced use case.

(by user4675418Jakuje)

參考文件

  1. All traffic forwarding using SSH tunnel in FreeBSD (CC BY‑SA 2.5/3.0/4.0)

#network-traffic #freebsd #remote-access #ssh #redirect






相關問題

網絡流量操縱(虛擬局域網) (Network traffic manipulation (Virtual LAN))

如何在linux中了解特定端口的流量 (How to know traffic to a specific port in linux)

僅嗅探/記錄應用層 (Sniffing/recording application layer only)

Android:監控應用程序的數據流量使用情況 (Android: Monitor an app's data traffic usage)

如何按時間從android獲取trafficStats信息? (How to get trafficStats information from android by time?)

在 FreeBSD 中使用 SSH 隧道進行所有流量轉發 (All traffic forwarding using SSH tunnel in FreeBSD)

Wireshark - 僅查看多播和廣播流量 (Wireshark - see only multicast and broadcast traffic)

java套接字中的奇怪流量 (Strange traffic in java sockets)

是否有任何程序可以模擬不穩定的網絡連接? (Are there any programs that can simulate an unstable network connection?)

獲取 XHR 響應(網絡流量)並在 Katalon Studio 中解析 (Get XHR response (network traffic) and parse it in Katalon Studio)

Visual Studio 2019 中的網絡流量工具在哪裡 (Where's the Network Traffic Tool in Visual Studio 2019)

為什麼我不能用 chrome 調試 Service Worker? (Why I can't debug Service Workers with chrome?)







留言討論