
1 coderfox 2021-04-14 12:00:56 +08:00 - SSH tunneling: Forward a specific port (localhost:9999 to example.org:80) along with disabling pseudo-[t]ty allocation and executio[n] of remote commands: ssh -L 9999:example.org:80 -N -T username@remote_host |
2 coderfox 2021-04-14 12:01:19 +08:00 不好意思,刚看错了,应该是这个: - SSH tunneling: Dynamic port forwarding (SOCKS proxy on localhost:9999): ssh -D 9999 -C username@remote_host |
3 Jirajine 2021-04-14 12:08:57 +08:00 via Android Linux 上开启 ip forward 、masqurade,并让防火墙放行转发包。 然后 Windows 把默认路由指向 Linux,就可以了。 |
4 mgrddsj 2021-04-14 12:31:51 +08:00 via Android 最简单的方法:Linux 上开个 Shadowsocks-libev,Windows 上用支持 ss 的客户端连接上就好了 |
5 seers 2021-04-14 12:38:37 +08:00 关键字 Linux server as gateway |
6 tankren 2021-04-14 13:50:29 +08:00 linux 开转发 windows 把 linux 设成网关 或者 linux 跑 socks 代理 你先确定这样做会不会被炒鱿鱼 |
8 catchexception 2021-04-14 14:12:52 +08:00 frp ? |
9 sorasyl OP 感谢各位老哥指点 我试了下 socks5 代理 windows 只能跑下 http,其他的应用需要单独设置代理,用 ipforwad 做转发更好 |
10 duole 2021-04-14 14:19:24 +08:00 正向代理? |
11 wangyaominde 2021-04-14 14:24:44 +08:00 l2tp |
12 huangmingyou 2021-04-14 14:25:11 +08:00 windows ssh 到 linux 的时候,可以给 windows 做 socks5 代理。 |
13 nekoneko 2021-04-14 14:39:44 +08:00 代理的话可以用 v2ray linux 上用一件脚本安装一下,然后 windows 上用 v2ray 客户端就行 https://iyideng.me/black-technology/cgfw/vmess-v2ray-server-building-and-using-tutorial.html |
14 deviluser 2021-04-14 15:08:54 +08:00 windows 运行: ssh -ND 1080 user@remote_ip 开启本地 1080 端口用作 socket5 代理,流量统统以 ssh 协议通过 remote 出 然后再配置 internet 属性添加局域网代理 感觉是布置的作业,你应该自己做才对。 |
15 3dwelcome 2021-04-14 15:23:05 +08:00 你们怎么都想到设置代理,难道楼主没有 linux 的 root 权限? 感觉要求就是把 linux 当成一个软路由,普通的 NAT 转发机器。 |
19 guanyin8cnq12 2021-04-14 19:09:53 +08:00 socks5 就完事了阿,或者装 shadowsocks server 和 client |
20 itechify PRO Linux iptables 开转发,window 网关设置为 Linux |
21 brMu 2021-04-14 20:02:23 +08:00 iptables masquerade |
24 smileawei 2021-04-15 11:30:32 +08:00 楼上很多都说什么 ss v2ray 根本没必要。 如果 Win 和 Linux 在同一个二层网络内。那么 Linux 开 nat 和 ipforwad 。然后 Windows 把网关设置成 Linux 。关键点在开 NAT 。如果只是 forward 。出口的网络管控设备看到的请求还是你的 win 。那么依旧收到策略管控。 如果 win 和 linux 不在一个二层网络内。可以试试 VPN 或者 socks5 。 |