Commit Graph

4547 Commits

Author SHA1 Message Date
Matthew Grooms
8ff5ffccf2 Add support for export and import of encrypted configuration files. A set
of command line utilities for encypting and decrypting the files format
is available from the tools/config-crypto directory.
2008-08-28 02:53:06 +00:00
Matthew Grooms
872d919581 Correctly validate required input fields for OpenVPN screens. 2008-08-27 22:05:26 +00:00
Matthew Grooms
61dda8f7e7 Fix a rendering bug in the new OpenVPN status page. 2008-08-27 20:07:04 +00:00
Matthew Grooms
6308488583 Replace the old openvpn status page with a new implementation. We now add
a tcp management port option to each OpenVPN server. Instead of rooting
through the OpenVPN logs once a minute for status updates, we now submit a
request to the management port to obtain informaiton. We probably need to
add a pf rule to prevent management ports from being accessed by unwanted
processes.
2008-08-27 19:52:22 +00:00
Matthew Grooms
dc40893993 Correct some problems with the filter code where we were calling foreach
on data that wasn't necessarily a valid array.

Modify the OpenVPN code to stop passing the array index around and then
immediately obtaining a reference to the array entry. We already have a
reference to the data, just pass it instead. Also add some check to make
certain tap configuration steps more conditional. Make sure we remove
configuration and pid files when they are no longer required. Fix a few
other OpenVPN related bugs.
2008-08-27 04:19:30 +00:00
Matthew Grooms
f432e364b2 Set some important default values for the new OpenVPN interface screens.
Add functions and interface code to handle local port conflict detection
and resolution.
2008-08-26 23:49:04 +00:00
Matthew Grooms
e28120e537 Dump the per-configuration dh parameters data. It make no sense to keep
this information in the configuration as its not specific to the server.
It only contains the parameters ( a safe large prime number ) that is
used during a DH key exchange. Instead, we now use a system wide dh file
that is generated when the /var/etc/openvpn directory is setup. This
shaves 10 to 30 seconds off of the server config creation process. Also
correct a bug in the hack I added to work around carp related issues
that prevented filter re-configuration from working properly.
2008-08-26 22:20:01 +00:00
Matthew Grooms
d799787e49 Rework most of the OpenVPN support. The interfaces have been updated to
not use the pkg system and the configuration has been migrated to an
openvpn prefix. The centralized user and certificate manager is now used
to support the openvpn configurations. Most of the files removed in this
commit were not being referenced.

