Reputation: 169
Do you know how to bind the ftp command to use one of my specific interface?
Upvotes: 1
Views: 2486
Reputation: 121809
Do you mean a socket "bind()"?
SO_BINDTODEVICE is one option:
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.
Here is a link that suggests vsftpd can be bound to a specific interface via xinet configuration:
http://www.linuxfocus.org/English/July2004/article341.shtml
Upvotes: 1