{"id":6352,"date":"2020-04-10T07:00:54","date_gmt":"2020-04-10T11:00:54","guid":{"rendered":"https:\/\/myriad.ca\/?p=6352"},"modified":"2022-08-20T07:19:51","modified_gmt":"2022-08-20T11:19:51","slug":"how-to-use-transmission-through-torguard-with-a-pfsense-firewall","status":"publish","type":"post","link":"https:\/\/myriad.ca\/index.php\/2020\/04\/10\/how-to-use-transmission-through-torguard-with-a-pfsense-firewall\/","title":{"rendered":"How to use a Freenas Transmission jail through Torguard VPN with a Pfsense firewall"},"content":{"rendered":"[vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221;][vc_column_text]Nowadays, it is prudent to protect your privacy when downloading torrents on the net.\u00a0 A few lawsuits have recently been brought against ISP&#8217;s by businesses seeking damages from users allegedly downloading illegal content. Many of these lawsuits have centered on trying to force the ISP&#8217;s to release lists of customer IP addresses along with their associated activity logs. In this post you will learn how to install a VPN on a Pfsense appliance and when correctly set up, all your Transmission traffic will subsequently go through the VPN.<\/p>\n<div class=\"code\">\n<p>Unlike my <a href=\"https:\/\/myriad.ca\/index.php\/2018\/01\/29\/set-up-vpn-transmission-on-freenas-11-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous post<\/a> which teaches you how to install the OpenVPN in a FreeNAS Transmission jail to ensure only protected traffic is tunneled through our BT client, this post uses a MUCH MORE CONVENIENT method using PFsense hardware. In my experience, this process is WAY easier that the previously used method of installing software in the Transmission jail. Just so we&#8217;re clear, this post is NOT meant to be a tutorial on how to set up FreeNas. There are many ways to configure the FN server that depend largely on your system architecture &#8211; so head on over to the <a href=\"https:\/\/forums.freenas.org\/index.php\" target=\"_blank\" rel=\"noopener noreferrer\">FN forums<\/a> if you have basic operational questions.<\/p>\n<p>This how-to works with <strong>Torguard<\/strong> though it might work with other VPN providers as well (your mileage may vary). This tutorial assumes you have your Freenas server setup and working correctly and that you have installed and tested the Transmission plugin to your satisfaction. I am currently using <a href=\"https:\/\/torguard.net\/aff.php?aff=215\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Torguard<\/strong> for VPN<\/a> and I can highly recommend them as they offer many locations worldwide, are reasonably priced and have excellent customer service when you need it. You <em>will<\/em> need a VPN provider in order to get this how-to going so click the button below to check them out:<\/p>\n<a class=\"nectar-button n-sc-button small accent-color regular-button\" target=\"_blank\" href=\"https:\/\/torguard.net\/aff.php?aff=215\" data-color-override=\"false\" data-hover-color-override=\"false\" data-hover-text-color-override=\"#fff\"><span>Click Here to Try Torguard<\/span><\/a>\n<p><strong>If you can&#8217;t see the button above please disable your ADBLOCKER for my site. I promise will never give you ads or track you in <em>any<\/em> way, but unfortunately the ad blockers see the link in the button as an ad and erase it from the displayed HTML. Thank you for your cooperation!<\/strong><\/p>\n<h3><strong>Here are the steps I followed to get VPN working with a PFsense appliance (version 2.4.4-RELEASE-p3) on my FreeNas 11.2 server:<\/strong><\/h3>\n<div>\n<ol>\n<li>You will need a VPN provider in order to get this going. <a href=\"https:\/\/torguard.net\/aff.php?aff=215\" target=\"_blank\" rel=\"noopener noreferrer\">Click here to try Torguard<\/a><\/li>\n<li>We need to create a certificate so the VPN will trust us. Login to Pfsense and click: <strong>System &gt; Cert. Manager &gt; Create CAs<\/strong> to create a new certificate. We need to import Torguard&#8217;s certificate from their website so under &#8216;Method&#8217; select &#8216;Import an existing certificate authority&#8217; and paste in the <a href=\"https:\/\/torguard.net\/downloads\/ca.txt\" target=\"_blank\" rel=\"noopener noreferrer\">torguard ca.txt data<\/a>. Click &#8216;save&#8217;.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6366\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/cert.jpg\" alt=\"\" width=\"800\" height=\"670\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/cert.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/cert-300x251.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/cert-768x643.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li>Next, navigate to: <strong>Interfaces<\/strong> and create a new interface. I called it TORGUARD.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6359\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/create-int.jpg\" alt=\"\" width=\"800\" height=\"614\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/create-int.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/create-int-300x230.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/create-int-768x589.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li>Now head over to:\u00a0 <strong>VPN &gt; Open VPN &gt; Clients<\/strong> and click the <strong>+ Add&#8217; button<\/strong>. We now need to populate the Client dialog box(s) as shown below:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6369\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.1-1.jpg\" alt=\"\" width=\"800\" height=\"576\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.1-1.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.1-1-300x216.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.1-1-768x553.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6368\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.2.jpg\" alt=\"\" width=\"800\" height=\"670\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.2.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.2-300x251.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.2-768x643.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6370\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.3.jpg\" alt=\"\" width=\"800\" height=\"670\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.3.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.3-300x251.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tvpn.3-768x643.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6371\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/vpn.6.jpg\" alt=\"\" width=\"800\" height=\"670\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/vpn.6.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/vpn.6-300x251.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/vpn.6-768x643.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li><strong>**A few items to note from the boxes above:<\/strong><br \/>\n5a. In <strong>custom options<\/strong> add:<br \/>\n<code>auth-user-pass \/etc\/openvpn-passwd.txt;<br \/>\nverb 5;<br \/>\nremote-cert-tls server;<\/code><\/li>\n<li>5b. Setup the password file for the above box:<\/li>\n<\/ol>\n<p>Navigate to <strong>Diagnostics &gt; Edit file<br \/>\n<\/strong>Write: \/root\/vpnpassword in the <strong>Save\/Load from path<\/strong> box.<br \/>\nAdd your TorGuard VPN username and password on the first and second line then <strong>click save<\/strong>.<br \/>\n*You can also put your name and password in the above dialog box instead, if you want. If you enter the UN\/PW in the dialog, omit this step and remove the auth-user line from <strong>custom options<\/strong>.<\/p>\n<ol>\n<li>\n<ol>\n<li>Create an ALIAS to your Transmission internal IP.\u00a0 Navigate to: <strong>Firewall &gt; Alias &gt; IP<\/strong> and create an alias for transmission to your internal IP. Call it &#8216;Transmission&#8217; (you will use it below). Aliases are a very useful feature in Pfsense and I use them all the time as it makes it easy to remember your devices with friendly names.<\/li>\n<li>Now we need to add some firewall rules to pass traffic to our VPN. Navigate to <strong>Firewall &gt; Rules &gt; TORGUARD<\/strong> and enter the following rules as listed in the image below (note the use of the alias we created above in the rule):<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6419\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/FW-Rules.jpg\" alt=\"\" width=\"800\" height=\"357\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/FW-Rules.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/FW-Rules-300x134.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/FW-Rules-768x343.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li>Now we need to add a Floating Rule to prevent torrent traffic leaking out through our regular network if Torguard is offline or not corrected for some reason. Navigate to: <strong>Firewall &gt; Rules &gt; Floating<\/strong> and create a new rule as shown in the images below:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6421\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating1.jpg\" alt=\"\" width=\"800\" height=\"311\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating1.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating1-300x117.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating1-768x299.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6422\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating2.jpg\" alt=\"\" width=\"800\" height=\"558\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating2.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating2-300x209.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating2-768x536.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6423\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating3.jpg\" alt=\"\" width=\"800\" height=\"670\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating3.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating3-300x251.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating3-768x643.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6420\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating4.jpg\" alt=\"\" width=\"800\" height=\"670\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating4.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating4-300x251.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/floating4-768x643.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li>Now add a lan rule by navigating to: <strong>Firewall &gt; Rules &gt; Lan<\/strong> as shown in the image below:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6424\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/lanrule.jpg\" alt=\"\" width=\"800\" height=\"248\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/lanrule.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/lanrule-300x93.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/lanrule-768x238.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li>Set up DNS for Torguard.\u00a0 Navigate to: <strong>System &gt; General Setup<\/strong> and configure the DNS for the Torguard interface we created in Step 3 as per the image below:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6427 size-full\" src=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tgdns-1.jpg\" alt=\"\" width=\"800\" height=\"635\" srcset=\"https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tgdns-1.jpg 800w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tgdns-1-300x238.jpg 300w, https:\/\/myriad.ca\/wp-content\/uploads\/2018\/10\/tgdns-1-768x610.jpg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/li>\n<li>Testing your installation for DNS leaks. According to the WIKIpedia, a DNS leak refers to a security flaw that allows DNS requests to be revealed to ISP DNS servers, despite the use of a VPN service to attempt to conceal them. So given that information, we want to make sure our VPN is working correctly and not leaking your identity.<br \/>\nInstall curl in your Transmission Jail (If it&#8217;s not already installed):<br \/>\npkg install curl<br \/>\n#Run ipleak and check the json data<br \/>\n<code>curl href=\"https:\/\/ipleak.net\/json\/<\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Still not working? Check <a href=\"http:\/\/www.freebsddiary.org\/openvpn.php\" target=\"_blank\" rel=\"noopener noreferrer\">this post<\/a> for clues (it&#8217;s a good troubleshooting primer as well).\u00a0 Just telling me it&#8217;s not working does not provide enough information to troubleshoot your problem. You wouldn&#8217;t take your car into the garage and say, &#8220;my car doesn&#8217;t work!&#8221; &#8211; you need to give me some clues to help you fix your problem. Check your steps carefully, every command has to be issued as it is shown in the how to.\u00a0 If you find any mistakes please let me know and I will fix them right away.<\/p>\n<\/div>\n<\/div>\n[\/vc_column_text][\/vc_column][\/vc_row]\n","protected":false},"excerpt":{"rendered":"<p>[vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221;&#8230;<\/p>\n","protected":false},"author":2,"featured_media":11858,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[167],"tags":[181,42,43],"class_list":{"0":"post-6352","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-freebsd","8":"tag-pfsense","9":"tag-torguard","10":"tag-transmission"},"_links":{"self":[{"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/posts\/6352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/comments?post=6352"}],"version-history":[{"count":25,"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/posts\/6352\/revisions"}],"predecessor-version":[{"id":12766,"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/posts\/6352\/revisions\/12766"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/media\/11858"}],"wp:attachment":[{"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/media?parent=6352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/categories?post=6352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myriad.ca\/index.php\/wp-json\/wp\/v2\/tags?post=6352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}