aboutsummaryrefslogtreecommitdiffstats
path: root/config/openvpn-client-export/vpn_openvpn_export.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-10-23 16:45:22 -0400
committerjim-p <jimp@pfsense.org>2013-10-23 16:49:11 -0400
commitef33365b399dcbf02ba02625d21d97af547702b9 (patch)
tree028baaf09bef361fe49fea7d1dce97a8931d4831 /config/openvpn-client-export/vpn_openvpn_export.php
parentbddbf46510b426f60a32ed26c0698822b991d7f3 (diff)
downloadpfsense-packages-ef33365b399dcbf02ba02625d21d97af547702b9.tar.gz
pfsense-packages-ef33365b399dcbf02ba02625d21d97af547702b9.tar.bz2
pfsense-packages-ef33365b399dcbf02ba02625d21d97af547702b9.zip
Add an "Automatic" multi-wan option to the client export package that will look for and use port forwards targeting this instance rather than the IP directly. This way you can bind to LAN or localhost, port forward on all WANs to the LAN IP:port, and then the export will include remote lines for every port forward it finds. Also works to forward multiple ports at the same instance.
Diffstat (limited to 'config/openvpn-client-export/vpn_openvpn_export.php')
-rwxr-xr-xconfig/openvpn-client-export/vpn_openvpn_export.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/openvpn-client-export/vpn_openvpn_export.php b/config/openvpn-client-export/vpn_openvpn_export.php
index c2a54432..ad6c65da 100755
--- a/config/openvpn-client-export/vpn_openvpn_export.php
+++ b/config/openvpn-client-export/vpn_openvpn_export.php
@@ -597,6 +597,8 @@ function useproxy_changed(obj) {
<td>
<select name="useaddr" id="useaddr" class="formselect" onchange="useaddr_changed(this)">
<option value="serveraddr" >Interface IP Address</option>
+ <option value="servermagic" >Automagic Multi-WAN IPs (port forward targets)</option>
+ <option value="servermagichost" >Automagic Multi-WAN DDNS Hostnames (port forward targets)</option>
<option value="serverhostname" >Installation hostname</option>
<?php if (is_array($config['dyndnses']['dyndns'])): ?>
<?php foreach ($config['dyndnses']['dyndns'] as $ddns): ?>