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

    Change NPT settings via command line?

    Scheduled Pinned Locked Moved IPv6
    3 Posts 3 Posters 698 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.
    • 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
      • DerelictD
        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.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • JKnottJ
          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.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.