Quantcast
Channel: Linux.org.ru: Форум (тех. форум)
Viewing all articles
Browse latest Browse all 73872

перманентный tun

$
0
0

Задача:создать tun0,чтобы забиндить docker контейнеры на vpn интерфейс,но простым шаманством с /etc/network/interfaces:

 # The loopback network interface
auto lo
auto tun0
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
    address **.***.***.***
    netmask 24
    gateway 95.213.200.1

iface tun0 inet static
    pre-up ip tuntap add tun0 mode tun
    address 10.0.0.1
    netmask 24
#gateway 95.213.200.1
что-то не работает, networking игнорирует tun0 но при этом ifup tun0 работает в логах при старте networking о tun0 ни слова

 ,


Viewing all articles
Browse latest Browse all 73872

Trending Articles