简体   繁体   English

FTP绑定到特定接口

[英]FTP bind to a specific interface

您知道如何将ftp命令绑定为使用我的特定接口之一吗?

Do you mean a socket "bind()"? 您是说套接字“ bind()”吗?

SO_BINDTODEVICE is one option: SO_BINDTODEVICE是一种选择:

http://beej.us/guide/bgnet/output/html/multipage/setsockoptman.html http://beej.us/guide/bgnet/output/html/multipage/setsockoptman.html

As far as a "non-programming-system-administration" answer - that depends on your FTP server and your environment. 至于“非编程系统管理”答案-这取决于您的FTP服务器和您的环境。

Here is a link that suggests vsftpd can be bound to a specific interface via xinet configuration: 这是一个链接,建议可通过xinet配置将vsftpd绑定到特定接口:

http://www.linuxfocus.org/English/July2004/article341.shtml http://www.linuxfocus.org/English/July2004/article341.shtml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM