gp0119
V2EX  ›  问与答

公司网络问题求助

  •  
  •   gp0119 · Jun 19, 2025 · 1738 views
    This topic created in 327 days ago, the information mentioned may be changed or developed.

    我在公司使用有线连接网络

    如果 ip 设置成 192.168.1.x 能没有限制访问外网,但是不能访问内网。

    如果 ip 设置成 10.1.80.x 能访问内网,但是外网有些网站会访问不了,比如 QQ 音乐,B 站,网速感觉比设置成 192.168.1.x 慢一点。

    我现在使用的有两种方法:

    1. ip 设置成 192.168.1.x,再使用 openvpn 连上内网,缺点是 openvpn 跟 surge 一起开不是很稳定,openvpn 老是掉,打开增强模式有概率连不上 vpn ,而且一直开着 vpn 感觉有点不爽。

    2. ip 设置成 10.1.80.x,使用 surge ponte 设置规则把屏蔽的网站走我家里的的 apple tv 上的 surge ,缺点上面也说了,感觉网速没那么快。而且家里的节点速度也不是很快,听歌看视频经常会缓冲

    请问有没有其他解决方法?跟着 ai 设置一通路由表好像没有效果

    Supplement 1  ·  Jun 19, 2025

    感谢,解决了

    
    [Proxy]
    Wifi = direct, interface=en1, allow-other-interface=true
    
    [Rule]
    DOMAIN-SUFFIX,xxx.com,"Wifi"
    
    7 replies    2025-06-20 09:16:47 +08:00
    defunct9
        1
    defunct9  
       Jun 19, 2025   ❤️ 1
    USB 网卡,一个设内网,一个设外网
    Bear20
        2
    Bear20  
       Jun 19, 2025
    加条静态路由就好啦
    shigella
        3
    shigella  
       Jun 19, 2025
    加个网卡然后配一下 surge 得规则就行

    [Proxy]
    研发内网 = direct, interface=en5, allow-other-interface=true, test-url=http://172.17.2.25:8000/

    [Rule]
    # 研发内网 172.17/172.16
    IP-CIDR,172.17.0.0/16,研发内网,no-resolve
    hxsf
        4
    hxsf  
       Jun 19, 2025
    网卡上设置两个 IP 192.168.1.x 越点数低,10.1.80.x 越点数高,额外设置内网其他网段的路由走第二个 ip
    shigella
        5
    shigella  
       Jun 19, 2025
    你可以一个 Wi-Fi 一个网线
    gp0119
        6
    gp0119  
    OP
       Jun 19, 2025
    @shigella #5 surge 可以设置使用 wifi 还是网线吗?
    shigella
        7
    shigella  
       Jun 20, 2025
    @gp0119 你看我上门的配置 你 ifconfig 一下找到你 wifi 的 interface 配置一个 Proxy 就可以在 Rule 使用了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3372 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 13:01 · PVG 21:01 · LAX 06:01 · JFK 09:01
    ♥ Do have faith in what you're doing.