15453 Commits

Author SHA1 Message Date
Jos Schellevis
71c7ca3000 Fix bug in previous commit for pkg 2015-01-13 15:18:28 +00:00
Jos Schellevis
da4675cb4a Upgrade for firmware upgrade add check for pkg package and change scripting to allow sinlge package upgrade, also fixes #27 2015-01-13 11:02:07 +00:00
Franco Fichtner
1b6984c72d inc: remove a wee bit of over-engineering
Hides complexity to make it easier to migrate away from
the legacy 'check_reload_status' soon.
2015-01-11 14:54:23 +01:00
Franco Fichtner
e40924c66a mvc: fix a couple of style errors 2015-01-11 10:15:55 +01:00
Franco Fichtner
3ff299e1d7 make: add rc.initial* scripts to lint target 2015-01-11 10:10:33 +01:00
Franco Fichtner
5e9ab6d856 src: apply whitespace cleanups 2015-01-11 10:07:23 +01:00
Phil Davis
6b1ca069c0 Validation of y/n answers in setlanip
At the moment the user can answer "yes" to most of the questions, but then later code only checks if the answer is "y". Thus you can type in "yes" in some places, have it accepted, but actually the negative action is taken. That is weird and will mess up people who try typing a whole string starting with "y".
With this change it makes the user type one of "y", "yes", "n", "no". When they type 1 of those, it is turned into either "y" or "n". Then the existing implementation logic all works as expected.
Hopefully this is the "final" version that fixes the behavior of the (y/n) questions.
I also included the bit at 296-297 which adds the CIDR bit-count range to the prompt, so the user can see exactly what input is valid/expected there.
Redmine issue #4100
2015-01-11 10:04:40 +01:00
Phil Davis
e19ddeff25 rc.initial.setlanip fix validation of CIDR within range
Currently this allows the user to input any number for the CIDR. I happened to try 44 for an IPv4 CIDR when playing.
This fixes that little bug - I think it is good to commit that first/separately so it can be identified apart from the other (y/n) checking/handling I am working on. Better to have separate commits for distinct bugs.
2015-01-11 10:02:47 +01:00
Phil Davis
8df5a57be5 Fixup dhcpd interface enabled check 2015-01-11 10:00:22 +01:00
Phil Davis
83d40310ac Fix console set interface IP address
Problem as per forum https://forum.pfsense.org/index.php?topic=83651.0
The problem comes whenever services_dhcpd_configure is called - the global $config gets reset from the actual current config, and any pending changes in the current process are lost.
It was introduced by commit 86ce2df
in which services_dhcpdv4_configure() does:

require_once('pkg-utils.inc')

and pkg-utils.inc does various stuff like:

if(file_exists("/cf/conf/use_xmlreader"))
require_once("xmlreader.inc");
else
require_once("xmlparse.inc");

which seems to cause a reset of the $config variable, thus losing the pending changes the user has entered at the console.

The top-level code in rc.initial.setlanip really does not need to (and should not) implement any changes along the way - it should collect all the answers from the user, then write_config and then make all the necessary calls to routines to implement the changes on the running system. This fixes it - defer any calls to services_dhcpd_configure() until after all questions are answered and write_config has happened.
2015-01-11 09:58:08 +01:00
Phil Davis
d6516133c5 Set interface address from consol tidy output
While trying to see why this is not working for me (forum https://forum.pfsense.org/index.php?topic=83651.0 ) I have fixed some little things:
1) Get the new-lines right so the output of the restarting looks neat
2) Fix a comparison that had just a single equal sign - it did not break anything real because the subsequent code was just text output to the console. Now that text output does take notice of the correctly-evaluated condition, and $interface is not overwritten.

The issue in the forum post, about the interface IP address config not actually changing, is still the case, at least for me.

