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

Normalizing TTL across all packets leaving WAN interface

Scheduled Pinned Locked Moved Traffic Shaping
4 Posts 2 Posters 1.5k 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.
  • A
    ajathom
    last edited by Dec 14, 2017, 11:36 PM

    I have pfsense 2.4 and I want to normalize all of the packets that are leaving the WAN interface of my router.  My ISP doesn't like routers and blocks data whose ttl is not "stock".

    I did some experimentation and found that if I increment the TTL they can't tell that I'm behind a router and let the traffic through.

    I found a very old post that had a way to do this: https://forum.pfsense.org/index.php?topic=4712.0

    But my filters.inc doesn't have that line and I don't understand what that file does well enough to make the changes.

    Is normalizing the ttl for all traffic leaving an interface something that can stil lbe accomplished?

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Dec 20, 2017, 10:01 AM

      Well filters.inc has been rewritten a bit since that post back in 2007 ;)

      But its still there really its just under the scrub function..

      
      function filter_generate_scrubing() {
       <snipped>if (!isset($config['system']['disablescrub'])) {
                              $scrubrules .= "scrub on \${$scrubcfg['descr']} all {$scrubnodf} {$scrubrnid} {$mssclamp} fragment reassemble\n"; // reassemble all directions</snipped> 
      

      So you should be able to edit that per those threads instructions to do what your asking.

      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.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • A
        ajathom
        last edited by Dec 24, 2017, 12:46 AM

        Thanks johnpoz, that worked perfectly!

        $scrubrules .= "scrub on \${$scrubcfg['descr']} all min-ttl 128 {$scrubnodf} {$scrubrnid} {$mssclamp} fragment reassemble\n"; // reassemble all
         directions
        
        1 Reply Last reply Reply Quote 1
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Dec 24, 2017, 9:27 AM

          Great - glad it worked out for you… Shitty Ass ISPs  So they want your devices directly attached?  And you can have only 1?

          You could write a patch to make this edit for you, since every time you update and that file gets updated your change will be lost..

          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.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          • J johnpoz referenced this topic on May 26, 2022, 10:10 AM
          • J johnpoz referenced this topic on May 26, 2022, 10:10 AM
          • J johnpoz referenced this topic on May 26, 2022, 10:16 AM
          • J johnpoz referenced this topic on May 26, 2022, 10:16 AM
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received