summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused function.Ermal2010-04-301-19/+0
|
* Improve NAT Port ForwardingRenato Botelho2010-04-291-2/+4
| | | | | | | | | | | | | | New features available are: * Now you can disable a rule * You can define "no rdr" rules * Source type, address and port, with an option "not" for exceptions * Destination type, address and port, with an option "not" for exceptions Implemented by: Carlos Eduardo Ramos <carlos.ramos@bluepex.com> Renato Botelho <renato.botelho@bluepex.com> Vinicius Coque <vinicius.coque@bluepex.com> Reviewed by: cmb and efonne Sponsored by: BluePex Security Solutions
* The console menu does not show if the terminal type is not cons25 - not sure ↵Erik Fonnesbeck2010-04-281-2/+2
| | | | why. Changed to cons25 to allow the menu to work on the serial console when enabling it through the web GUI. Ticket #316
* Improve NanoBSD slice updating/changing a bit, add some error checking. ↵jim-p2010-04-231-18/+40
| | | | Resolves #534.
* Relocate some NanoBSD functions to a central place. Change NanoBSD ↵jim-p2010-04-231-0/+114
| | | | diagnostics and system info widget to use the new code. Ticket #533 and some prerequisite parts of Ticket #534.
* Add a new alias type, urltable, which downloads a file of IP/CIDR addresses ↵jim-p2010-04-211-0/+37
| | | | and loads them into a pf persist table instead of importing the addresses directly into a traditional alias. This allows for using huge tables of addresses that would otherwise break the GUI and/or fail to load into pf. Part of ticket #512
* Beef up the version comparison code. This should let us compare several ↵jim-p2010-04-161-0/+85
| | | | combinations of local and remote versions and properly determine if the current version is older or the same as the remote version.
* Make PPP redial when the connection is dropped. Also, fix PPP uptime display.gnhb2010-04-111-1/+1
|
* Remove unnecessary variables.gnhb2010-04-101-2/+0
|
* Implement reporting and logging of historical PPP uptime with data ↵gnhb2010-04-101-39/+22
| | | | | | | | | | | | | | | | persistent through reboot. Also, change the way uptime is captured. The mpd console is no longer used to get PPP uptime data, which will prevent spamming of PPP logs with console access messages. This means we no longer have to write out mpd_<interface>.query files to /var/etc. Now, a simple calculation of the age of the /tmp/<interface>up file is used. This gives the same data within the second as the console data so it seems acceptable. I removed some "rm -f" calls from ppp-linkdown as there was already code in interfaces.inc interface_bring_down function that unlinks the <interface>up and <interface>_router files. There is still the rm -r nameserver_<interface> call in the linkdown script. Maybe this should be moved to the interfac_bring_down function for consistency? Also, I commented out the ngctl shutdown <interface>: call. I think it's probably not necessary any more.
* Changes to make PPP work again. mpd5 fails to establish a ppp link withoutgnhb2010-03-291-12/+19
| | | | | | | | | | | | | | *some* username and password, so defaults are set if user enters nothing. Removed interface_ppp_configure call from interfaces_ppp_edit.php. It was useless there with the new structure, and it caused all PPP links to attempt to connect when user presses "Save" even before they are assigned to LAN/WAN, etc. Also, fix up pfsense-utils.inc and status_interfaces.php to display more info on status_interfaces.php. Changed util.inc to allow cua* interfaces to be recognized as real interfaces as pfSense got "interface mismatch" at boot and forced user to reassign. Maybe someone else has a better way to do this.
* Fix a few small bugs in new PPP code, and one type in pfsense-utils.incgnhb2010-03-291-3/+3
|
* Ticket #447. Handle multiple instances propperly.Ermal2010-03-271-1/+2
|
* Redo most of the ppp interface handling to be consistent with the other mpd5 ↵Ermal2010-03-271-21/+17
| | | | configurations. This way there is no more special handling for ppp around.
* I have PPP with mpd5 working really well now, including setting the APN and APNgnhb2010-03-261-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Number, and the SIM PIN and wait time for the SIM to settle after the PIN is entered. Still no work on multilink PPP with serial port links. Right now the code creates the mpd.secret file. I tested it using the set auth password <password> syntax in the mpd.conf file and got errors so I kept the mpd.secret file generation. PPP for modems does need the mpd.script file. It's the chat script file for the link establishment. Right now it has to be in /usr/local/sbin/mpd.script, and it's linked to /var/etc/ at boot time when ppp is first configured. I also took away the "Dialcmd" field in the PPP setup page (and a couple others) because the script is rather comprehensive and is designed to handle many modems. My two 3G modems worked without modification to the script. I did have to modify the scrip to handle the setting of APN and SIM PINs. I made the Init String field work, and the default init commands in the ATT&T, Verizion, and Sprint defaults now come up in the Init String field. You also no longer should put an "AT" at the beginning of modem commands entered in the web page because the script does that for you. I implemented interface renaming and that simplified the new code a lot, so that's nice. Now ppp interfaces start with ppp0 and go up as you add more. This patch refers to the ppp-linkup and linkdown scripts in the /usr/local/sbin/ directory so custom PPP linkup and linkdown scripts are not needed anymore. The persistent uptime tracking is still an open issue, but it works within each connected session. I'm already experiencing much smother conditions with mpd5 for PPP on 3G than I was with userland ppp. It's very nice.
* Add unzip support if unzip binary existsScott Ullrich2010-03-191-0/+21
|
* Add alias data url option. This code existed but lacked a backend daemon to ↵Scott Ullrich2010-03-191-1/+70
| | | | update the data every 24 hours. Adding this as well.
* Ticket #434. Do not die when parsing config since we know how to recover. ↵Ermal2010-03-191-2/+3
| | | | Only die during packages.
* fix textChris Buechler2010-03-131-1/+1
|
* Use pgrep/pkill to save a bit of cpu.thompsa2010-03-121-2/+2
|
* This may break booting so try only 100 times and fail gracely in case of error.Ermal Luçi2010-03-111-1/+9
|
* Fix console auto-login.Erik Fonnesbeck2010-03-111-2/+4
|
* Do not spread checking for value accross code. Do it in the function that is ↵Ermal Luçi2010-03-081-6/+8
| | | | supposed to do it.
* Put safe_write_file to the include it belongs to.Ermal Luçi2010-03-031-40/+0
|
* Ticket #255. Fix get_interface_info output to return propper ip address by ↵Ermal Luçi2010-02-221-40/+15
| | | | using pfSense_get_interface_addresses function.
* Adding from RELENG_1_2: safe_write_file() Writes a file out atomically by ↵Scott Ullrich2010-02-141-1/+40
| | | | first writing to a temporary file of the same name but ending with the pid of the current process, them renaming the temporary file over the original.
* Make sure the item passed is a string!Ermal Luçi2010-02-041-0/+2
|
* Fix output errors and collisions counters. The output of netstat added a ↵jim-p2010-01-291-2/+2
| | | | column so they were using the wrong data.
* Unbreak default sysctl handlingAdministrator2010-01-201-1/+1
|
* If config['system']['altpkgrepo']['username'] and ↵Scott Ullrich2010-01-161-0/+7
| | | | config['system']['altpkgrepo']['password'] then pass along these values to the XMLRPC layer so we can use password protected pkg servers
* These patches give you a display of the uptime of the active PPP linkScott Ullrich2009-12-291-2/+58
| | | | | | | | | | | | | | on the "Status-> Interfaces" page, and also logging on /conf (to survive reboot) of uptimes of each session after it is closed. In addition, the status_interfaces.php page displays the cumulative uptime total so users can manage their links that are on pay by the minute arrangements. Shortcomings: partial minutes are just added as cumulative seconds where most providers probably charge you for a minute after you're 1 second into that minute. I may fix this later. Submitted-by: Gabriel B
* Fix failure on opening gettytab fir writing.Ermal Luçi2009-12-281-1/+4
|
* Start using the new utility for monitoring dns hostnames used in aliases.Ermal Luçi2009-12-171-18/+0
|
* Latest PPP changes from 'BG'. Reformat this royal mess of formatting while ↵sullrich2009-12-051-1/+4
| | | | I am here.
* Set 2nd parameter for isAllowedPage. Will be required for #34, 33, 32sullrich2009-12-021-1/+1
|
* Process old entries, toosullrich2009-11-291-1/+1
|
* Update ttys serial lines. Resolves #165sullrich2009-11-291-2/+2
| | | | | | | | To prevent collisions with the sio(4) driver, the uart(4) driver uses different names for its device nodes. This means the onboard serial port will now most likely be called "ttyu0" instead of "ttyd0". You may need to reconfigure applications to use the new device names.
* sysctl kern.polling.enable=0 has been phased out. Simply run ifconfig ↵sullrich2009-11-281-2/+1
| | | | interface polling or ifconfig interface -polling. Ticket #124
* Make sure to get the wireless status from the correct interface.Seth Mos2009-11-261-1/+19
| | | | Add support for the rssi, rate and base station mac.
* Return up instead of runningScott Ullrich2009-10-251-1/+3
|
* Use get_real_interface() and does_interface_exist()Scott Ullrich2009-10-251-17/+19
|
* Unbreak status -> interfaces. TODO: Unbreak Disable Carp buttonScott Ullrich2009-10-231-10/+7
|
* Handle PPP interfacesScott Ullrich2009-10-191-1/+1
|
* Correctly handle PPP interfaces with get_interface_info()Scott Ullrich2009-10-191-0/+2
|
* Add a new (unlinked) page which allows entering a custom pkg repo URLjim-p2009-10-061-1/+1
|
* * Convert carp/vips code to behave the same as other interfaces.Ermal Luçi2009-10-011-191/+1
| | | | | | | | * Make optimizations around it. * Make sure when we reload teh underlying interface we reload carp too. * Some fixes around the code. Reviewed-by: scott@ and billm@
* If /etc/spwd.db.tmp exists remove it before running pwd_mkdbScott Ullrich2009-09-301-0/+1
|
* Pass origname instead of relying on a globalScott Ullrich2009-09-211-2/+2
|
* Check for interfaces with same name as alias. Ticket #92sullrich2009-09-211-0/+31
|
* Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additionsScott Ullrich2009-09-121-0/+7
|
OpenPOWER on IntegriCloud