V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
motoheros
V2EX  ›  Linux

sslocal 是否能指定网卡(interface)?

  •  
  •   motoheros · 2014-07-13 16:31:03 +08:00 · 3956 次点击
    这是一个创建于 3576 天前的主题,其中的信息可能已经有所发展或是发生改变。
    如果指定sslocal账号走指定的网卡出口?
    有没有类似curl中的interface参数?如:--interface eth1
    3 条回复    2014-07-13 18:06:50 +08:00
    churchmice
        1
    churchmice  
       2014-07-13 16:37:05 +08:00
    当然有啊,你不同网卡的ip总不一样的把?
    配置文件里面把 server 配成网卡对应的ip就好了
    如果想知道网卡对应哪个ip,用sed,awk提取一下就好了
    nicai000
        2
    nicai000  
       2014-07-13 16:46:01 +08:00   ❤️ 1
    @churchmice 什么?
    sandtears
        3
    sandtears  
       2014-07-13 18:06:50 +08:00   ❤️ 1
    通过 -b 参数选择你要绑定的网卡的 IP 就好。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5391 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 05:46 · PVG 13:46 · LAX 22:46 · JFK 01:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.