cat /etc/rc.conf gwkg01# cat /etc/rc.conf
# 1hostnames, ifaces, routes, ipsec, gateways
hostname="gwkg01.kg.sca.loc"
real_ip="82.207.102.216"
# NICs
ifconfig_em0="inet 192.168.254.1 netmask 0xffffff00"
ifconfig_em1="inet 10.70.2.58 netmask 0xffffff00"
##ifconfig_em2="inet 192.168.4.230 netmask 0xffffff00"
# static routing
##static_routes="un kr mk"
static_routes="loc"
route_loc="-host 10.70.0.2 127.0.0.1"
#route_un="-net 10.70.4/24 10.70.230.104"
#route_kr="-net 10.70.3/24 10.70.230.103"
#route_mk="-net 10.70.5/24 10.70.230.105"
# gif tunneling & routing & IPSec
cloned_interfaces="gif1 gif4"
#cloned_interfaces="gif1 gif3 gif4 gif5 gif6 gif7 gif8"
#gif_interfaces="gif1 gif3 gif4 gif5 gif6 gif7 gif8"
gif_interfaces="gif1 gif4"
# gif1 - Central office
gifconfig_gif1="82.207.102.216 195.95.232.49"
ifconfig_gif1="inet 10.70.0.2 10.70.0.1 netmask 0xffffffff tunnel 82.207.102.216 195.95.232.49"
# gif3 - Krivoy Rog
#gifconfig_gif3="82.207.102.216 213.154.219.133"
#ifconfig_gif3="inet 10.70.0.2 10.70.0.3 netmask 0xffffffff tunnel 82.207.102.216 213.154.219.133"
# gif4 - Uman
gifconfig_gif4="82.207.102.216 193.43.95.53"
ifconfig_gif4="inet 10.70.0.2 10.70.0.4 netmask 0xffffffff tunnel 82.207.102.216 193.43.95.53"
# gif5 - Nikolaev
#gifconfig_gif5="82.207.102.216 85.159.6.65"
#ifconfig_gif5="inet 10.70.0.2 10.70.0.5 netmask 0xffffffff tunnel 82.207.102.216 85.159.6.65"
# gif6 - Kherson
#gifconfig_gif6="82.207.102.216 82.207.122.122"
#ifconfig_gif6="inet 10.70.0.2 10.70.0.6 netmask 0xffffffff tunnel 82.207.102.216 82.207.122.122"
# gif7 - Zhitomir
#gifconfig_gif7="82.207.102.216 81.21.5.247"
#ifconfig_gif7="inet 10.70.0.2 10.70.0.7 netmask 0xffffffff tunnel 82.207.102.216 81.21.5.247"
# gif8 - Chernigov
#gifconfig_gif8="82.207.102.216 82.207.89.43"
#ifconfig_gif8="inet 10.70.0.2 10.70.0.8 netmask 0xffffffff tunnel 82.207.102.216 82.207.89.43"
ipsec_enable="YES"
ipsec_file="/etc/ipsec.conf"
racoon_enable="YES"
racoon_flags="-l /var/log/racoon.log"
gateway_enable="YES"
defaultrouter="82.207.102.216"
# WAN`s
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="ukrtelOGO"
ppp_nat="NO"
openvpn_enable="YES"
openvpn_if="tap"
openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"
openvpn_dir="/usr/local/etc/openvpn"
# nat, firewalls
natd_enable="YES" # Enable natd (if firewall_enable == YES).
natd_interface=$real_ip # Public interface or IPaddress to use.
natd_flags="-f /etc/natd.conf"
firewall_enable="YES"
firewall_type="OPENALL"
firewall_quiet="YES"
firewall_logging="YES"
pf_enable="YES"
# SSH bruteforce defence
blocksshd_enable="YES"
# ...
inetd_enable="YES"
inetd_flags="-l -R 1024"
sshd_enable="YES"
tcp_extensions="YES"
# hardwares
usbd_enable="NO"
# ntp & ntpd Network Time Protocol & daemons
#ntpdate_enable="YES"
#ntpdate_flags="ua.pool.ntp.org"
#ntpd_enable="YES"
#ntpd_program="/usr/sbin/ntpd"
#ntpd_sync_on_start="YES"
#ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift"
# dns
#named_enable="YES"
#named_flags="-u bind"
# anti virus daemon
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"
clamsmtpd_enable="YES"
#clamav_milter_enable="YES"
#amavisd_enable="YES"
#amavis_milter_enable="YES"
#amavis_p0fanalyzer_enable="YES"
#amavis_p0fanalyzer_p0f_filter="tcp dst port 25"
# ldap server
#slapd_enable="YES"
#slapd_flags='-h "ldapi:///var/run/openldap/ldapi/ ldap://0.0.0.0/"'
#slapd_sockets="/var/run/openldap/ldapi"
# authenticated daemons
saslauthd_enable="YES"
saslauthd_flags="-a ldap -O/usr/local/etc/saslauthd.conf"
#saslauthd_flags="-a ldap -O/usr/local/etc/saslauthd.conf" -d -n 1 -V"
# sql servers
#mysql_enable="YES"
#mysql_dbdir="/var/db/mysql"
#mysql_args=""
#postgresql_enable="YES"
# samba
#samba_enable="YES"
smbd_enable="YES"
nmbd_enable="YES"
winbindd_enable="YES"
# proxy, im, www, ftp daemons
squid_enable="YES"
ejabberd_enable="YES"
#jabber_pyicq_enable="YES"
#jabber_pyicq_piddir="/var/spool/ejabberd/PyICQt"
#wildfire_enable="YES"
## WWW servers
apache_enable="YES"
nginx_enable="YES"
vsftpd_enable="YES"
vsftpd_flags=""
#pureftpd_enable="YES"
# other daemons
#rsyncd_enable="YES"
#webmin_enable="YES"
# smtp & pop3/imap4 daemons
postfix_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
#sendmail_flags="-bd"
#sendmail_pidfile="/var/spool/postfix/pid/master.pid"
#sendmail_procname="/usr/local/libexec/postfix/master"
dovecot_enable="YES"
#trafd
#trafd_enable="YES"
#trafd_ifaces="tun0"
#trafd_flags="-r -p"
#trafd_log="/usr/local/var/trafd/trafd.tun0"
# nagios enable
#nagios.sh_enable="YES"
nagios_enable="YES"
# fonts & key + screen maps
font8x14="cp866u-8x14"
font8x16="cp866u-8x16"
font8x8="cp866u-8x8"
keymap="ua.koi8-u"
keyrate="fast"
mousechar_start="3"
scrnmap="koi8-u2cp866u"
# SCA supports scripts
zSCA_enable="YES"
quagga_enable="YES"
quagga_daemons="zebra ospfd"
# SNMP Daemon (gathering system information)
snmpd_enable="YES"
ifconfig
lnc0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
ether 00:0c:29:14:05:ab
lnc1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.70.2.58 netmask 0xffffff00 broadcast 10.70.2.255
ether 00:0c:29:14:05:b5
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
gif1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
tunnel inet 82.207.102.216 --> 195.95.232.49
inet 10.70.0.2 --> 10.70.0.1 netmask 0xffffffff
gif4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
tunnel inet 82.207.102.216 --> 193.43.95.53
inet 10.70.0.2 --> 10.70.0.4 netmask 0xffffffff
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 82.207.102.216 --> 195.5.5.185 netmask 0xffffffff
Opened by PID 269
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.70.232.1 netmask 0xffffff00 broadcast 10.70.232.255
ether 00:bd:0a:0b:00:00
Opened by PID 776
uptime
6:58PM up 3 mins, 1 user, load averages: 0.09, 0.14, 0.07
stat /etc/rc.conf
76 49727 -rw-r--r-- 1 root wheel 198824 4923 "May 20 18:57:24 2010" "May 20 08:50:35 2010" "May 20 08:50:35 2010" "Mar 14 20:24:27 2007" 4096 12 0 /etc/rc.conf
сменил айпи с 10.70.2.52 на 10.70.2.58 и имя с GWKG00 на GWKG01
но даже при пинге почемуто перемешивается старый и новый.. и перестает работать оригинальный шлиз из-за копии...