1. ישמו את ה container

אנו מספקים קובץ בניית docker-שיעזור לכם ליישם את ה container. First, download docker-compose.yml, and then write your bridge configuration to a new file, .env, which is in the same directory as docker-compose.yml. Here's a template:

# ערוץ  Tor של הגשר שלכם..
OR_PORT=X
# Yערוץ obfs4 של הגשר שלכם..
PT_PORT=Y
# כתובת הדוא"ל שלכם.
EMAIL=Z

Replace X with your desired OR port, Y with your obfs4 port (make sure that both ports are forwarded in your firewall), and Z with your email address, which allows us to get in touch with you if there are problems with your bridge. With your bridge configuration in place, you can now deploy the container by running:

docker-compose up -d obfs4-bridge

This command will automatically load your docker-compose.yml file while considering the environment variables in .env.

כעת אתם אמורים לראות פלט שנראה בערך כך:

Starting docker-obfs4-bridge_obfs4-bridge_1 ... done

זהו זה! ה container בונה כעת את הגשר obfs4 החדש שלכם.

2. שדרגו את ה container שלכם

Upgrading to the latest version of our image is as simple as pulling the latest version of the image running:

docker-compose pull obfs4-bridge

And then restarting the container:

docker-compose up -d obfs4-bridge

שימו לב שנתוני ספריית הגשר שלכם (שכוללת את חומרי המפתח) נשמרת ב docker volume, כך שלא תאבדו את זהות הגשר כאשר תשדרגו לגירסה האחרונה שלdocker image. אם אתם מפעילים גשרים מרובים על מחשבכם, תצטרכו לחזור על פעולה זו לכל גשר. אנו נכריז על גירסאותimage חדשרות בקבוצת הדוא"ל tor-dev.

3. נטרו את הלוגים שלכם

תוכלו לבחון את הלוגים של הגשר על ידי הרצת:

docker logs CONTAINER_ID

כדי להשתמש בגשר החדש שלכם בדפדפן Tor, תצטרכו את "bridge line" שלו. כך תוכלו לקבל את שורת הגשר שלכם:

docker exec CONTAINER_ID get-bridge-line

הפקודה תחזיר את רצף התווים שדומה ל:

obfs4 1.2.3.4:1234 B0E566C9031657EA7ED3FC9D248E8AC4F37635A4 cert=OYWq67L7MDApdJCctUAF7rX8LHvMxvIBPHOoAp0+YXzlQdsxhw6EapaMNwbbGICkpY8CPQ iat-mode=0

If you are having trouble setting up your bridge, have a look at our help section. If your bridge is now running, check out the post-install notes.

4. Advanced usage

You may set additional torrc variables in your .env file by setting OBFS4_ENABLE_ADDITIONAL_VARIABLES to 1 and prefixing the desired torrc options with OBFS4V_. For example, to set the AddressDisableIPv6 option, include the following lines in your .env:

OBFS4_ENABLE_ADDITIONAL_VARIABLES=1
OBFS4V_AddressDisableIPv6=1

You may download our template .env to get started.