Initial commit of dnsmasq domain overrides
Submitted-to-m0n0wall-dev-by: Joe Suhre
The patch adds the ability to make use of dnsmasq's --server=/domain/auth_server ARG inorder to force queries for domain to a specific dns server rather thendoing a full recursive query
Note that these values can be overriden in config.xml
Allow maximum PPTP clients to be overridden by:pptp->n_pptp_unitspptp->n_pptp_units
Correctly pass the current wan to pftpx
Uncomment the redirect pptp rule.
Correctly start pftp on pppoe and similar type connections
Make is_service_running() work as it should
Add 10 second timeout to get_pkg_info. This may fail in interesting ways if it times out.
Fix various nagging package issues.
rmdir_recursive: Handle single files and remove an extra foreach.
Make sure we remove the package's XML file.
Fix a typo. This broke package deinstallation.
Brute force delete a package if it still exists after unlink_ifexists()... the item in question is most likely a directory.
Don't attempt to run package deinstall commands if the package XML hasn't been parsed (or it doesn't exist).
Honour the custom_php_deinstall_command which is in about 90% of our packages!
Woops, missing space krept in
Simplify the carp and pfsync rules a lot and make them match the openbsd faq page closer
Revert non carp keep state change, it breaks carp.
Don't attempt to parse package configuration on deinstall if it doesn't exist.
reported-by: Scott
Add 'service' listtag.
Really fix Status -> Queues
Sort queues so status -> queues should work again
Multi-wan code fixes (this commit brought you by the words multi and wan)
Add system->afterfilterchangeshellcmd xml tag which will be exec'd aftereach filter_configure() call. This is useful for fixing stuff like:
http://www.m0n0.ch/wall/list/?action=show_msg&actionargs%5B%5D=172&actionargs%5B%5D=46
Add support for roue-to inside each rule which allows traffic direction for multiple wan environments
Make reply-to actually work (it's a miracle nobodies noticed!)
Do not keep state on carp traffic. Chris D seems to think this may allow us to do inbound states.
Call custom_php_command_before_form before resync
Resync a package on installation
We need to remove packages from the top down, not the bottom up.
Relaunch pftpx on dhclient changes if necessary
Update package utilities.
Document more functions.
Flush static output when starting a fresh installation or deletion.
Adjustments to delete_package_recursive().
Actually queue outbound pakcetsTicket #125
Outbound shaper tags for ticket #125
we really need require_once("pkg-utils.inc"); for is_package_installed();
Squid strikes again.
Why are we including package utils? :P
Setup (more) correct default queues and ack queues to go along with themPart of the master shaper ticket #121
include pkg-utils.inc
unbreak the package manager by adding back fetch_latest_pkg_config()
Add needed lisstag for menu items.
Correct the is_service_running() routine
Bugfixes and cleanup.
Minor alterations to package_install().
Remove find_package_description()
Correctly return packages description
add find_package_description() which returns a packages description
Add package_install, package_install_xml, etc.Still to come: * reinstallation * deletion * hooks into rules, nat, index.php * service manager * new menu organization (config.xml instead of ext/) * other stuff as I think of it
Don't need this function anymore - it wasn't happy anyway
Split shaper back to individual interfacesfix VOIP queues (wrong interfaces)
die carp breaking line, die!
remove debugging
Correctly enable hostap on wi type cards
Disable php_check_syntax() again, it has issues.
More shaper work
Enable php_check_syntax() checking of eval'd scripts and report an error on console if one occurs
Commit more work on the magic shaper and shaper system
Do not carriage return after assigning debug info
Actually disconnect a user correctly
Remove debugging line
Correctly bring up hostap mode
Revert captive portal change that ATTEMPTED to fix squid. It doesn't work. Sorry it didn't work out but temporarily squid and captiveportal are not great bed partners.
Remote '"' marks around trap host and trap port.These stop the snmp server from starting.Add trap string to write config.
Add support for trap and snmp writes (currenly disabled).
Remove trailing space
Use proto and get rid of -> *
Be more specific on no rdr rule so squid can work
Trim some print.
Add find_number_of_created_bridges() routine which returns the number of currently created bridges */
Thats -p not -i
Correct typo
Add console/web-aware versions of update_status and update_output.
Minor work on packages. A console interface may require either a Lua rewrite of rc.initial, progress(1), or dialog (to make it pretty, anyway) ;)
bsnmpd support by strgout
run bsmptd
Make parent queues work again
make tos bit work in shaper
Turn default policy of state-policy if-bound on by default.
Discussed-by: bill, chdio, geekgod
Enable spanning tree protocol on bridged nodes
Revert check for interface enabled - this fixes user rules again
Make sure $bridges_total is a numeric
Cache the contents of find_carp_interface() to speed up subsequent requests
Speedup get_carp_interface_status() by caching the full ifconfig file and then using it for each seqsequent request during the php session
Remove filter_generate_ipfw_altq_rules() since we're not longer in IPFWland, toto
Remove commented out code in preperation for pure pf altq switchover
Start pftpx with wan address
Allow "any" as a source network on nat mappings
Do not process a rule that is attached to a disabled interface
Correctly remark this code snippet out
More work on cURL functions.
Something tells me we aren't using IPFW anymore Toto
Move ssh lockout rule and make it a non-quick rule so that USER_RULES can override if they wish
More bootup cleanups