This commit also splits out the certificate management components into a
new system menu item.
2008-08-26 04:48:04 +00:00
Matthew Grooms
667725cea8 Use additional tables to improve the formatting of several IPsec checkbox
configuration options.
2008-08-24 00:30:58 +00:00
Matthew Grooms
4e2af46423 Only read ipsec phase1 configuration values that are relvent for the
configured authentication method. This silences harmless php warnings.
Reported by Scott Ullrich.
2008-08-24 00:23:26 +00:00
Scott Ullrich
f7ccb37657 Minor nitpick, change - to + 2008-08-23 23:20:41 +00:00
Scott Ullrich
abd378bf94 Allow wrapping of phase entries. 2008-08-23 23:03:51 +00:00
Scott Ullrich
7099acf8d2 Rename button to -, we already show "- Show Phase 2" behind it. 2008-08-23 22:55:48 +00:00
Scott Ullrich
b973b99a7b Spell items correctly and name items correctly. 2008-08-23 22:49:36 +00:00
Scott Ullrich
bbb5853880 Add lisrrborder 2008-08-23 22:48:15 +00:00
Scott Ullrich
6064ed7b58 Move format_bytes() to util.inc to match m0n0wall 2008-08-23 22:42:24 +00:00
Scott Ullrich
ffbe9dae7b Style boxen better. 2008-08-23 22:33:37 +00:00
Scott Ullrich
b714ce0469 Add listrborder element 2008-08-23 22:32:30 +00:00
Scott Ullrich
0a95b653a6 Add a Phase2 button and hide the phase 2 settings by default. Clicking the
button will unhide the phase2 block similar to our "Advacned" buttons on
various screens.
2008-08-23 22:18:27 +00:00
Scott Ullrich
5bba8dfbdd Begin reformatting IPSEC screen. Give a bit more padding, shift
over a little and turn bacgkround to grey instead of red.
2008-08-23 21:43:08 +00:00
Matthew Grooms
fce61edae2 Disallow the copy option for mobile phase1 entries. There can be only one. 2008-08-23 19:32:50 +00:00
Seth Mos
c7ab1feae9 Touch up text 2008-08-17 20:27:52 +00:00
Scott Ullrich
6946d43d3d Add a script to assist in removing all packages and or the package
configuration file from the command line.
2008-08-15 23:40:40 +00:00
Scott Ullrich
ebd9c6d82c Fix nat entry.
Pointed-out-by: Wallabybob via forum
2008-08-14 16:39:20 +00:00
Ermal Luçi
67473d80ef * Move the interface detection of which interface is configured to the top so the pppoe reset function work correctly.
* Check is the array isset before referenceing it.
2008-08-14 16:06:48 +00:00
Scott Ullrich
6e41522cec Return after redirecting. 2008-08-12 17:08:39 +00:00
Scott Ullrich
406578388e Ensure we unlock captive portal before redirecting. 2008-08-12 16:58:47 +00:00
Scott Ullrich
8abb10307f Remove duplicate function portal_mac_fixed() 2008-08-12 16:51:33 +00:00
Scott Ullrich
388cb34e29 Ensure /var/etc/ssl exists 2008-08-12 03:46:05 +00:00
Matthew Grooms
58fdb8ad1f Add a certificate list to the user object that can be managed using the ca
and user manager screens.
2008-08-11 21:49:52 +00:00
Ermal Luçi
2eedb54841 Remove debugging craft. 2008-08-11 16:31:58 +00:00
Ermal Luçi
0d3f3e9093 style(9)++. 2008-08-10 17:02:18 +00:00
Ermal Luçi
b8d1c38b2b Remove debugging code. 2008-08-10 16:59:49 +00:00
Ermal Luçi
b6f3005c2b Bring to functionality the editing of aliases.
* Cleanup uneccesary eval() use in php code
* Invrease on javascript the limits to 299 to really allow 299 entries
* Remove limitiation of not being able to delete the first entry
* Make all the rows dynamic. Now a new alias will not show any rows unless the plus sign is clicked.
* Fix bug where OpenVPN aliases where being selected in case of Port aliases
* Cleanup and style(9) here and there
2008-08-10 16:54:54 +00:00
Scott Ullrich
fb673a312f cat /var/folders/X7/X7bVv+-6HAyNkkcSCwAA5k+++TI/-Tmp-//cvsCjq0EX 2008-08-09 22:06:18 +00:00
Scott Ullrich
621084b521 Use outputCSSPrintFileInline() function 2008-08-09 22:02:16 +00:00
Scott Ullrich
8d236bfb7c * Check if file exists
* Correct Javascript -> CSS incorrect assignment
* Restore inline functions
2008-08-09 21:49:25 +00:00
Chris Buechler
8ea4b40c9b fix typo 2008-08-09 20:39:34 +00:00
Scott Ullrich
fca80f8537 Do not inline niftycssCode.css 2008-08-09 04:15:19 +00:00
Scott Ullrich
5fca058353 Output product names correctly 2008-08-09 03:11:44 +00:00
Scott Ullrich
07648d5676 Unbreak 1.3 CP. 2008-08-09 02:29:27 +00:00
Matthew Grooms
64cc39d3dd Implement a certificate authority and certificate webui that can be used
to centrally manage this data. There are no consumers at this time. This
interface allow for the following ...

Certificate Authority Manager:
- List certificates authorities
- Import existing certificate authority
- Create internal certificate authority

Certificate Manager:
- List certificates
- Import existing certificate
- Create internal certificate using an internal CA
- Generate certificate signing request for external CAs
- Process certificate signing response from external CAs

Certificate revocation is not currently implemented. The user system will
also be extended to allow for user specific certificate management in a
follow-up commit.
2008-08-09 00:06:08 +00:00
Martin Fuchs
90ee3f4d6e add MSN to well-known-ports 2008-08-08 11:43:25 +00:00
Matthew Grooms
080cda0f91 Add a right arrow icon supplied by hoba. This compliments the existing
left arrow icon. Use the left and right arrow icons instead of the plus
and x icons for moving users and groups between selection lists in the
user and group manager screens.
2008-08-06 21:58:03 +00:00
Scott Ullrich
5285a0e316 Adding php5-openssl 2008-08-06 06:24:32 +00:00
Ermal Luçi
4318cee1da Do not show assigned interfaces on lagg config. 2008-08-05 22:43:25 +00:00
Ermal Luçi
3134528d84 Rename the bridge knob to bridged so that the upgrade code works correctly and we play by the rules of the parser. 2008-08-05 22:21:14 +00:00
Ermal Luçi
675aac3d62 Remove code for creating old way bridges. Anything has to be done through the new bridging code. Sorry not upgradable! 2008-08-05 16:32:23 +00:00
Scott Ullrich
3c43b72893 Fix error: Warning: Invalid argument supplied for foreach() in /usr/local/www/pkg_mgr_install.php on line 155 2008-08-05 16:17:59 +00:00
Ermal Luçi
ad048a139b No need for the 'filtering bridge' option with if_bridge(4). 2008-08-05 15:49:38 +00:00