Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
Disable Gateway and reenable from the command line
« previous
next »
Print
Pages: [
1
]
Author
Topic: Disable Gateway and reenable from the command line (Read 1724 times)
amichel
Jr. Member
Posts: 87
Karma: 8
Disable Gateway and reenable from the command line
«
on:
January 17, 2022, 07:53:40 am »
Hi all,
my current VPN configuration to azure is disconnecting when I get a new dynamic IP Adress from my ISP. While the VPN tunnel is automatically recreated, the connection to Azure is not established as long as I do not disable the Gateway and reenable it (I am using a route based IPSEC connection).
So I do have the possibility to automate this with zabbix, sending a remote command to the Opnsense box, but I am missing the correct command to do that
I tried to ifconfig down and ifconfig up on the IPSEC interface but this did not help.
Any help to send me in this direction would be highly appreiciated.
amichel
«
Last Edit: January 18, 2022, 06:26:32 pm by amichel
»
Logged
amichel
Jr. Member
Posts: 87
Karma: 8
Re: Disable Gateway and reenable from the command line
«
Reply #1 on:
January 18, 2022, 06:27:24 pm »
So I was able to fix it differently by simply restarting the IPSEC service from my Zabbix server.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
Disable Gateway and reenable from the command line