Navigation

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

    Change NPT settings via command line?

    IPv6
    3
    3
    201
    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.
    • M
      Mc Address last edited by

      Hello,

      I'm using multi wan and so i also have to use network prefix translation. Unfortunately i don't get a static prefix from my ISP and so the prefix changes everytime the connection is renewed.

      As far as i know there is no possibility to adjust the npt settings automatically in pfsense, but i also can not change the settings manually every day.

      My idea is to write a short shell script to do this and now i have two questions:

      1. Is there any possibility to change zur npt settings via command line or by manipulating a configuration file or something Similar?

      2. The Script must also be startet automatically. Is there any possibility to get some signal when the prefix has changed or the connection or lease has been renewed? Is there any built in script in pfsense which runs at the appropriate time and in which a command can be added?

      All suggestions are appreciated.
      Thanks.

      1 Reply Last reply Reply Quote 0
      • Derelict
        Derelict LAYER 8 Netgate last edited by

        @mc-address said in Change NPT settings via command line?:

        I'm using multi wan and so i also have to use network prefix translation. Unfortunately i don't get a static prefix from my ISP and so the prefix changes everytime the connection is renewed.

        Thy should honor the DUID and at least try to give you the same prefix every time. If not they are broken and I would take it up with them before hacking something to get around their crappy deployment.

        Or get another ISP.

        1 Reply Last reply Reply Quote 0
        • JKnott
          JKnott last edited by

          @mc-address said in Change NPT settings via command line?:

          Unfortunately i don't get a static prefix from my ISP and so the prefix changes everytime the connection is renewed.

          On the WAN Interface page, ensure "Do not allow PD/Address release" is selected.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Products

          • Platform Overview
          • TNSR
          • pfSense
          • Appliances

          Services

          • Training
          • Professional Services

          Support

          • Subscription Plans
          • Contact Support
          • Product Lifecycle
          • Documentation

          News

          • Media Coverage
          • Press
          • Events

          Resources

          • Blog
          • FAQ
          • Find a Partner
          • Resource Library
          • Security Information

          Company

          • About Us
          • Careers
          • Partners
          • Contact Us
          • Legal
          Our Mission

          We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

          Subscribe to our Newsletter

          Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

          © 2021 Rubicon Communications, LLC | Privacy Policy