Giter Club home page Giter Club logo

fakedoamin-proxy's Introduction

fakedoamin-proxy

特定のドメインを内部のnginxに転送するDockerコンテナです。 公開されている実ドメインでテストサーバを試験する際に便利です。 ブラウザにプロクシを設定して利用します。

仕組み

  • コンテナ内部の supervisordで tinyproxy, dnsmasq, nginx, rsyslog を起動します。
  • プロクシのリクエストはtinyproxyで受けて、ここで任意のホストをローカルのnginxなどにリダイレクトします。
  • コンテナ内部のDNSリゾルバとしてdnsmasqを使用します。ここで任意のドメインのIPアドレスを上書きします。
  • nginxはtinyproxyからのリクエストを受け、他のサーバへさらにproxyを行います。
  • 最初に var/certs に自己署名証明書を生成します。

実行

Docker desktop for Macで動作確認を行っています。

$ make

Chromeでの利用例

この例では https://example/, https://bunny.example/, https://doge/ を作成し、 https://google.com/ を偽装します。

  1. Chromeの「ユーザアイコン」を押して「追加」を押します。
  2. 任意の名前で新しいプロファイルを作成し、そちらに切り替えます。
  3. Proxy SwitchyOmega を導入します
  4. PROFILES で proxy を選択します
  5. (default) の Protocolを HTTP, Server を localhost Port を 8888 にします
  6. Apply changes を押します
  7. 機能拡張からProxy SwitchyOmegaを選び、「proxy」を選択します。
  8. https://example/ にアクセスします。
  9. 「この接続ではプライバシーが保護されません」という画面がでます。この画面で「thisisunsafe」と入力します。
  10. するとサイトにアクセスできます。
  • thisisunsafe の効果はブラウザを閉じても継続します。
  • thisisunsafe の効果は他のプロファイルには波及しないようです。
  • 設定 → セキュリティーとプライバシー → 閲覧履歴データの削除 → 全期間 → データの削除で thisisunsafeの効能も消えます。
  • Firefox向けのProxy SwitchyOmegaはこちらです。

fakedoamin-proxy's People

Contributors

mamemomonga avatar

Stargazers

Mototsugu Ohgami avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.