IMO these little tidy ups might as well be committed. They make this code better!
2015-01-11 09:55:07 +01:00
Phil Davis
c9fc7a4520 Allow blank source port in diag_testport
Reported by forum https://forum.pfsense.org/index.php?topic=86146.0
Also, if there are input validation errors, save the user-entered data and re-display it, making it easier for the user to just correct the data in error and press Test again. It was blanking out all the entered data.
2015-01-11 09:12:26 +01:00
Jos Schellevis
ce7c30a85f Cleanup of system gateway groups and edit, fixes #23 2015-01-09 16:07:53 +00:00
Jos Schellevis
9c51c50049 Cleanup and fix system routes / system routes edit, fixes #22 2015-01-09 15:30:08 +00:00
Jos Schellevis
89b3dcc179 Cleanup images from system routes, fixes #21 2015-01-09 14:39:26 +00:00
Jos Schellevis
fefd9baffe Fixed some typos introduced in ab1cade 2015-01-09 14:13:55 +00:00
Jos Schellevis
ab1cadea90 Change route change to route delete and route add, fixes #20 2015-01-09 13:53:57 +00:00
Jos Schellevis
9c1cc27e08 Add tabs to System Routing, fixes #19 2015-01-09 10:53:15 +00:00
Jos Schellevis
c9ccd8dfab Unbound start fixed and glyphicon typo fixed, fixes #9 2015-01-08 15:46:42 +00:00
Jos Schellevis
d2fa9a5447 Default gateway is removed and added instead of changed, solves #17 2015-01-08 14:29:13 +00:00
Jos Schellevis
024173bfd0 Change comment text 2015-01-07 15:15:24 +00:00
Jos Schellevis
f2c83940af Check if sshdkeyonly is set or not before unsetting, fixes #8 2015-01-07 14:50:11 +00:00
Ad Schellevis
13f6f65ec2 added template engine for new features, including example templates for demonstration purposes.
This shouldn't break any current features and only works after installation of the jinja2 python package.

To test, execute
	./execute_command.py template reload OPNsense.Sample
2015-01-06 22:17:45 +01:00
Ad Schellevis
ad2769915a code styling fixes (PSR) for captive new captive portal code 2015-01-04 19:20:03 +00:00
Franco Fichtner
6e46796a6b serial: be picky about those newlines 2015-01-02 15:20:38 +01:00
Franco Fichtner
2e33879ad9 firmware: fix and tweak wording of `up to'; clean up license foo while there 2015-01-02 14:50:08 +01:00
Ad Schellevis
34a9a200fa Merge branch 'master' of ssh://github.com/opnsense/core 2015-01-02 13:35:06 +00:00
Ad Schellevis
1ac3f123be flush ipfw when captiveportal is disabled 2015-01-02 13:34:26 +00:00
Franco Fichtner
b20834ac48 src: apply global whitespace cleanups 2015-01-02 12:11:43 +01:00
Jos Schellevis
46bf6e98a4 last set of html fixed for the day 2015-01-02 10:44:30 +00:00
Jos Schellevis
4156a7284a html updates and fixes 2015-01-02 10:27:26 +00:00
Jos Schellevis
fcc1558494 Fixed html coding issues on several files 2015-01-02 08:47:56 +00:00
Jos Schellevis
8b23648d17 Small menu updates 2015-01-01 21:23:40 +00:00
Jos Schellevis
9094a66095 Happy new Year...Copyrights for www done 2015-01-01 14:48:13 +00:00
Jos Schellevis
f2a0a7e636 More cleanups.. and still not done 2015-01-01 14:11:03 +00:00
Jos Schellevis
fb340fcd94 More cleanups, copyrights and links 2015-01-01 13:47:20 +00:00
Jos Schellevis
9643dadc2c Lots of cleanups, icons, links and copyright notices 2014-12-31 16:41:03 +00:00
Jos Schellevis
30a3036f6c More cleanups javascript updates and so on 2014-12-31 12:03:46 +00:00
Jos Schellevis
96899e89f0 Cleanups icons and a bit more.. 2014-12-31 09:38:24 +00:00
Franco Fichtner
a17e071ac9 config: make reverse display the default to avoid initial pagination 2014-12-31 08:49:51 +01:00
Franco Fichtner
93397f8a3f auth: replace spurious admin user in favour of root
A hybrid approach was previously employed that made it possible
to use admin as a synonym for root, which was really confusing
and a bit unclear judging by the actual code employed.  Does
admin own a home directory or not?  Why does root work on the
console, but not in the web interface?
2014-12-31 08:45:39 +01:00
Franco Fichtner
ee8737279b rc: tweak password reset just a wee bit more 2014-12-30 10:16:11 +01:00
Ad Schellevis
f3d9e10b0a fixes for captive portal voucher, locking issues etc. 2014-12-29 17:47:25 +00:00
Jos Schellevis
3ee4024a8b more icons..never ending story 2014-12-29 16:57:15 +00:00
Jos Schellevis
7f64849af7 voucher test change image to glyhicons 2014-12-29 16:11:59 +00:00
Ad Schellevis
04c4fec271 statistics gathering failure, not used for now, disable 2014-12-29 16:08:01 +00:00
Ad Schellevis
e74d4cb985 voucher code typo 2014-12-29 16:02:35 +00:00
Ad Schellevis
7d85b81f94 Merge branch 'master' of ssh://github.com/opnsense/core 2014-12-29 15:58:01 +00:00
Ad Schellevis
0a73dc888c fix strongswan ipsec paths 2014-12-29 15:56:57 +00:00
Jos Schellevis
6733297bc4 Change images to glyphicons on voucher page 2014-12-29 15:53:54 +00:00