• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Allowing torrent

Scheduled Pinned Locked Moved Firewalling
5 Posts 3 Posters 17.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E
    epema
    last edited by Jun 21, 2012, 2:30 AM Jun 20, 2012, 4:21 PM

    Hello guys,

    I want to enable passing torrent through pfsense for one host. ex 192.168.1.233.
    So, I create a inbound NAT rule redirecting all incoming connections for 52345 -> 192.168.1.233:52345.
    So, obviously…52345 is a port used for incoming connections on the client.

    Should I create an outbound rule? And any more suggestions on that?

    Thanks a lot!

    ps: I have seen this topic.. http://malindarats.blogspot.nl/2011/08/normal-0-false-false-false-en-us-x-none.html
    however I didn't get thing about the gateway. I think I dont have to configure anything there.

    1 Reply Last reply Reply Quote 0
    • M
      marcelloc
      last edited by Jun 20, 2012, 5:03 PM

      If 192.168.1.233 has a lan rule allowing all traffic to internet, the rdr rule on interface wan is fine.

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • E
        epema
        last edited by Jun 21, 2012, 3:45 AM

        Hi there,

        Please take a look at my firewall rules in attachments.
        However, my uTorrent doesn't download.

        I tcpdumped internal interface for 52394 port, however it didnt show any packets.

        What can be wrong?

        ![pfsense.localdomain - Firewall NAT Port Forward-094308.png](/public/imported_attachments/1/pfsense.localdomain - Firewall NAT Port Forward-094308.png)
        ![pfsense.localdomain - Firewall NAT Port Forward-094308.png_thumb](/public/imported_attachments/1/pfsense.localdomain - Firewall NAT Port Forward-094308.png_thumb)
        ![pfsense.localdomain - Firewall Rules-094245.png](/public/imported_attachments/1/pfsense.localdomain - Firewall Rules-094245.png)
        ![pfsense.localdomain - Firewall Rules-094245.png_thumb](/public/imported_attachments/1/pfsense.localdomain - Firewall Rules-094245.png_thumb)
        tor.png
        tor.png_thumb

        1 Reply Last reply Reply Quote 0
        • M
          marcelloc
          last edited by Jun 21, 2012, 2:38 PM

          change nat ports on rdr rule from any/* to 52394

          move the lan rule that logs traffic to 192.168.1.233 before lan rule that allow all access from lan to internet.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Jun 21, 2012, 4:41 PM Jun 21, 2012, 4:21 PM

            What does your wan rule say?  Did you let it auto create the wan rule when you created the nat?

            As to the lan rule - it shouldn't really matter if that rule is before or after your pass rule to lan net.  But not sure why you would even have such a rule?  lan devices normally would never even talk to pfsense to talk to other lan devices.

            Your current lan rule as source of 192.168.1.233 would allow only that box to talk to the internet.  Is that what you want, you don't want any of your other devices to talk to the internet?

            edit: btw I notice your only allowing TCP, utorrent can and does use UDP as well.

            http://www.utorrent.com/help/faq/network
            If you have a firewall, you must allow all outgoing traffic on TCP and UDP.

            If you not getting anything to work, its quite possible your trying to use a UDP tracker, and you are not allowing any outbound udp on that lan rule you have.

            I just took a look at one the torrents I downloaded recently, and tracker shows
            udp://tracker.openbittorrent.com:80/

            So with your current lan rule there would be no way for you to contact that tracker since your not allowing udp outbound.

            edit: so you can see all the rules.  Here are my wan rules, nat rules, and lan rule that allow torrents to work.  You will see my forwards and rules that allow inbound on tcp/udp for my utorrent ports.

            And then the lan rule that allows clients to go to anything outbound.  Those other lan rules are blocking 1 client that I use for websense testing to only be able to go to websense IPs, and blocks direct outbound.

            utorrentrulesnat.jpg
            utorrentrulesnat.jpg_thumb
            wanrulesutorrent.jpg
            wanrulesutorrent.jpg_thumb
            laninternetrule.jpg
            laninternetrule.jpg_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received