本文へスキップ

cf2dns

停滞
ddgth/cf2dns

Web サイト高速化のために最適な Cloudflare IP を選び、DNS レコードを更新するツール。

GitHub で見る
スター
5206
フォーク
1899
ウォッチ
5206
未解決の Issue
41

この紹介文は現在英語版のみです。

cf2dns is a powerful tool that helps optimize website performance by selecting the best Cloudflare IPs and automatically updating DNS records across different network providers. It includes features for fake wall defense and supports both IPv4 and IPv6 optimization.

Key Features

  • IP Optimization: Automatically selects optimal Cloudflare IPs for different network providers
  • Multi-DNS Support: Compatible with DNSPod and Alibaba Cloud DNS
  • IPv6 Support: Includes IPv6 optimization capabilities
  • Fake Wall Defense: Implements protection against fake wall attacks
  • Multiple Deployment Options: Supports both VPS deployment and GitHub Actions
  • Docker Support: Available as a Docker container for easy deployment

Deployment Methods

  1. Install dependencies:
pip install -r requirements.txt
  1. Configure credentials:

    • Get SecretId and SecretKey from Tencent Cloud or Alibaba Cloud
    • For Alibaba Cloud DNS, add DNS control permission AliyunDNSFullAccess
  2. Configure domains and subdomains in the script

  3. Run the script:

python cf2dns.py

2. Docker Deployment

  1. Pull the Docker image:
docker pull dddb/cf2dns
  1. Set up configuration:
mkdir -p ~/cf2dns_docker/logs
cd ~/cf2dns_docker
wget --no-check-certificate -qO ./config.ini https://raw.githubusercontent.com/ddgth/cf2dns/master/docker/src/config.ini
  1. Run the container:
docker run -d -v ~/cf2dns_docker/config.ini:/cf2dns/src/config.ini -v ~/cf2dns_docker/logs:/cf2dns/logs dddb/cf2dns

3. GitHub Actions Deployment

  1. Fork the repository
  2. Configure secrets:
    • DOMAINS: Domain configuration
    • KEY: API key
    • SECRETID: Cloud provider secret ID
    • SECRETKEY: Cloud provider secret key
  3. Modify workflow settings in .github/workflows/run.yml

Important Notes

  1. Security Warning:

    • Cloudflare explicitly prohibits IP optimization and proxy nodes
    • Using this service may result in account suspension
    • Use at your own risk
  2. Configuration Options:

    • Default line: DEF
    • Overseas line: AB
    • Custom lines can be configured for different network providers
  3. Fake Wall Defense:

    • Implements IP pool optimization
    • Provides dedicated IP selection
    • Reduces risk of shared IP issues

https://github.com/ddgth/cf2dns

共通のカテゴリとタグで順位付けした、似たオープンソースプロジェクトです。

すべてのツールプロジェクト →