ホームページ データベース mysql チュートリアル vsftpd-1.1.3配制实例之一:INTERNET_SITE

vsftpd-1.1.3配制实例之一:INTERNET_SITE

Jun 07, 2016 pm 03:06 PM
internet

This example shows how you might set up a (possibly large) internet facing FTP site. The emphasis will be on security and performance. We will see how by integrating vsftpd with xinetd, we get a powerful combination. Step 1) Set up your xi


  This example shows how you might set up a (possibly large) internet facing
  FTP site.
  The emphasis will be on security and performance.
  We will see how by integrating vsftpd with xinetd, we get a powerful
  combination.
  Step 1) Set up your xinetd configuration file.
  An example xinetd configuration file "vsftpd.xinetd" is supplied.
  To install it:
  cp vsftpd.xinetd /etc/xinetd.d/vsftpd
  Let's look at the important content in this file and see what it does:
  disable = no
  socket_type = stream
  wait = no
  This says that the service is active, and it is using standard TCP sockets.
  user = root
  server = /usr/local/sbin/vsftpd
  The server program /usr/local/sbin/vsftpd is used to handle incoming FTP
  requests, and the program is started as root (vsftpd will of course quickly
  drop as much privilege as possible). NOTE! Make sure that you have the vsftpd
  binary installed in /usr/local/sbin (or change the file path in the xinetd
  file).
  per_source = 5
  instances = 200
  For security, the maximum allowed connections from a single IP address is 5.
  The total maximum concurrent connections is 200.
  no_access = 192.168.1.3
  As an example of how to ban certain sites from connecting, 192.168.1.3 will
  be denied access.
  banner_fail = /etc/vsftpd.busy_banner
  This is the file to display to users if the connection is refused for whatever
  reason (too many users, IP banned).
  Example of how to populate it:
  echo "421 Server busy, please try later." > /etc/vsftpd.busy_banner
  log_on_success += PID HOST DURATION
  log_on_failure += HOST
  This will log the IP address of all connection attempts - successful or not,
  along with the time. If an FTP server is launched for the connection, it's
  process ID and usage duration will be logged too. If you are using RedHat
  like me, this log information will appear in /var/log/secure.
  Step 2) Set up your vsftpd configuration file.
  An example file is supplied. Install it like this:
  cp vsftpd.conf /etc
  Let's example the contents of the file:
  # Access rights
  anonymous_enable=YES
  local_enable=NO
  write_enable=NO
  anon_upload_enable=NO
  anon_mkdir_write_enable=NO
  anon_other_write_enable=NO
  This makes sure the FTP server is in anonymous-only mode and that all write
  and upload permissions are disabled. Note that most of these settings are
  the same as the default values anyway - but where security is concerned, it
  is good to be clear.
  # Security
  anon_world_readable_only=YES
  connect_from_port_20=YES
  hide_ids=YES
  pasv_min_port=50000
  pasv_max_port=60000
  These settings, in order
  - Make sure only world-readable files and directories are served.
  - Originates FTP port connections from a secure port - so users on the FTP
  server cannot try and fake file content.
  - Hide the FTP server user IDs and just display "ftp" in directory listings.
  This is also a performance boost.
  - Set a 50000-60000 port range for passive connections - may enable easier
  firewall setup!
  # Features
  xferlog_enable=YES
  ls_recurse_enable=NO
  ascii_download_enable=NO
  async_abor_enable=YES
  In order,
  - Enables recording of transfer stats to /var/log/vsftpd.log
  - Disables "ls -R", to prevent it being used as a DoS attack. Note - sites
  wanting to be copied via the "mirror" program might need to enable this.
  - Disables downloading in ASCII mode, to prevent it being used as a DoS
  attack (ASCII downloads are CPU heavy).
  - Enables older FTP clients to cancel in-progress transfers.
  # Performance
  one_process_model=YES
  idle_session_timeout=120
  data_connection_timeout=300
  accept_timeout=60
  connect_timeout=60
  anon_max_rate=50000
  In order,
  - Activates a faster "one process per connection" model. Note! To maintain
  security, this feature is only available on systems with capabilities - e.g.
  Linux kernel 2.4.
  - Boots off idle users after 2 minutes.
  - Boots off idle downloads after 5 minutes.
  - Boots off hung passive connects after 1 minute.
  - Boots off hung active connects after 1 minute.
  - Limits a single client to ~50kbytes / sec download speed.
  Step 3) Restart xinetd.
  (on RedHat)
  /etc/rc.d/init.d/xinetd restart
  If you run into problems, check:
  1) Your /etc/xinetd.d directory only has one FTP service.
  vsftpd.conf
  # Access rights
  anonymous_enable=YES
  local_enable=NO
  write_enable=NO
  anon_upload_enable=NO
  anon_mkdir_write_enable=NO
  anon_other_write_enable=NO
  # Security
  anon_world_readable_only=YES
  connect_from_port_20=YES
  hide_ids=YES
  pasv_min_port=50000
  pasv_max_port=60000
  # Features
  xferlog_enable=YES
  ls_recurse_enable=NO
  ascii_download_enable=NO
  async_abor_enable=YES
  # Performance
  one_process_model=YES
  idle_session_timeout=120
  data_connection_timeout=300
  accept_timeout=60
  connect_timeout=60
  anon_max_rate=50000
  vsftpd.xinetd
  # vsftpd is the secure FTP server.
  service ftp
  {
  disable = no
  socket_type = stream
  wait = no
  user = root
  server = /usr/local/sbin/vsftpd
  per_source = 5
  instances = 200
  no_access = 192.168.1.3
  banner_fail = /etc/vsftpd.busy_banner
  log_on_success += PID HOST DURATION
  log_on_failure += HOST
  }
  
  
