Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Bind transmission ipv4 address to OpenVPN client IP #11

Closed
1 of 2 tasks
ianneub opened this issue May 9, 2015 · 2 comments
Closed
1 of 2 tasks

Feature: Bind transmission ipv4 address to OpenVPN client IP #11

ianneub opened this issue May 9, 2015 · 2 comments

Comments

@ianneub
Copy link
Contributor

ianneub commented May 9, 2015

When starting up transmission we should bind it to the IP given to us from PIA. This should prevent leaking our IP.

The transmission setting is bind-address-ipv4.

Script to get the IP of tun0:

# ifconfig tun0 | sed -n '2 p' | awk '{print $2}' | cut -d: -f2
10.181.1.6

Things to consider

  • What if the IP changes?
  • Will the interface always be tun0?
@haugene
Copy link
Owner

haugene commented May 13, 2015

Ref: https://openvpn.net/index.php/open-source/documentation/howto.html

First, define a static unit number for our tun interface, so that we will be able to refer to it later in our firewall rules:

dev tun0

Looks like we can update the config files with "dev tun0" instead of "dev tun" to statically set it...

@haugene
Copy link
Owner

haugene commented May 13, 2015

If the IP changes because the interface went down and came up again, we should be OK. Transmission will be killed on interface down, and restarted on interface up.

So, can the IP change without interface going up and down?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants