Today, Mytour will guide you on how to customize the country you access and exit from when using Tor on your computer. This allows Tor to use a server located in a different country, enabling you to bypass web access restrictions in your current region. Note: Not all countries permit the use of Tor, so certain countries will not allow the access and exit feature to work.
Steps
On Windows

You need to ensure that Tor has been launched at least once. To create the "torrc" file (which determines the appearance of the exit node on Tor), the browser must be launched at least once on the computer.
- You can launch Tor by double-clicking on the browser icon and selecting Connect.

Open the Tor folder. Navigate to the folder where you installed Tor, then double-click on the browser to open it.

Find the "torrc" file. You can navigate to the location of the "torrc" file in the Tor installation folder by following these steps:
- Double-click on the Browser folder.
- Double-click on the TorBrowser folder.
- Double-click on the Data folder.
- Double-click on the Tor folder.

Double-click to open the "torrc" file with Notepad. After double-clicking on the "torrc" file, the "Open with" window will appear. Select Notepad and click Open. You will now be able to edit the contents of the "torrc" file.

Add the "EntryNodes" line. Place the cursor at the bottom of the document and enter EntryNodes {} StrictNodes 1, then press ↵ Enter.

Add the "ExitNodes" line. Type ExitNodes {} StrictNodes 1, then press ↵ Enter.

Tìm mã quốc gia truy cập và thoát. Truy cập https://web.archive.org/web/20180328074444/http://www.b3rn3d.com/blog/2014/03/05/tor-country-codes/ bằng trình duyệt web trên máy tính, cuộn xuống tiêu đề "List of country codes for Tor" (Danh sách mã quốc gia dành cho Tor), sau đó hãy tìm mã của đất nước mà bạn muốn sử dụng làm nút mạng truy cập và thoát.
- Chẳng hạn, nếu bạn muốn phiên duyệt web Tor bắt đầu ở Canada và kết thúc ở Cộng hòa Uganda, hãy tìm mã của "Canada" (ca) và "Uganda" (ug).

Nhập mã quốc gia truy cập và thoát. Hãy nhập mã của quốc gia mà bạn muốn sử dụng để bắt đầu phiên duyệt web vào giữa dấu ngoặc nhọn {} bên phải dòng "EntryNodes", sau đó thực hiện tương tự với quốc gia thoát ở dòng "ExitNodes". Chẳng hạn, nếu muốn truy cập ở Canada và thoát ở Uganda, bạn nhập như sau:
EntryNodes {ca} StrictNodes1
ExitNodes {ug} StrictNodes1

Cân nhắc việc vô hiệu hóa nút mạng nghiêm ngặt (strict node). Bạn có thể tiến hành thay
StrictNodes 1
bằng StrictNodes 0
nhằm đảm bảo rằng Tor vẫn sẽ sử dụng mã quốc gia khác nếu quốc gia được chỉ định không hoạt động.

Thêm nhiều tùy chọn quốc gia vào nút mạng nghiêm ngặt. Nếu bạn muốn nút mạng nghiêm ngặt được bật với nút mạng truy cập và/hoặc nút mạng thoát, hãy cân nhắc việc thêm vào nhiều quốc gia thay vì chỉ một. Bạn có thể thêm bằng cách nhập từng mã quốc gia vào một cặp dấu ngoặc nhọn và phân định chúng bằng dấu phẩy. Chẳng hạn, để thêm nước Mỹ và Pháp vào dòng "ExitNodes" của Uganda, bạn nhập:
-
ExitNodes {ug},{us},{fr} StrictNodes 1
- Bạn cần chắc chắn rằng không có khoảng cách giữa mỗi quốc gia nằm trong dấu ngoặc nhọn.

Thay tập tin "torrc" ban đầu bằng tập tin vừa được cập nhật. Thao tác này sẽ chắc chắn rằng những thiết lập quốc gia của trình duyệt sẽ được lưu:
- Nhấp vào File (Tập tin)
- Nhấp vào Save As... (Lưu thành)
- Nhấp vào khung thả xuống "Save as type" (Lưu thành loại) và chọn All Files (Tất cả tập tin)
- Nhấp vào tập tin "torrc" trong cửa sổ chính để chọn.
- Nhấp vào Save (Lưu)
- Nhấp vào Yes khi tùy chọn hiện ra.

Launch Tor. At this stage, Tor may take a few extra seconds to start, especially if you select a distant country.

