summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-08 22:03:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-08 22:03:22 +0000
commit0feec714b9b899d6092cd9cf1d9b7d6c4b1fe3f8 (patch)
treecc2fa2833d4bfbb4ae58fabd5a8347feb13cb7d3 /etc/inc/vpn.inc
parent1ad0ed7e1128699aa930c2786c0a292e4ae75c50 (diff)
downloadpfsense-0feec714b9b899d6092cd9cf1d9b7d6c4b1fe3f8.zip
pfsense-0feec714b9b899d6092cd9cf1d9b7d6c4b1fe3f8.tar.gz
Backport IPSEC filtering to 1.0.1.
Requested and will be tested by Seth
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 5f43740..bc6fa21 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -97,6 +97,9 @@ function find_last_gif_device() {
function vpn_ipsec_configure($ipchg = false) {
global $config, $g, $sa, $sn;
+ mwexec("/sbin/ifconfig enc0 create");
+ mwexec("/sbin/ifconfig enc0 up");
+
/* get the automatic /etc/ping_hosts.sh ready */
unlink_if_exists("/var/db/ipsecpinghosts");
touch("/var/db/ipsecpinghosts");
OpenPOWER on IntegriCloud