Commit Graph

164 Commits

Author SHA1 Message Date
jim-p
cf180ccc2a Switch to ntpd from ports, add Services > NTP to select interfaces for binding. Respect old ntp settings in the process. 2012-05-30 12:44:55 -04:00
smos
69b6c2b5be Skip a few pieces of code earlier. Perform file test on dhcpd logs. 2012-05-30 14:33:09 +02:00
smos
8dfb0c006a Add a few micro optimizations, bail out when the file does not exist. 2012-05-30 14:17:46 +02:00
smos
703173f253 Update the link script to parse the arguments 6 and 7 differently.
Previously mpd supplied the dns1 string as $6 and the IP as $7. It is now a single argument $6.
Apparently this changed somewhere so parse the IP out of there into the correct nameserver file.
Also fix the IPv6 string simultaneously
Redmine ticket #2458 Might need MFC to RELENG_2_0
2012-05-28 14:55:55 +02:00
smos
ffd2059b2a This command works better with Huawei modems. Needs more testing 2012-05-20 14:48:54 +02:00
smos
1cba5c587d Make sure we don't accidentaly clobber the v4 dns servers with empty fields from v6 2012-05-20 13:21:46 +02:00
jim-p
0b8e9d38d8 On its own, ntpd does not sync fast enough at bootup, so bring back the ntpdate sync but improve it so it can't get stuck forever. 2012-05-16 10:48:26 -04:00
jim-p
11e069064b Fix syntax here too in case we need to revive it. 2012-05-15 16:41:30 -04:00
smos
e32cb5d08d Make the ppp-linkup script understand both address families. 2012-05-14 14:54:04 +02:00
smos
092462dc10 Add a dhcpleases monitor to the DHCPv6 server which will trigger automatic creation of routes into the routing table so that prefix delegation will just work.
Redmine ticket #2347
2012-04-06 20:08:09 +02:00
Warren Baker
9beeae5a35 Rather use -c to check for line count, we then dont have to deal with extra whitespaces 2012-02-20 15:55:06 +02:00
smos
cfbfd9412b The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings
2012-01-19 20:33:41 +01:00
Scott Ullrich
2bd6b12b1d Adding missing file 2011-11-02 15:23:19 -04:00
Scott Ullrich
b7027baee4 Adding pbi_ suite of tools 2011-09-27 17:50:59 -04:00
Scott Ullrich
af422d559c Adding pbi_create 2011-09-27 17:50:58 -04:00
Ermal
f0be376863 Bind the state killing to the interface they should kill the states so that it does not impact other services like in #1421 2011-09-20 20:11:13 +00:00
jim-p
197c30ae98 Make sure this does not operate on empty parameters, and also log when removing states. 2011-08-24 12:59:13 -04:00
Ermal
e151744e90 Just break states based on the remote host ip and not with localip. The later might be the same as address used by other services and might interrupt them 2011-07-28 19:35:13 +00:00
Ermal
6390cdac26 Use the new change to be less distuptive 2011-07-25 19:42:22 +00:00
Ermal
514f63d122 Put a netmask of /32 to all parameters of -k/-K/-b of pfctl to avoid any issues. 2011-07-11 21:05:35 +00:00
Ermal
8ed478973f Kill states from the previous ip the link had on all mpd consumers. Resolves #1629 2011-07-06 20:50:03 +00:00
jim-p
152f57596b Fix test for tun device, -f fails because it's a char device, not a regular file. -e works. 2011-07-06 13:17:43 -04:00
Ermal
40fd50c8d0 Do not add an automatic gateway on openvpn tap case since its only the netmask. 2011-07-01 21:21:44 +00:00
jim-p
90ecc0b62f Disable state killing in VPN down scripts. 2011-06-20 16:06:26 -04:00
jim-p
c880d03296 Fix ovpn-linkup so it writes out the proper gateway IP in all cases.
(For some reason -n wasn't working properly, plus $5 is the right parameter for the remote IP here)
2011-06-20 14:57:35 -04:00
Ermal
5b06d9ccee Reorder instructions and do not reload dns if its not allowed from the dns allow override setting. 2011-05-06 21:27:14 +00:00
Ermal
f7ea050596 Remove static routes that are added for dns servers when allow override is allowed when a ppp interface goes down. Code borrowed from dhclient-script. 2011-04-29 18:23:11 +00:00
Ermal
a73a9886e7 Ticket #1408. Honor the allow override settings even for ppp devices. 2011-04-29 18:19:57 +00:00
jim-p
edf99ce40c Rework ntpdate_sync_once.sh, so it makes sure ntp/ntpdate/itself are not running before trying to sync time, and then launch ntpd at the end for time sync (last commit was premature) 2011-04-08 11:46:30 -04:00
jim-p
54c185948c Don't unconditionally start ntpd after doing ntpdate, it might be disabled. 2011-04-08 11:20:41 -04:00
jim-p
2db351a746 Send ntpdate output to syslog 2011-04-08 11:20:25 -04:00
Ermal
7f2c8034fb Test the existence of route_vpn_gateway variable and if set use it as a gateway. Recommended-by: http://forum.pfsense.org/index.php/topic,24436.msg158589.html#msg158589 2011-03-28 10:37:11 +00:00
Chris Buechler
456661378d fix text (remove entirely, comment is related to an open feature request). ticket #1262 2011-02-08 00:40:39 -05:00
Ermal
aa7c49b9d7 Ticket #943. Sleep 1 second to give dns time to reload. 2011-01-03 22:52:59 +00:00
Ermal
55c51af729 Ticket #1152. Call rc.newwanip even on openvpn linkup event to do the correct reloading of gateways and services. Add a safe belt to avoid a recursion in openvpn itself from rc.newwanip. 2011-01-03 21:29:28 +00:00
jim-p
fbeaba6614 Remove these now-obsolete linkup/linkdown scripts. 2010-11-02 13:22:49 -04:00
jim-p
2f9d2dc2f0 Use a unified vpn-linkup script that detects the type based on interface name. 2010-11-02 11:57:40 -04:00
jim-p
6d1091dc25 Add individual linkdown scripts so the service type can be set in the log. 2010-11-01 16:15:24 -04:00
jim-p
d282c96c52 Add service type to vpn log 2010-11-01 16:05:14 -04:00
jim-p
7c2551881c Fix logging parameters. 2010-10-28 10:29:26 -04:00
jim-p
c815b877cf Fix pfctl -b parameters to prevent the killing of unintended states. 2010-10-28 10:29:00 -04:00
Ermal
04c528e72b Ticket #876. Actually the event to send is interface newip $ip rather interface configure! also use the fact that now we have a /tmp/$if_defaultgw rather than relying in route get default which might block. 2010-09-15 19:47:39 +00:00
Ermal
0c452870cd Reload dns and interface properly on dynamic types. 2010-09-15 19:24:26 +00:00
Ermal
3d471a14d4 Ticket #876. Add the ip to the respective files on ppp linkup event so the code of dynamic gateways finds them. Also reorganize/simplify/optimize the apinger config generation code. Do not use that 127.0.0.x hack anymore and avoid loops as much as possible. 2010-09-09 17:25:06 +00:00
Ermal
0ae6daf834 Use the new events mechanisms to dispatch events. 2010-09-07 19:36:53 +00:00
Ermal
cfdf944442 Delete previous route if present. 2010-09-06 15:04:54 +00:00
Ermal
4e56c0b892 Switch to the right values for openvpn 2.1 according to the documentation. 2010-08-26 16:57:59 +00:00
Ermal
b439dc01b9 Pass the new argumesnts to pfctl -b and correct variable name as reported on Ticket #8. 2010-08-23 15:52:54 +00:00
Ermal
228aec4624 On ppp type interfaces down event signal for resolv.conf to be generated to have the latest dns servers. Ticket #838. 2010-08-23 15:05:17 +00:00
gnhb
b20f736344 Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp 2010-06-08 07:06:46 +07:00