Commit Graph

115 Commits

Author SHA1 Message Date
gnhb
b20f736344 Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp 2010-06-08 07:06:46 +07:00
Scott Ullrich
ac7609c2b6 Binaries should not be in the git repo 2010-06-07 16:55:13 -04:00
Scott Ullrich
906bf57a64 Binaries should not be in the git repo 2010-06-07 16:54:46 -04:00
Scott Ullrich
80b38739e9 Binaries should not be in the git repo 2010-06-07 16:54:11 -04:00
Scott Ullrich
571f89a2d0 Binaries should be in the git repo 2010-06-07 16:53:27 -04:00
gnhb
37df6d7b15 Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp
Conflicts:
	etc/inc/upgrade_config.inc
2010-05-12 19:27:12 +07:00
Ermal
8d964cea2c Add scpecific scripts for when ovpn goes up and down so we get neccessary values for used in varius areas of pfSense. TODO is find out how to get DNS info form openvpn. 2010-05-07 11:02:45 +00:00
gnhb
6fcc9db6a2 Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp 2010-05-02 15:09:01 +07:00
gnhb
44d57a2bf2 Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp 2010-05-02 15:08:05 +07:00
gnhb
d123e3bdb2 Make script files for getting ppp connection uptime executable. 2010-05-02 15:03:13 +07:00
Ermal
05f3ffa431 Ticket #8. Delete states after link fails down. 2010-04-30 11:22:53 +00:00
gnhb
dc8c07403f Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp 2010-04-22 05:38:40 +07:00
gnhb
d32a40c1c6 Revert changes as requested by Ermal 2010-04-12 22:41:44 +07:00
gnhb
f64f0f2048 Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp 2010-04-12 19:15:01 +07:00
gnhb
632921995c Implement reporting and logging of historical PPP uptime with data 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.
2010-04-10 22:07:48 +07:00
gnhb
fc5324e928 more changes to mpd.script to make debugging easier. 2010-04-05 18:26:28 +07:00
gnhb
29851d8eb2 Added some more information to error messages for easier debugging. 2010-04-05 17:18:04 +07: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
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
1f5598851e Actually its dns2 for the second entry. 2010-03-23 22:40:25 +00:00
Ermal
1033de7481 Resolve problems with dns server setup when allow override is set. Also add static routes for all nameservers to be friendly with multiwan. 2010-03-23 21:13:32 +00:00
sullrich
e788b01d9a Add a few more commands for the lazy 2009-12-02 21:06:11 -05:00
sullrich
f6907eb40b Add tab completion 2009-12-02 21:03:02 -05:00
Scott Ullrich
8586a96202 Automatically source common items so that config is in the eval() context 2009-10-05 13:20:10 -04:00
Ermal Luçi
006e178740 Actually it needs an ip! 2009-05-17 18:05:32 +00:00
Ermal Luçi
6660d316ed Add the state killing for now on VPN's pppoe/pptp/l2tp when the link goes down. For the others some more thought is needed. 2009-05-12 16:59:41 +00:00
Ermal Luçi
9befcca76a Fix a lock leaking on CP. 2009-05-08 19:20:28 +00:00
Ermal Luçi
6849a17630 Generate the {interface}up status file. 2008-12-08 13:52:50 +00:00
Scott Ullrich
eb95ba843a Output welcome banner after globals.inc is required 2008-11-23 00:00:19 +00:00
Scott Ullrich
4c1817bd4c Turn off debugging text 2008-11-20 01:25:59 +00:00
Scott Ullrich
88e46869c7 * Use defined server from config.xml
* Sleep for 5 seconds in between requests
2008-11-12 19:42:43 +00:00
Scott Ullrich
b9e3a295e8 Use product_name 2008-11-10 04:12:31 +00:00
Scott Ullrich
d271761b8c Kill old ntpd process if it is around 2008-11-09 05:41:16 +00:00
Scott Ullrich
9583064a75 Sync 2008-11-09 03:11:43 +00:00
Scott Ullrich
2e85f5ed77 Add script that will keep trying to set the date time (for bootup) that
will run in the background to help speedup boot times.
2008-11-09 02:51:58 +00:00
Scott Ullrich
bc8472b77a Adding custom grub-install 2008-10-28 19:52:26 +00:00
Ermal Luçi
b87364eb25 Fix issue reported on ticket #1825. 2008-10-25 14:37:22 +00:00
Scott Ullrich
4c12ef0a4f Break out item that can be its own function 2008-10-24 00:32:46 +00:00
Ermal Luçi
28ec82f157 Actually apply fixes to the correct files. 2008-10-13 22:49:06 +00:00
Ermal Luçi
5252f90906 I always remember having done this long ago?! 2008-10-13 22:43:44 +00:00
Scott Ullrich
8a7712ea5d Require_once instead of require. 2008-09-10 19:59:44 +00:00
Scott Ullrich
b1de6b8b14 Show playback commands avaiable 2008-08-30 07:13:33 +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
Ermal Luçi
cbe4111fea Add other needed files so everything works as expected. 2008-07-14 21:12:35 +00:00