このウェブサイトの声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

AI Hentai Generator

AI Hentai Generator

AIヘンタイを無料で生成します。

ホットツール

メモ帳++7.3.1

メモ帳++7.3.1

使いやすく無料のコードエディター

SublimeText3 中国語版

SublimeText3 中国語版

中国語版、とても使いやすい

ゼンドスタジオ 13.0.1

ゼンドスタジオ 13.0.1

強力な PHP 統合開発環境

ドリームウィーバー CS6

ドリームウィーバー CS6

ビジュアル Web 開発ツール

SublimeText3 Mac版

SublimeText3 Mac版

神レベルのコード編集ソフト(SublimeText3)

Python での SVM の例 Python での SVM の例 Jun 11, 2023 pm 08:42 PM

Python のサポート ベクター マシン (SVM) は、分類および回帰の問題を解決するために使用できる強力な教師あり学習アルゴリズムです。 SVM は、高次元データや非線形問題を処理する場合に優れたパフォーマンスを発揮し、データ マイニング、画像分類、テキスト分類、バイオインフォマティクスなどの分野で広く使用されています。この記事では、Python で分類に SVM を使用する例を紹介します。 scikit-learn ライブラリの SVM モデルを使用します。

パブリックIPとは何ですか パブリックIPとは何ですか Sep 27, 2021 am 10:30 AM

パブリック IP は、公衆ネットワークを使用してインターネットに接続される予約されていないアドレスを指し、インターネット上の他のコンピュータから自由にアクセスできます。インターネット上の各コンピュータには独立した IP アドレスがあり、この IP アドレスはインターネット上のコンピュータを一意に識別します。この IP アドレスはパブリック IP アドレスを指します。

win11でインターネットにアクセスできない問題を解決するにはどうすればよいですか? Win11パソコンがインターネットに接続できない問題を解決するためのガイド win11でインターネットにアクセスできない問題を解決するにはどうすればよいですか? Win11パソコンがインターネットに接続できない問題を解決するためのガイド Jan 29, 2024 pm 08:57 PM