Check the entry and exit nodes of your Tor circuit. Visit any website (e.g., https://www.google.com/) using the Tor browser, then click on the onion icon at the top left of the page. A dropdown menu titled 'Tor circuit for this site' will appear, showing the browser, entry node, intermediary connections, exit node, and internet data, listed top to bottom.
- In this case, you will see: Browser > Canada [IP address] > [Country] [IP address] > Uganda [IP address] > Internet
On Mac

You must ensure that Tor has been launched at least once. For the 'torrc' file (which controls the display of the exit node on Tor) to appear, the browser needs to be launched on your computer at least once.
- You can start Tor by double-clicking the browser icon and selecting Connect.



Click on Go to Folder (Navigate to folder). This option is located at the bottom of the dropdown menu. A text box will appear in the center of your screen.

Enter the Tor directory address. Type ~/Library/Application Support/TorBrowser-Data/Tor/ and press ⏎ Return. The folder containing the "torrc" file will open.

Open the "torrc" file using TextEdit. Double-click on the "torrc" file, and when prompted to choose a program, select TextEdit. This will allow you to edit the contents of the "torrc" file.

Add the "EntryNodes" line. Place your cursor at the end of the document, then type EntryNodes {} StrictNodes 1 and press ⏎ Return.

Add the "ExitNodes" line. Type ExitNodes {} StrictNodes 1 and press ⏎ Return.

Tìm mã quốc gia truy cập và thoát. Hãy truy cập https://web.archive.org/web/20180328074444/http://www.b3rn3d.com/blog/2014/03/05/tor-country-codes/ bằng trình duyệt web trên máy tính, cuộn xuống tiêu đề "List of country codes for Tor", sau đó tìm mã của đất nước mà bạn muốn sử dụng làm nút mạng truy cập và thoát.
- Chẳng hạn, nếu bạn muốn phiên duyệt web Tor bắt đầu ở Canada và kết thúc ở Cộng hòa Uganda, hãy tìm mã của "Canada" (ca) và "Uganda" (ug).

Nhập mã quốc gia truy cập và thoát. Hãy nhập mã của quốc gia mà bạn muốn sử dụng để bắt đầu phiên duyệt web vào giữa dấu ngoặc nhọn {} bên phải dòng "EntryNodes", sau đó thực hiện tương tự với quốc gia thoát ở dòng "ExitNodes". Chẳng hạn, nếu muốn truy cập ở Canada và thoát ở Uganda, bạn nhập như sau:
EntryNodes {ca} StrictNodes1
ExitNodes {ug} StrictNodes1

Cân nhắc việc vô hiệu hóa nút mạng nghiêm ngặt. Bạn có thể tiến hành thay
StrictNodes 1
bằng StrictNodes 0
nhằm đảm bảo rằng Tor vẫn sẽ sử dụng mã quốc gia khác nếu quốc gia được chỉ định không hoạt động.

Thêm nhiều tùy chọn quốc gia vào nút mạng nghiêm ngặt. Nếu bạn muốn nút mạng nghiêm ngặt được bật với nút mạng truy cập và/hoặc nút mạng thoát, hãy cân nhắc việc thêm vào nhiều quốc gia thay vì chỉ một. Bạn có thể thêm bằng cách nhập từng mã quốc gia vào một cặp dấu ngoặc nhọn và phân định chúng bằng dấu phẩy. Chẳng hạn, để thêm nước Mỹ và Pháp vào dòng "ExitNodes" của Uganda, bạn nhập:
-
ExitNodes {ug},{us},{fr} StrictNodes 1
- Bạn cần chắc chắn rằng không có khoảng cách giữa mỗi cặp dấu ngoặc nhọn với quốc gia bên trong.

Thay tập tin "torrc" ban đầu bằng tập tin vừa được cập nhật. Bạn hãy nhấn ⌘ Command+S, sau đó thoát TextEdit. Nội dung của tập tin "torrc" ban đầu sẽ được cập nhật.

Open Tor. At this stage, Tor might take a few extra seconds to start, especially if you choose a country that is far away.

Check the access and exit nodes of the Tor circuit. Visit any website (e.g., https://www.google.com/) using the Tor browser, then click the onion icon at the top left of the page. A dropdown menu titled 'Tor circuit for this site' will appear along with the browser, access node, relay, exit node, and internet data, all listed from top to bottom.
- For example, you might see: Browser > Canada [IP address] > [Country] [IP address] > Uganda [IP address] > Internet
Advice
- During the initial setup, Tor will select an exit node from a country that best matches your region.
- If Tor is blocked in your country, try selecting a random circuit through another country by clicking Configure and checking the box 'Tor is censored in my country'.
Warning
- Contrary to common misconceptions, the default country circuit setup in Tor is usually better than your own configuration.
- If there are too few exit nodes, your trace will be scattered across the Tor network. Your Tor traffic will become 'easily noticeable' compared to other Tor traffic. This is detrimental when aiming for anonymity.