Commit Graph

13489 Commits

Author SHA1 Message Date
gnhb
c90f247117 Changes to make PPP work again. mpd5 fails to establish a ppp link without
*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.
2010-03-29 20:03:55 +07:00
gnhb
a216a03a00 Fix a few small bugs in new PPP code, and one type in pfsense-utils.inc 2010-03-29 14:29:15 +07:00
Ermal
a728d6f91e Remove bougs (. 2010-03-28 21:49:20 +00:00
Ermal
b28e084296 Propperly choose interface name from correct variable. 2010-03-28 21:13:28 +00:00
Ermal
c107a2ac27 Forgot re-editing. 2010-03-28 21:11:47 +00:00
Ermal
da75413def Fix interface assignment and re-edit 2010-03-28 21:11:22 +00:00
Ermal
822263b772 Fix displaying ppp ports. 2010-03-28 20:10:04 +00:00
Ermal
8dac2d1b86 Fix PPP assignment. 2010-03-28 20:05:19 +00:00
gnhb
5ca41f8b4f Don't need the rm -f statement when using > redirect to overwrite the
file, and add the "then" to the if statements
2010-03-28 22:04:13 +07:00
gnhb
158b5cc3fb Fix mistakes (now using "call" instead of "goto") and add check to SIM PIN setting routine
so we don't have to set the pin every time if it's already set.
2010-03-28 22:00:33 +07:00
Ermal
29533e50b8 Be safer use the remote-ip address for adding route. 2010-03-27 08:17:01 +00:00
Ermal
1f0ddd30a8 Explicitly set the exit status of the script to not make mpd fail. 2010-03-27 08:09:02 +00:00
Ermal
8f4f1e3081 Use full patch to command and fix route add command parameter is -iface and not -if. 2010-03-27 08:02:43 +00:00
Ermal
9a4147d4a3 Tell that the interface is down. 2010-03-27 07:18:37 +00:00
Ermal
877fb374ab Ticket #447. Handle multiple instances propperly. 2010-03-27 07:10:47 +00:00
Ermal
f11237659b Ticket #447. Allow multiple innstances to be run. 2010-03-27 07:07:48 +00:00
Erik Fonnesbeck
b13efb0303 Only sync on the wireless clones that were reassigned. 2010-03-26 23:02:15 -06:00
Erik Fonnesbeck
003c0512bd A location where the shared wireless configuration should have been synced had been missed (reassigning interfaces). 2010-03-26 21:25:53 -06:00
Erik Fonnesbeck
b5582f49d2 Kill hostapd and wpa_supplicant when bringing the interface down. 2010-03-26 20:55:13 -06:00
Erik Fonnesbeck
c8178bb7dd Always kill both hostapd and wpa_supplicant, or they may stay running when WPA is disabled or even both can end up running when switching between AP and station modes. 2010-03-26 20:12:52 -06:00
Erik Fonnesbeck
9c4d33a1e6 Fix whitespace. 2010-03-26 20:05:25 -06:00
Erik Fonnesbeck
0beab3f4f1 Enable WAN and LAN in the default configuration. 2010-03-26 20:00:51 -06:00
Ermal
c8b19dd32f Fix killing mpd process for ppp. 2010-03-27 01:10:52 +00:00
Ermal
65125e113e Add enable bits. 2010-03-27 01:01:58 +00:00
Ermal
6a68854775 Make lan/wan behave as all other interfaces. 2010-03-27 00:28:07 +00:00
Ermal
65a82e32a8 Close console and web services for mpd. 2010-03-27 00:08:02 +00:00
Ermal
611ae85214 Redo most of the ppp interface handling to be consistent with the other mpd5 configurations. This way there is no more special handling for ppp around. 2010-03-27 00:05:37 +00:00
Ermal
3ad5fd63f0 Remove nonsense. 2010-03-26 22:19:37 +00:00
gnhb
1fc02dadb8 Trivial change in position of counter. 2010-03-26 18:12:40 -04:00
gnhb
1a904779f9 Fixed error in command to send the PIN to the SIM card. Missing double quotes. 2010-03-26 18:12:40 -04:00
gnhb
9ebe702859 I have PPP with mpd5 working really well now, including setting the APN and APN
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.
2010-03-26 18:12:40 -04:00
Ermal
a01d8d8bf7 Send signal to the dhcpleases daemon using its pidfile if it is running to reload. 2010-03-26 21:43:50 +00:00
Ermal
2b5f6a7e48 Correct MATCH name. 2010-03-26 21:23:48 +00:00
Ermal
0261381ace Actually pass the parameter to the dnsmasq where to read its hosts file from. 2010-03-26 18:00:21 +00:00
Ermal
5656777b44 Fix parameters 2010-03-26 17:57:19 +00:00
Ermal
2ccd849947 Use the new tool to monitor active leases. 2010-03-26 17:38:44 +00:00
Ermal
4b7981025b Fix code to show warnings properly. 2010-03-25 17:16:03 +00:00
Ermal
c71f5fcda8 Catch up with php5 2010-03-25 15:01:31 +00:00
Ermal
bedd946f59 Fix typo. 2010-03-25 11:09:31 +00:00
Ermal
ae9617ae8c Upps use correct variable. Reported-by: kaarposoft(forum) 2010-03-24 21:23:00 +00:00
Ermal
05855d1dca Fix checks. Reported-by: Efonne 2010-03-24 19:00:46 +00:00
Ermal
e27d0494c7 Catch up with php5. Reported-by: http://forum.pfsense.org/index.php/topic,23860.0.html 2010-03-24 17:28:56 +00:00
Ermal
a0116247dd Ticket #318. Add an option to updater settings to allow updates for images with no signature. This makes auto-updater work and will not display an confirmation message during manual update. 2010-03-24 17:00:39 +00:00
Ermal
7554ab8ca3 Prevent upgrade/spurious errors from happening. 2010-03-24 16:11:25 +00:00
Ermal
f38f806257 Generate hosts entries for all ips configured. 2010-03-24 15:54:01 +00:00
jim-p
6f02633de9 '@' Is also a valid PPPoE username character. 2010-03-24 10:21:54 -04:00
Erik Fonnesbeck
25f36aaf6d Redirect to the correct page after deleting an item. 2010-03-24 01:43:28 -06:00
Ermal
1f5598851e Actually its dns2 for the second entry. 2010-03-23 22:40:25 +00:00
Ermal
90680a1eee backup_config() does not need to be wrapped with conf_mount_rw(). 2010-03-23 22:21:36 +00:00
Ermal
328efaba84 Use the -s ident option of mpd to send the logs for the PPPoE/PPTP/L2TP servers to syslogs appropriate files. Create the files for these vpn's as for the others. Logs can be viewed in the VPN tab of the system log. 2010-03-23 22:13:21 +00:00