Вы находитесь на странице: 1из 8

16

5
, pfSense XML
.
. (
4.9. " pfSense XML ").

. ,
, .
, FreeSWITCH,
.

5.1. .

, , ,
. ,
.
.
,
,
.

pfSense .
, ,
,
,
.

,
.
. portal.pfsense.org [https://portal.
pfsense.org], .

,
,
, ,
5.6. "
(Backup Package)",
. ,
/boot/device.hints, /boot/loader.conf, /etc/sysctl.conf .

, , .


.
,
.
-
!

pfSense 1.2.x RRD, /var/db/rrd


.
, RRD XML ,
, -

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo
17
. .
5.6. .

5.2. WebGUI
WebGUI .
Diagnostics >> Backup/Restore. Backup Configuration,
, , Backup Areal All (
), Download Configuration ( 5.1. "
WebGUI").

5.6. WebGUI

.
config-hostname-timestamp.xml,
.

5.3. AutoConfigBackup
portal.pfsense.org
, AutoConfigBackup.
AutoConfigBackup
pfSense - http://doc.pfsense.org/index.php/AutoConfigBackup.

5.3.1.
,

HTTPS .
.
.

5.3.2. pfSense
AutoConfigBackup pfSense 1.2-RELEASE
2.0.

pfSense 1.2. -
1.2.
.
, .

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo
18

5.3.3.
AutoConfigBackup System >> Packages
AutoConfigBackup. .
pfSense .
AutoConfigBackup Diagnostics.

5.3.1.
, .
System >> General Setup.
FQDN (Fully Qualified Domain Name, + ), ,
, ,
FQDN,
.

5.3.3.2. AutoConfigBackup
Diagnostics >>
AutoConfigBackup. Settings,
portal.pfsense.org, .
, ,
. , ,
.

.
,
, .

5.3.3.3.
,
,
NAT, Apply Changes ( ). Diagnostics
>> AutoConfigBackup, Restore
. (
).

5.3.3.4.

. Restore
AutoConfigBackup, Backup .
. , ,
.
, ,
. ,
, pfSense,
.

5.3.3.5.
,
Restore Diagnostics >> AutoConfigBackup.
, .
.

. , NAT
.

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo
19
- NAT ,
.

5.3.4. " "


.
1. pfSense
2. LAN WAN, ,

3. AutoConfigBackup
4. AutoConfigBackup, ,
( ).
5. Restore .
6. .

5.3.5. AutoConfigBackup
AutoConfigBackup
Restore.
- ,
.
,
web .

5.4.

, ,
,
. , ,
.
.

, (LAN, DMZ .) VPN.
,
, , . AutoConfigBackup -

.

5.4.1. wget

wget cron .
HTTPS c ,
" ".
wget ,
HTTPS wget.
HTTPS ,
, , :

# wget -q --no-check-certificate --post-data 'Submit=download' \


https://admin:pfsense@192.168.1.1/diag_backup.php \
-O config-hostname-`date +%Y%m%d%H%M%S`.xml

HTTP :

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo
20
# wget -q --post-data 'Submit=download' \
http://admin:pfsense@192.168.1.1/diag_backup.php \
-O config-hostname-`date +%Y%m%d%H%M%S`.xml

, IP
. WebGUI
.
, ,
HTTPS WebGUI IP .
VPN.

5.4.2. SCP
pfSense UNIX
scp. scp
, .
scp
, :

# scp /cf/conf/config.xml \
user@backuphost:backups/config-`hostname`-`date +%Y%m%d%H%M%S`.xml

,
ssh . - ,
.
, ,
. chroot SCP,
, . scponly
unix,
. OpenSSH chroot sftp
(Secure FTP).

, .

5.4.3. SSH
SCP,
UNIX . SCP/SFTP,
,
.

# ssh root@192.168.1.1 cat /cf/conf/config.xml > backup.xml

, backup.xml
, pfSense.
, cron,
,
SSH .
, , .
SSH 4.5.2. " (SSH)".

5.5.

. pfSense
. ,
: ,
.

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo
21
5.5.1. WebGUI
-
web . Diagnostics >>
Backup/Restore Restore. ( 5.2. "
WebGUI"). ,
( ALL), Browse.
, Restore
configuration.
.

5.2. WebGUI

,
. -,
. -,
, pfSense,
.

5.5.2.
,
pfSense,
. Diagnostics >> Backup/Restore, Config
History ( 5.3. " "). 30
, .
.

5.3.

,
, .
.
Diagnostics >> System Reboot

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo
22
[YES].

5.5.3. PFI
3.6. " ", Pre-Flight Installer
(PFI - " " ..),
, USB
. ,
,
pfSense,
.
,
WebGUI.

5.5.4. CF/HDD

. CF HDD pfSense
FreeBSD,
,
.

, pfSense,
, FreeBSD,
.
. /cf/conf
, .
(),
ad0s3, , ad0. GEOM (
) FreeBSD NanoBSD
,
/dev/ufs/cf. -
( ad0s1a).
.

5.5.4.1.
-, CF USB - FreeBSD
pfSense ( ).
da0.
, GEOM.
:

# mount -t ufs /def/ufs/cf /mnt

, , GEOM,
/dev/da03.
:

# cp /usr/backups/pfSense/config-alix.example.com-20090606185703.xml \
/mnt/conf/config.xml

, :

# umount /mnt

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo
23
5.5.5.
, 3.6. " ",
pfSense ,
. ,
- , .

5.6. Backup
Backup
.
, RRD
FreeSWITCH,
( ).
System >> Packages, Backup
[+]. ,
Diagnostics >> Backup Files/Dir. .

5.6.1. RRD
Backup
RRD ( 22.5. " RRD").
-, Diagnostics >> Backup Files/Dir. [+]
. Name
RRD Data. Path, /var/db/rrd. Enable True,
Description (), RRD Graph Data. Save.
Backup [Backup]
RRD
. .

5.6.2. RRD
Diagnostics >> Backup Files/Dir, Browse
. [Upload]
. RRD 60 ,
.

5.7.
XML ,
, .
,
. ,
VPN ( )
.
. ,
. -
/ .
WebGUI
VPN, HTTPS. ,
.
.

Christopher M. Buechler
Jim Pingle
IBM Lotus Symphony 3.0
iboxjo