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

    Quick Config switch (Nat Gateway and Openvpn) how?

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 246 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.
    • W
      willi9999
      last edited by

      Hy,
      I realize Backup and restore is a possibility to switch between configs, but it does not include i.e. openvpn settings, when i backup "Nat" only.

      I suppose the Config Interface uses Post-Requests to make changes. Is it possible to make authenticated post-requests maybe via python to just switch a config. Where would the documentation for the requests be?

      Waht i want to achieve is: switch gateway in nat from x to y. i have multiple openvpn connections and i want to be able to quickly change the gateway between them. but i also have to connect one openvpn and disconnect the other, as my vpn provider gives all vpn the same subnet ip, which does not work if i have 2 vpn up both with 10.8.x.x.. sometimes i just need no openvpn gateway but wan-gateway. I mainly do the switching via "interfaces" by just changing the vpn connection of my openvpn-interface. when i switch to wan-gateway i disable the openvpn-gateway-nat rules and enable the wan-gateway-rules.

      I would like to have a script that just does that.
      thx

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