#!/bin/sh
#
# This part defines variables for firewall script. It's under construction.
#

####### section begin
#### net/host mask variables.
NETC_MASK=24
NETB_MASK=16
HOST_MASK=32
ANY_NET=0.0.0.0
ANY_MASK=0
export NETC_MASK NETB_MASK HOST_MASK ANY_NET ANY_MASK
####### section end
#### net/host mask variables that cannot be used on the WAN.
LOC_NET=192.168.0.0
export LOC_NET
#LOCAL_NET1=192.168.4.0/24
#LOCAL_NET2=192.168.3.0/24
RESERVED_1=192.168.0.0/16
RESERVED_2=172.16.0.0/16
RESERVED_3=10.0.0.0/8
export RESERVED_1 RESERVED_2 RESERVED_3 
# export LOCAL_NET0 
# export  LOCAL_NET1 LOCAL_NET2 LOCAL_NET3
####### section begin

####### section end

####### section begin
#### defining interface-names variables.
#dialups2vgsn:

# Dialup access is configured for: home/email-only/chief/free-browse
# for email-only
# login: email
# passwd never expires.
DIALUP4_120=192.168.4.120
# for home (full access)
# login: home
# password expiration 1 month.
DIALUP4_121=192.168.4.121
# for free browse (partly closed)
# login: freeppp
# password expiration 1 month.
DIALUP4_122=192.168.4.122
# chief (full access)
# login: chief
# password expiration 6 months.
DIALUP4_123=192.168.4.123
# Shared access (peter/mine - dialup for our LAN)
# login: shared
# password expiration 1 month.
DIALUP4_124=192.168.4.124
# Test login (for connection testing)
DIALUP4_125=192.168.4.125
# Net for dialup users.
DIALUP_NET=192.168.4.0

## Redefining variables for easier reading.
EMAILONLY=$DIALUP4_120
HOMEPPP=$DIALUP4_121
FREEPPP=$DIALUP4_122
CHIEFPPP=$DIALUP4_123
SHARED=$DIALUP4_124
TESTPPP=$DIALUP4_125

export EMAILONLY HOMEPPP FREEPPP CHIEFPPP SHARED TESTPPP
export DIALUP_NET

# addr. on eth0 , loopback & ppp0.
IP_ETH0=192.168.0.3
IP_LOOPBACK=127.0.0.1
IP_PPP0=195.218.173.129
export IP_ETH0 IP_LOOPBACK IP_PPP0
####### section end

####### section begin
#### defining mashine addresses variables
# M1  =kbg     (Dmitry Soochkov)
# M2  =klay    (Jane Nazarova)
# M4  =????    (Proxy at one of Vadim Bohomolov organisation computers)
# M8  =guest   (Jane Turikova)
# M10 =acer    (unix mashine. Just for logs keeping.)
# M25 =alexey  (Alexej Chadajev)
# M3,M9,M11-M24,M26-M254  <-=->  unused.
M1=192.168.0.1
M2=192.168.0.2
M4=192.168.0.4
#M5=192.168.0.5
#M6=192.168.0.6
#M7=192.168.0.7
M8=192.168.0.8
#M9=192.168.0.9
M10=192.168.0.10
M25=192.168.0.25
export M1 M2 M4 M8 M10 M25
####### section end
