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

    Modify TTL value for security reasons.

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 4 Posters 6.6k 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.
    • J Offline
      juanchoX
      last edited by

      Pfsense support Packet Mangle TTL ?

      1 Reply Last reply Reply Quote 0
      • S Offline
        sullrich
        last edited by

        See this URL for more information: http://www.mail-archive.com/discussion@pfsense.com/msg01782.html

        1 Reply Last reply Reply Quote 0
        • C Offline
          cmb
          last edited by

          That may or may not be what you're after. If not, by "packet mangle TTL", what exactly do you mean?

          1 Reply Last reply Reply Quote 0
          • R Offline
            rcarr
            last edited by

            I don't know if pfsense supports it, but pf allows you to create rules based on the TTL value.  For instance, you should be suspicious of incoming packets with very low TTL (TTL = 1, 2, etc) because it's likely the result of firewalking.

            1 Reply Last reply Reply Quote 0
            • J Offline
              juanchoX
              last edited by

              yeah, thanks ulrich, here …

              Bill Marquette
              Mon, 04 Sep 2006 10:09:44 -0700

              Or if you want fuck with the ISP and have a full blown network behind
              the pfSense box.

              Change the following line in /etc/inc/filter.inc
                    $rules .= "scrub all {$scrubnodf} {$mssclamp} fragment
              reassemble\n"; // reassemble all directions
              to:
                    $rules .= "scrub all min-ttl 255 {$scrubnodf} {$mssclamp}
              fragment reassemble\n"; // reassemble all directions

              That will reset the TTL to 255 (substitute whatever sufficiently high
              value appeals to you) as it passes through the pfSense box.  The above
              line lives on line 166 in filter.inc version 1.575.2.235.  BTW, this
              will have the other added advantage of being able to mask different
              OSs behind your pfSense box and the network layout as ALL packets will
              have a normalized TTL after traversing the firewall.

              I don't expect to ever put a gui wrapper around this, I feel it has
              rather limited use.

              --Bill

              1 Reply Last reply Reply Quote 0
              • johnpozJ johnpoz referenced this topic on
              • johnpozJ johnpoz referenced this topic on
              • johnpozJ johnpoz referenced this topic on
              • johnpozJ johnpoz referenced this topic on
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.