コンピュータを使用するとき、私たちは皆インターネットに接続しています。インターネットがあってこそ、インターネットを閲覧できます。最近、多くのユーザーから、Win11 がインターネットに接続できない問題を解決する方法を尋ねられました。ユーザーは、システムが提供するベスト マッチング サービス アプリケーションを直接開いて設定することができ、Win11 コンピューターがインターネットにアクセスできない問題の解決策をこのサイトでユーザーに丁寧に紹介します。 Win11 コンピューターがインターネットにアクセスできない場合の解決策 1: Win+S キーの組み合わせを押すか、下部タスクバーの横にある検索アイコンをクリックして Windows 検索ウィンドウを開きます。検索ボックスに「サービス」と入力し、クリックすると、システムが提供する最適なサービス アプリケーションが開きます。方法 2

インターネットの通信プロトコルは何ですか? インターネットの通信プロトコルは何ですか? Dec 24, 2020 pm 02:53 PM

インターネットで使用される主な通信プロトコルは「TCP/IP プロトコル」、TCP/IP 伝送プロトコル、つまり伝送制御/ネットワーク プロトコル、ネットワーク通信プロトコルとも呼ばれ、ネットワークの使用における最も基本的な通信プロトコル、TCP /IP IP トランスポート プロトコルは、インターネットのさまざまな部分間の通信の標準と方法を規定します。

インターネット接続なしで Windows 11 をセットアップする方法 インターネット接続なしで Windows 11 をセットアップする方法 Apr 15, 2023 am 10:46 AM

ビルド 22557 以降、Windows 11 では初回セットアップ (Home エディションと Pro エディションでは Out-of-Box Experience (OOBE) とも呼ばれます) を完了するためにインターネット接続が必要ですが、この要件を完全にバイパスする方法があります。 Microsoft は、ユーザーが自分のコンピュータを Microsoft アカウントに接続することを望んでいる。そのため、同社は Windows 11 の初期セットアップに変更を加え、インターネット接続なしでクリーン インストールを続行することをほぼ不可能にしている。また、デバイスがネットワークに接続されていないことが設定で検出された場合は、「おっと、インターネット接続が失われました」画面が表示されます。再試行オプションをクリックすると、「インターネットに再度接続します」と表示されます。

インターネット一時ファイルを削除する方法 インターネット一時ファイルを削除する方法 Dec 06, 2023 am 10:56 AM

インターネット一時ファイルを削除する手順: 1. win + r キーを押して [ファイル名を指定して実行] を開き、実行ダイアログ ボックスで %temp% コマンドを入力し、[OK] をクリックするか、Enter キーを押してユーザー アカウントの一時フォルダーを開きます。フォルダー Ctrl+A キーを押し、一時ファイルをすべて選択して右クリックし、右クリック メニューの「削除」をクリックします; 3. 削除できない個別の一時ファイルがある場合は、コンピューターを再起動して削除します。

VUE3 入門例: 簡単なビデオ プレーヤーの作成 VUE3 入門例: 簡単なビデオ プレーヤーの作成 Jun 15, 2023 pm 09:42 PM

新世代のフロントエンド フレームワークが出現し続ける中、VUE3 は高速で柔軟、そして使いやすいフロントエンド フレームワークとして愛されています。次に、VUE3 の基本を学び、簡単なビデオ プレーヤーを作成しましょう。 1. VUE3 をインストールする まず、VUE3 をローカルにインストールする必要があります。コマンド ライン ツールを開き、次のコマンドを実行します。 npminstallvue@next 次に、新しい HTML ファイルを作成し、VUE3 を導入します。 <!doctypehtml>

Python での VAE アルゴリズムの例 Python での VAE アルゴリズムの例 Jun 11, 2023 pm 07:58 PM

VAE は生成モデルであり、正式名は variationalAutoencoder で、中国語に翻訳すると変分自動エンコーダとなります。これは、画像、音声、テキストなどの新しいデータを生成するために使用できる教師なし学習アルゴリズムです。通常のオートエンコーダと比較して、VAE はより柔軟で強力であり、より複雑で現実的なデータを生成できます。 Python は最も広く使用されているプログラミング言語の 1 つであり、深層学習の主要ツールの 1 つです。 Python には、優れた機械学習と奥深いものが数多くあります。

See all articles