Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Newbie Question: Changing NAT Rules via SSH
« previous
next »
Print
Pages: [
1
]
Author
Topic: Newbie Question: Changing NAT Rules via SSH (Read 2151 times)
DanielE.
Newbie
Posts: 2
Karma: 0
Newbie Question: Changing NAT Rules via SSH
«
on:
June 22, 2019, 02:40:32 pm »
Hallo,
I am new to the OPNSense Firewall and havend got the whole scope of what the OPNSense can and can't do.
I have a specific task wich I hope, the OPNSense can do.
I have a Failover-Setup from 3CX local. The Second 3CX watches the first 3CX and if the first one fails, a script is executed wich must switch the Internal DNS (which is used to provision all devices) and the portforwarding Rule for the Port 5060 from one IP to another.
The DNS is already taken care of but I need a appliance which allows the change of the Port-Forwarding via SSH.
Can someone tell me, if this is possible and how?
Thank You very much,
Daniel
Logged
M@rch0n
Newbie
Posts: 20
Karma: 0
Re: Newbie Question: Changing NAT Rules via SSH
«
Reply #1 on:
June 28, 2019, 11:11:42 am »
Hallo DanielE,
If I understood correctly, the connections occur by name and when the main equipment fails the script changes the A record in its DNS to the IP of the second device (failover) ?!
If yes, and if your OPNsense firewall uses the same DNS for queries, create a host alias with the name and apply that alias to the target of your portforward rule.
Logged
DanielE.
Newbie
Posts: 2
Karma: 0
Re: Newbie Question: Changing NAT Rules via SSH
«
Reply #2 on:
June 29, 2019, 02:42:46 pm »
Hallo M@rch0n,
that was exactly the information I needed!!!!
Thank You very much !
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Newbie Question: Changing NAT Rules via SSH