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

Make php file to update /cf/conf/config.xml Host IP from IPSEC tunnel?

Scheduled Pinned Locked Moved IPsec
1 Posts 1 Posters 474 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.
  • R
    ruicaramalho
    last edited by Sep 15, 2014, 4:19 PM Sep 15, 2014, 4:13 PM

    I have some IPSEC VPNs using <remote-gateway>from a  dynamic IP. So when a IP changes the IPSEC is refused because the DNS has the old IP. And it takes more than 15 minutes to update.

    So my idea is can we make a new PHP that will update immediately. The other site location would call the PHP so we would get the public IP and then update the new IP into the configuration.

    Option 1: Update a dns Host Override: edit /cf/conf/config.xml <dnsmaq><host>with a the host new IP.
    Option 2: Update /cf/conf/config.xml the <remote-gateway>with the new IP

    Then we would have to restart dnmasq or the raccon

    Is this possible? would that work?</remote-gateway></host></dnsmaq></remote-gateway>

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received