hu3b11b7
hu3b11b7

Reputation: 169

FTP bind to a specific interface

Do you know how to bind the ftp command to use one of my specific interface?

Upvotes: 1

Views: 2486

Answers (1)

paulsm4
paulsm4

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

Related Questions