業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

FreeBSD15.0 : FTP Server , Samba Fileserver

FTP Server (Vsftpd)

1. Create a self-signed certificate

①Private Key Creation

➁Passphrase Deletion

➂change of access permission

④Self-certification

2. vsftpd

2.1 vsftpd Install

2.2 Edit vsftpd configuration file

Edit /etc/hosts.allow

Edit chroot_list
This time wrote the general user huong

Auto Start Enabled

2.3 Open passive ports on the firewall
Open ports 4000-4009 and restart the server

# # vi /usr/local/etc/ipfw.rules
下記を追加する、但し400~419は他と重ならないようにする
$IPF 400 allow tcp from any to any 4000 in
$IPF 401 allow tcp from any to any 4000 out
$IPF 402 allow tcp from any to any 4001 in
$IPF 403 allow tcp from any to any 4001 out
$IPF 404 allow tcp from any to any 4002 in
$IPF 405 allow tcp from any to any 4002 out
$IPF 406 allow tcp from any to any 4003 in
$IPF 407 allow tcp from any to any 4003 out
$IPF 408 allow tcp from any to any 4004 in
$IPF 409 allow tcp from any to any 4004 out
$IPF 410 allow tcp from any to any 4005 in
$IPF 411 allow tcp from any to any 4005 out
$IPF 412 allow tcp from any to any 4006 in
$IPF 413 allow tcp from any to any 4006 out
$IPF 414 allow tcp from any to any 4007 in
$IPF 415 allow tcp from any to any 4007 out
$IPF 416 allow tcp from any to any 4008 in
$IPF 417 allow tcp from any to any 4008 out
$IPF 418 allow tcp from any to any 4009 in
$IPF 419 allow tcp from any to any 4009 out

Please refer to the following page.

2.4 Connect with FileZilla

Password : General user huong password

The following security confirmation screen will appear, click OK to connect to the server

File Server with Samba

Use Samba to build a file server for Windows and Mac file sharing

1. Samba Install

2. Samba Configuration

Create a new /usr/local/etc/smb4.conf

Create shared directory
Set the shared directory as /home/share, the owner as huong (a general user registered in Freebsd), and the access permissions as read/write/execute for general users and the wheel group

Configure Samba to start automatically and start it.

Register huong (a general user registered with Freebsd) as a Samba user and set a password (using the pdbedit command)

f firewall is enabled, open samba use port (445)
xxx should be different from other rule numbers.

2.3 Confirmation of Samba startup

Windows Settings
・Confirm that the workgroup name is "WORKGROUP

In the File Explorer address bar, type "\\<Samba Server IP address>\<shared directory name>".
(This time '\\192.168.11.83\share')
Enter your registered user name and password when the login screen appears.

Copied title and URL