Commit 2f58196b authored by emmapeel's avatar emmapeel 🤖
Browse files

updates to the Fedora instructions

parents 7eb09e2c d7e127f9
...@@ -22,22 +22,10 @@ cost=100 ...@@ -22,22 +22,10 @@ cost=100
Then install tor and the dependencies. Then install tor and the dependencies.
``` ```
dnf install git golang tor policycoreutils-python-utils dnf install tor obfs4 policycoreutils-python-utils
``` ```
### 2. Build obfs4proxy and move it into place. ### 2. Edit your Tor config file, usually located at `/etc/tor/torrc` and replace its content with:
```
export GOPATH=`mktemp -d`
go get gitlab.com/yawning/obfs4.git/obfs4proxy
sudo cp $GOPATH/bin/obfs4proxy /usr/local/bin/
```
And tell selinux to allow Tor to use obfs4proxy:
```
/sbin/restorecon -v /usr/local/bin/obfs4proxy
```
### 3. Edit your Tor config file, usually located at `/etc/tor/torrc` and replace its content with:
``` ```
RunAsDaemon 1 RunAsDaemon 1
...@@ -48,7 +36,7 @@ BridgeRelay 1 ...@@ -48,7 +36,7 @@ BridgeRelay 1
# censors may be scanning the Internet for this port. # censors may be scanning the Internet for this port.
ORPort TODO1 ORPort TODO1
ServerTransportPlugin obfs4 exec /usr/local/bin/obfs4proxy ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
# Replace "TODO2" with an obfs4 port of your choice. This port must be # Replace "TODO2" with an obfs4 port of your choice. This port must be
# externally reachable and must be different from the one specified for ORPort. # externally reachable and must be different from the one specified for ORPort.
...@@ -73,7 +61,7 @@ Nickname PickANickname ...@@ -73,7 +61,7 @@ Nickname PickANickname
* Note that both Tor's OR port and its obfs4 port must be reachable. If your bridge is behind a firewall or NAT, make sure to open both ports. You can use [our reachability test](https://bridges.torproject.org/scan/) to see if your obfs4 port is reachable from the Internet. * Note that both Tor's OR port and its obfs4 port must be reachable. If your bridge is behind a firewall or NAT, make sure to open both ports. You can use [our reachability test](https://bridges.torproject.org/scan/) to see if your obfs4 port is reachable from the Internet.
### 4. Restart tor ### 3. Restart tor
``` ```
sudo semanage port -a -t tor_port_t -p tcp [OR port set earlier, in TODO1] sudo semanage port -a -t tor_port_t -p tcp [OR port set earlier, in TODO1]
...@@ -81,7 +69,7 @@ sudo semanage port -a -t tor_port_t -p tcp [obfs4 port set earlier, in TODO2] ...@@ -81,7 +69,7 @@ sudo semanage port -a -t tor_port_t -p tcp [obfs4 port set earlier, in TODO2]
systemctl restart tor systemctl restart tor
``` ```
### 5. Monitor your logs (usually in your syslog) ### 4. Monitor your logs (usually in your syslog)
To confirm your bridge is running with no issues, you should see something like this: To confirm your bridge is running with no issues, you should see something like this:
...@@ -95,7 +83,7 @@ To confirm your bridge is running with no issues, you should see something like ...@@ -95,7 +83,7 @@ To confirm your bridge is running with no issues, you should see something like
[notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor. [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.
``` ```
### 6. Final notes ### 5. Final notes
If you are having trouble setting up your bridge, have a look at [our help section](https://community.torproject.org/relay/getting-help/). If you are having trouble setting up your bridge, have a look at [our help section](https://community.torproject.org/relay/getting-help/).
If your bridge is now running, check out the [post-install notes](https://community.torproject.org/relay/setup/bridge/post-install/). If your bridge is now running, check out the [post-install notes](https://community.torproject.org/relay/setup/bridge/post-install/).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment