# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp

# -----wan---------    
auto eth0
allow-hotplug eth0
iface eth0 inet static
address   -,  
netmask 255.255.255.252
gateway   ,  
dns-nameservers   -,  ,    / 

# -----lan---------
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0

# iptables rules auto run
pre-up iptables-restore < /etc/iptables.up.rules

# Скрипт, запускаемый при поднятии интерфейса
up /etc/openvpn/server_up.sh