Commit Graph

9694 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
c3d42a86c9 Update the privilege definitions using the makepriv utility. 2008-08-26 23:06:51 +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
84b5f39b77 Add fourth parameter NOBACKUP 2008-08-23 22:47:18 +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
Scott Ullrich
44bfd1fabd Import format_bytes() from m0n0wall 2008-08-23 19:11:59 +00:00
Scott Ullrich
acdbfa0489 Update altq capable interfaces for 7.0 2008-08-23 01:32:53 +00:00
Scott Ullrich
ce9b6cbc9b Update spamd entries 2008-08-23 01:27:38 +00:00
Scott Ullrich
77a43cf0fb Move is_wan_up() after the routing is configured. 2008-08-19 23:28:38 +00:00
Scott Ullrich
68cd47b3a6 Move ntpdate function down a bit after routing is configured. 2008-08-19 23:27:12 +00:00
Scott Ullrich
86a12a6f5d Eliminate very annoying message on bootup "No process found". 2008-08-19 23:11:28 +00:00
Matthew Grooms
c945d83823 Fix some bugs in the pf filter generation code. If a user rule specified
a destination of lan, pptp or pppoe, generate_user_filter_rule() would
overwrite the source address instead of setting the destination address.
The OpenVPN interface alias configuration was completely broken which
prevented any user defined rules from working correctly. While here, also
perform some whitespace and simple code cleanup.
2008-08-19 18:15:17 +00:00
Scott Ullrich
4f1842be28 Commit changes submit by Rajkumar S:
Checks for file named /nanobuild and invokes /etc/rc.initdiskless if found, otherwise it follows the normal embedded bootup.
2008-08-18 16:30:11 +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
0750014f7f Enable tcpmssfix option to mpd on pppoe case which allows things like Msn Messenger or site like msn.com to behave correctly otherwise communication problems arise. 2008-08-14 16:09:18 +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
Ermal Luçi
7a6148e4ef Bring the bridge checks up to date with the bridge changes. 2008-08-13 21:14:24 +00:00
Ermal Luçi
6c0327f13f Remove bogus commands that adds a route to the new address pointing to dhcp.
It seems uncertain either to be a typo of $new_ip_address and $old_ip_address my test show that either cases it does more harm than good.

For now remove it altogether since it causes strange issues and makes ipsec tunnels not work on the interface with the new address.
2008-08-12 21:24:26 +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
Scott Ullrich
05a5e5c546 Simplify mod_expire statement 2008-08-12 02:50:02 +00:00
Matthew Grooms
67b6ce8f7b Forced commit to ensure this file stays out of the attic due to a missing
version in head.
2008-08-11 22:01:45 +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
Scott Ullrich
b51eff52be Disable extended TCP debugging. 2008-08-11 18:00:28 +00:00
Ermal Luçi
2eedb54841 Remove debugging craft. 2008-08-11 16:31:58 +00:00
Matthew Grooms
60286f06b5 Do a better job of re-assigning admin privileges when the password reset
menu option is used. Reported by Scott and Chris.
2008-08-11 15:56:07 +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